curl --request POST \
--url https://api.paytring.com/api/v1/subscription/plan/fetch \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"id": "<string>",
"hash": "<string>"
}'
"{}"
curl --request POST \
--url https://api.paytring.com/api/v1/subscription/plan/fetch \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"id": "<string>",
"hash": "<string>"
}'
"{}"
{
"plan_id": "string", // ID of the subscription plan to fetch
"hash": "string" // Calculated hash for request validation
}
{
"status": true,
"plan": {
"id": "string",
"name": "string",
"amount": "integer",
"currency": "string",
"interval": "string"
},
"message": "Plan fetched successfully"
}
{
"status": false,
"error": {
"message": "Invalid request",
"code": 400
}
}
200
The response is of type object
.