API Reference
Use this API to get the subscription plan details, if you need to make any changes use the Update a Subscription Plan API
cURL
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}"
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
200
The response is of type object.
object
Was this page helpful?