Skip to main content
GET
/
v1
/
subscription-plan
Get All Subscription Plan
curl --request GET \
  --url https://api.sandbox.hit-pay.com/v1/subscription-plan \
  --header 'X-BUSINESS-API-KEY: <x-business-api-key>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "cycle": "<string>",
      "cycle_repeat": 0,
      "cycle_frequency": "<string>",
      "currency": "<string>",
      "price": 0,
      "amount": 0,
      "reference": "<unknown>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<unknown>",
    "next": "<unknown>"
  },
  "meta": {
    "current_page": 0,
    "from": 0,
    "last_page": 0,
    "links": [
      {
        "url": "<unknown>",
        "label": "<string>",
        "active": true
      }
    ],
    "path": "<string>",
    "per_page": 0,
    "to": 0,
    "total": 0
  }
}

Headers

X-BUSINESS-API-KEY
string
required
Example:

"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"

Query Parameters

per_page
number
default:20

The number of per page

page
number
default:1

The page index

Response

200 - application/json

200

data
object[]
meta
object