Create Customer Subscription
Last updated
Last updated
To create a Customer Subscription you'll need to provide:
Required fields (described below)
path
/v2/customer-subscriptions
This path is used for create action
method
POST
We are creating resource, hence POST
method
headers
Content-Type: application/json
Accept: application/json
Specify both headers
subscription_id
predefined
Integer
YES
Subscription id. You need to create a subscription before creating customer subscription.
customer_id
predefined
Integer
YES
Customer's id. You need to create a customer before creating customer subscription.
next_charge_date
predefined
Date
YES
Date, eg: 2022-02-12. Next charge date is a date when we will charge customer. If charge is successful then next charge date is current charge date + period (ie in a week)
active_from
predefined
Date
YES
Defines a date from which a customer subscription is active. It should be before next_charge_date
active_to
predefined
Date
YES
Defines a date until which a customer subscription is active. It should be before after active_from
and after next_charge_date