List subscriptions
Developing
Request
Send your HTTP requests with an Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:Authorization: Basic *****************
The ID of the customer whose subscriptions will be retrieved.
Filter for subscriptions that contain this recurring price ID.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
A cursor for use in pagination. ending_before is an object ID that defines your place in the list.
A cursor for use in pagination. starting_after is an object ID that defines your place in the list.
Request samples
curl --location --request GET 'https://apitest.wooshpay.com/v1/subscriptions?customer&price&limit&ending_before&starting_after' \
--header 'Accept;' \
--header 'Authorization: Basic Og=='
Responses
application/json enabled_events
array[string]
optional{
"object": "\"list\"",
"url": "string",
"has_more": true,
"data": [
{
"id": "string",
"object": "string",
"api_version": null,
"application": null,
"created": 0,
"description": "string",
"enabled_events": [
"string"
],
"livemode": true,
"metadata": {},
"status": "string",
"url": "string"
}
]
}
Modified at 2024-07-04 03:46:42