Subscriptions

Get subscription details

Changed on

v1 is deprecated — use the v2 endpoint instead. Returns one subscription's details, including the invoices generated from it so far.

get/v1/subscriptions/{subscription_hash_id}

Request

  • Base URL
    https://app.getswipe.in/api/partner
  • URL
    https://app.getswipe.in/api/partner/v1/subscriptions/{subscription_hash_id}
  • Auth
    HTTP bearer

Query parameters

num_recordsstring

Number of records to fetch(max 100)

pageinteger

Page number

Response

Subscription fetched successfully

successboolean

Success flag

messagestring

Message

error_codestring

Error code

errorsobject

Error details

Example response

{
  "success": true,
  "message": "Details Fetched",
  "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
  }
}

Changes