Returns list of subscriptions
This API returns the list of subscriptions for a merchant.
Request
- Base URLhttps://api.test.bictorys.com/pay/v1
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Query subscription starting from this date. The date format is (YYYY-mm-dd). If omitted, 2023-09-01 is used
Query subscription from start_date until this date time. The date format is YYYY-mm-dd. If end_date is omitted, current date is used.
Filter by subscription status. The status filter is combined with start_date and end_date filters. Status opened means the subscription plan is created but no payment is done. started means at least a payment is done but not the entire amount.
pagination offset, default is 0.
Page size. default value is 20
Headers
HTTP request identifier allow to trace individual request sent from client to service.
Response
returns list of subscription.
Example response
[
{
"id": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"reference": "yourplan_CF34509",
"subscriptionPlanId": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"startDate": "2023-05-22",
"customerId": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"status": "completed",
"nextInstallmentDueDate": "2023-05-22",
"nbrPaidInstallments": 2,
"nbrUnpaidInstallments": 1,
"customerName": "John Dao",
"createdAt": "2022-03-29 10:00:00,000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.