Subscription Payment

Create an API flow session for a user subscription payment.

This section covers the subscription flow process. To initiate a subscription purchase, use this endpoint as a starting point. When accessing this API, it is recommended to use a User Access Token obtained from the corresponding User Creation & Access Token API response.

Subscription Payment Process

Subscription Payment Process


To create an API flow session for user subscription payment, follow these steps:

1. Set the Request Details

  • URL: https://staging-gateway.mondiapay.com/v1/api/purchase/subscription/oneClick

2. Add the Required Headers

Authorization Header: Fill in the Authorization header with the user access token obtained from the User Creation & Access Token API request, formatted as follows:

Bearer U1234abcde-1234-abcd-1234-abcd1234abcd

HeaderValue
Content-Typeapplication/json
x-api-keyYour API Key
AuthorizationGenerated User Access Token

3. Prepare the Request Body

Replace lang, subscriptionTypeId, & marketingCampaign in the body with your specific configuration values.

Request BodyDescriptionRequired
marketingCampaignMarketing campaign information used for the acquisition.Optional
langThe two-letter ISO-639-1 language code - defaults to client's default languageYes
subscriptionTypeIdThe Id of the subscription type (same as typeId returned in the Product endpoint)Yes

4. Make the Request

Once you’ve set the URL, headers, and body, proceed with a POST request.



Language
URL
Click Try It! to start a request and see the response here!