GET
/
v2
/
subscriptions
/
{subscription_hash_id}
curl --request GET \
  --url https://app.getswipe.in/api/partner/v2/subscriptions/{subscription_hash_id} \
  --header 'Authorization: <api-key>'
{
  "success": true,
  "message": "Details Fetched",
  "error_code": "",
  "errors": {},
  "data": {
    "invoices": [
      {
        "name": "CUST123",
        "id": "Cust123",
        "serial_number": "INV-123",
        "status": "active",
        "hash_id": "SUB123",
        "record_time": "10 June 2024",
        "total_amount": 1000
      }
    ],
    "total_records": 10
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscription_hash_id
string
required

The hash id of the document

Query Parameters

num_records
string
default:10

Number of records to fetch

page
integer
default:1

Page number

Response

200
application/json
Subscription fetched successfully
success
boolean

Success flag

Example:

true

message
string

Message

Example:

"Details Fetched"

error_code
string

Error code

Example:

""

errors
object

Error details

data
object