GET
/
v1
/
subscription-plan
/
{plan_id}
curl --request GET \
  --url https://api.sandbox.hit-pay.com/v1/subscription-plan/{plan_id} \
  --header 'X-BUSINESS-API-KEY: <x-business-api-key>'
"{\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\": 9.9,\n    \"reference\": \"spotify_premium_2022\",\n    \"created_at\": \"2022-09-12T14:22:26\",\n    \"updated_at\": \"2022-09-12T14:22:26\"\n}"

Headers

X-BUSINESS-API-KEY
string
required
Example:

"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"

Path Parameters

plan_id
string
required

Response

200
application/json
200
id
string
Example:

"973ee344-6737-4897-9929-edbc9d7bf433"

name
string
Example:

"Spotify Premium"

description
string
Example:

"Spotify Monthly Subscription"

cycle
string
Example:

"monthly"

cycle_repeat
any
cycle_frequency
any
currency
string
Example:

"sgd"

amount
number
default:0
Example:

9.9

reference
string
Example:

"spotify_premium_2022"

created_at
string
Example:

"2022-09-12T14:22:26"

updated_at
string
Example:

"2022-09-12T14:22:26"