Create Subscription

Create a new subscription.

SecurityMarketplace Api Key | Merchant Secret Token | Merchant JWT | Marketplace JWT
Request
header Parameters
Merchant-Id
string

Perform operation in the context of the given merchant. Usually not required — specify only if acting on behalf of a merchant not implied by the credentials specified in the Authorization header.

Request Body schema: application/json
required
One of:
required
object (CreateSubscription1)
Responses
200
400
401
403
404
405
406
409
422
429
500
503
post/subscriptions
Request samples
application/json
{
  • "CreateSubscription": {
    }
}
Response samples
application/json
{
  • "subscriptionId": "subs_ZqCNpNcm_22WeZ_B",
  • "merchantId": "mcht_ZqCNoNcm_22WeZ-i",
  • "customerId": "cust_ZqCNoNcm_22WeZ-j",
  • "referenceCustomerId": "string",
  • "orderId": "ordr_ZqCNoNcm_22WeZ-m",
  • "subscriptionAmount": 0,
  • "subscriptionCurrency": "AUD",
  • "paymentMethodDescription": "string",
  • "state": "created",
  • "stateUpdates": [
    ],
  • "frequency": "weekly",
  • "nextPaymentScheduledAt": "2019-08-24T14:15:22Z",
  • "cancelScheduledAt": "2019-08-24T14:15:22Z",
  • "transactions": [
    ],
  • "communications": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}
Copyright © April Solutions 2023. All right reserved.