Subscriptions V2
Get subscription details
Changed onReturns one subscription's details, including the invoices generated from it so far.
get/v2/subscriptions/{subscription_hash_id}
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/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
}
],
"upcoming_date": "10 June 2024",
"repeat_every": 1,
"repeat_unit": "months",
"last_created": "10 June 2024",
"total_records": 10
}
}Changes
- breaking
for the
queryrequest parameternum_records, default value was changed from10to10 - warning
deleted the
pathrequest parametersubscription_hash_id - info
api operation id
v2_get_subscriptionremoved and replaced withget_subscription
- breaking