Get Paginated List of Subscriptions
GET/api/v1/subscriptions/
Get Paginated List of Subscriptions
Request
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
count number
next url
previous url
results object[]
customer object
first_name stringrequired
Customer's First Name
last_name stringrequired
Customer's Last Name
email emailrequired
Customer's email
mobile stringrequired
Possible values: Value must match regular expression (\+63|0)?([.\- ]?9[0-9]{2}[.\- ]?[0-9]{3}[.\- ]?[0-9]{4})
Customer's mobile number
billing_details object
Merchant can pre-fill customer's billing details. If not supplied, customer will be asked to fill up billing details during Splitmo checkout.
full_address stringrequired
city stringrequired
zip_code stringrequired
region stringrequired
country_code stringrequired
Default value: PH
redirect_urls object
Merchant can supply a redirect URL after a successful or failed transaction.
success_url urlrequired
failure_url urlrequired
cancel_url urlrequired
plan objectnullable
Subscription Plan Details
plan_name string
price double
billing_cycle string
Possible values: [MO, WE, BI]
short_lead string
company string
reference_id string
checkout_url url
payment_method
status string
Possible values: [INITIATED, FOR_VERIFICATION, FOR_AUTHENTICATION, SUCCESSFUL, FAILED TO CAPTURE, FAILED TO AUTHORIZE, CANCELLED, REFUNDED]
{
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"customer": {
"first_name": "Juan",
"last_name": "Dela Cruz",
"email": "juan@example.com",
"mobile": "09980000000"
},
"billing_details": {
"full_address": "Rufino cor Leviste Street, Salcedo Village, Makati City, 1227",
"city": "Makati City",
"zip_code": "1227",
"region": "NCR",
"country_code": "PH"
},
"redirect_urls": {
"success_url": "https://yoursite.com/?status=success",
"failure_url": "https://yoursite.com/?status=failed",
"cancel_url": "https://yoursite.com/?status=canceled"
},
"plan": {
"plan_name": "Gym Subscription Monthly",
"price": 1000,
"billing_cycle": "MO",
"short_lead": "Monthly Gym Subscription that includes personal trainer",
"company": "Monsters Inc."
},
"reference_id": "4G-SB-AF6A091C",
"checkout_url": "http://sandbox.splitmo.co/portals/example/subscription/4G-SBP-8F0E03B3/checkout/?id=4G-SB-AF6A091C",
"payment_method": null,
"status": "INITIATED"
}
]
}
Loading...