POST https://op-sandbox.paymaya.com/merchant/payments/{id}/execute
This API endpoint requires  Bearer Authentication , which relies on the Bearer Token (
access_token) generated using the client_credentials grant type. You must provide this token as part of the Authorization header.
--header Authorization: Bearer <access_token>
Recipes
📖
Execute Maya Mini App Payment
Open Recipe
Technical Guide:
Related Guide:
Request Payload
Path Parameter
| Attribute | Type | Format | Description | 
|---|---|---|---|
| idREQUIRED | string | UUIDv4 | The idreferencing to the payment record created and returned by Maya during the Create Maya Mini App Payment | 
Request Header
| Attribute | Type | Format | Description | 
|---|---|---|---|
| Content-TypeREQUIRED | string | application/json | Specifies the media type of the request | 
| Request-Reference-NoREQUIRED | string | UUIDv4 | Unique reference identifier for tracking the request | 
| Authorization REQUIRED | string | JWS | The Bearer Token ( access_token) generated by Maya during Bearer Authenticationclient_credentialsgrant typeExample: Bearer {access_token} | 
| X-Authorization REQUIRED | string | JWE | The Customer Access Token ( accessToken); a valid customer access token obtained from Maya through either your session URL | 
Response Payload
Response Body
| Attribute | Type | Format | Description | 
|---|---|---|---|
| idREQUIRED | string | UUIDv4 | Payment ID referencing to the payment record created | 
| p2mIdREQUIRED | string | An identifier for your merchant account; The value will be provided by Maya during onboarding | |
| requestReferenceNumberREQUIRED | string | AN(36) | Value provided by the merchant in the Request-Reference-No parameter of the Create Payment request | 
| amountREQUIRED | object | An object for the base transaction amount | |
| amount.currencyREQUIRED | string | ISO 4217 Alpha-3 | Currency code of the amount | 
| amount.valueREQUIRED | float | 0.001to9999999999.99 | Transaction amount in the exponent/decimal notation of the provided currency | 
| feeREQUIRED | object | An object for the base fee amount | |
| fee.currencyREQUIRED | string | ISO 4217 Alpha-3 | Currency code of the fee | 
| fee.valueREQUIRED | float | 0.001to9999999999.99 | Fee amount in the exponent/decimal notation of the provided currency | 
