cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v2/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, "upcoming_date": "10 June 2024", "repeat_every": 1, "repeat_unit": "months", "last_created": "10 June 2024" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The hash id of the document
Number of records to fetch
Page number
Subscription fetched successfully
The response is of type object.
object