post https://{domain}/marketplace/payment/session/subscription/consent
Update the consent of a Subscription. May return a list of Api-Flows. Requires a user-token.
To create an API flow session for user subscription cancellation, follow these steps:
1. Set the Request Details
- URL:
/marketplace/payment/session/subscription/cancel
2. Add the Required Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| x-api-key | Your API Key |
| Authorization | Generate Client Token |
3. Prepare the Request Body
| Request Body | Description | Required |
|---|---|---|
redirectionUrl | The URL to redirect to after a user subscription payment | Yes |
lang | The two-letter ISO-639-1 language code - defaults to client's default language | Yes |
typeId | The Subscription Type Id of the subscription | Yes |
4. Make the Request
Once you’ve set the URL, headers, and body, send the POST request.
Keep the session Id and follow the provided
handlerUrlfor the next step in the subscription consent process. The session is valid for 24 hours.
