Subscription Payments & Renewals

Create an API flow session for a user subscription payment.

This section covers the payment flow process. Use this endpoint to confirm payment status (for initial subscription payments and renewals).

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

1. Set the Request Details

  • URL: TBD

2. Add the Required Headers

Authorization Header: The authorization header will be automatically generated when you send the request using your dedicated Basic Auth credentials (Username and Password):

Basic bW9uZGlhLXRlc3Q6V3lrcEJrQWtnNlU5ZTRWYnRXWmFMdTdPQWNnY2s4YXU1WWJYZDBBdA==

HeaderValue
Content-Typeapplication/json
AuthorizationGenerated Basic Auth Token

3. Prepare the Request Body

Replace productId, paymentDateTime, subscriptionTypeId, msisdn,billedAmount, and the payment event in the body with the pre-defined values.

Request BodyDescriptionRequired
msisdnUnique user identifier.Yes
productIdThe product Id is an internal Id associated to the marketplaceOptional
subscriptionTypeIdThe Id of the subscription type (same as typeId returned in the Product endpoint)Yes
eventThe payment events. The expect values are "PAYMENT_SUCCESS" in case of successful payments and "PAYMENT_FAILED" in case of failed paymentsYes
billedAmountThe exact amount attempted or charged for the payment eventYes
paymentDateTimeThe date and time payment was attemptedYes
eventIdA unique session or transaction Id for the event triggeredYes

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!