Subscription
Returns list of found subscriptions
This API returns the list of found subscription for a merchant.
get/subscriptions/search
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
referencestring
search by subscription reference
customer_namestring
search subscription by customer name
Headers
X-Amzn-Trace-Idstring
HTTP request identifier allow to trace individual request sent from client to service.
Response
returns list of found 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.