cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v1/subscriptions/{subscription_hash_id} \ --header 'Authorization: Bearer <token>'
{ "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 } }
Bearer authentication header of the form Bearer , where is your auth token.
The hash id of the document
Number of records to fetch
Page number
Subscription fetched successfully
Success flag
true
Message
"Details Fetched"
Error code
""
Error details
Show child attributes
List of invoices
Customer Name
"CUST123"
Customer ID
"Cust123"
Serial Number
"INV-123"
Status
paid
pending
cancelled
"active"
Hash ID
"SUB123"
Record Time
"10 June 2024"
Total Amount
1000
Total number of records
10