PUT
/
v1
/
subscription-plan
/
{plan_id}
curl --request PUT \
  --url https://api.sandbox.hit-pay.com/v1/subscription-plan/{plan_id} \
  --header 'Content-Type: application/json' \
  --header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
  --data '{
  "name": "<string>",
  "amount": 123,
  "description": "<string>",
  "cycle": "monthly",
  "cycle_frequency": "day",
  "cycle_repeat": 123,
  "currency": "SGD",
  "reference": "<string>",
  "redirect_url": "<string>",
  "start_date_method": "sign_up_date",
  "fixed_date": 14.5,
  "times_to_be_charged": 50.5
}'
"{\n    \"id\": \"973ee344-6737-4897-9929-edbc9d7bf433\",\n    \"name\": \"Spotify Premium\",\n    \"description\": \"Spotify Monthly Subscription\",\n    \"cycle\": \"monthly\",\n    \"cycle_repeat\": null,\n    \"cycle_frequency\": null,\n    \"currency\": \"sgd\",\n    \"amount\": 12.9,\n    \"reference\": \"spotify_premium_2022\",\n    \"created_at\": \"2022-09-13T12:34:13\",\n    \"updated_at\": \"2022-09-13T12:34:13\"\n}"

Headers

X-BUSINESS-API-KEY
string
required
Example:

"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"

Path Parameters

plan_id
string
required

Body

application/json

Response

200
application/json

200

The response is of type object.