POST
/
api
/
v1
/
subscription
/
plan
/
fetch
Fetch Plan
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>"
}'
"{}"
This API is used to fetch details of a subscription plan.

Request Body

{
  "plan_id": "string", // ID of the subscription plan to fetch
  "hash": "string" // Calculated hash for request validation
}

Responses

200 OK

{
  "status": true,
  "plan": {
    "id": "string",
    "name": "string",
    "amount": "integer",
    "currency": "string",
    "interval": "string"
  },
  "message": "Plan fetched successfully"
}

400 Bad Request

{
  "status": false,
  "error": {
    "message": "Invalid request",
    "code": 400
  }
}

Body

application/json

Response

200
application/json

200

The response is of type object.