Create Customer Subscription

Request

To create a Customer Subscription you'll need to provide:

Request endpoint details

name

path

value

/v2/customer-subscriptions

description

This path is used for create action

name

method

value

POST

description

We are creating resource, hence POST method

name

headers

value

Content-Type: application/json Accept: application/json

description

Specify both headers

Request body:

field

subscription_id

length

predefined

type

Integer

required

YES

description

Subscription id. You need to create a subscription before creating customer subscription.

field

customer_id

length

predefined

type

Integer

required

YES

description

Customer's id. You need to create a customer before creating customer subscription.

field

next_charge_date

length

predefined

type

Date

required

YES

description

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)

field

active_from

length

predefined

type

Date

required

YES

description

Defines a date from which a customer subscription is active. It should be before next_charge_date

field

active_to

length

predefined

type

Date

required

YES

description

Defines a date until which a customer subscription is active. It should be before after active_from and after next_charge_date

Create/Update/Get Response

Last updated