Subscriptions
Get subscription details
Changed onv1 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 URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v1/subscriptions/{subscription_hash_id}
- AuthHTTP bearer
Query parameters
num_recordsstring
Number of records to fetch(max 100)
pageinteger
Page number
Response
Subscription fetched successfully
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
- info
endpoint added
- info