v1
latestOpenAPI 3.0.02026-07-26168846732.2 KBSubscriptions
Subscription - Create
Creates a subscription that requires separate confirmation.
post/subscriptions/create
Headers
X-Profile-Idstring required
Profile ID for authentication
Request body
Example request
{
"billing": {
"address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"phone": {
"number": "9123456789",
"country_code": "+1"
}
},
"shipping": {
"address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"phone": {
"number": "9123456789",
"country_code": "+1"
}
}
}Response
Subscription created successfully
Example response
{
"payment": {
"payment_method_id": "pm_01926c58bc6e77c09e809964e72af8c8",
"next_action": {
"redirect_to_url": "https://example.com/redirect"
},
"billing": {
"address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"phone": {
"number": "9123456789",
"country_code": "+1"
}
},
"shipping": {
"address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"phone": {
"number": "9123456789",
"country_code": "+1"
}
},
"payment_token": "token_sxJdmpUnpNsJk5VWzcjl"
},
"invoice": {
"payment_method_id": "pm_01926c58bc6e77c09e809964e72af8c8"
}
}