Getting Started

Sections

Update Intention

Outcome: Update the (amount, billing_data, special_reference, and notification_url) of a already created intention


Authorization

Add your “secret key“ in the authorization header preceded by the word "Token ".

To know how to get your secret key, please check the Getting Integration Credentials page.

Important Notes:

The endpoint used in the notification URL will receive the transaction callback (transaction details) and the card token (for pay with saved card features)


Common errors

Missing Accept Order ID parameter

Status Code: 400 Bad Request

JSON
{ accept_order_id": [ "This field is required." ] } { accept_order_id": [ "This field is required." ] }

Solution: Make sure to pass the order ID related to the client secret you passed as a path parameter


Header Parameters

Authorizationstring Required

Bearer token authentication. Format: "Token YOUR_SECRET_KEY"

Path Parameters

client_secretstring Required

Client secret token for completing the payment

Body Parameters

amountnumber Required

The item amount, expressed in cents and located under the items array. When multiple items are provided, the sum of all item amounts must equal the total transaction amount.

currencystring

Currency code (e.g., EGP, USD)

payment_methodsarray

Available payment methods for this transaction

Show child attributes

itemsarray

List of items in the order

Show child attributes

billing_dataobject

Customer billing information

Show child attributes

extrasobject

Additional custom data

Show child attributes

special_referencestring

A unique reference associated with the transaction or order, returned in the transaction callback under merchant_order_id.

expirationnumber
notification_urlstring

A callback URL that receives a POST request with full transaction details after the transaction succeeds or fails. Supported only with card Integration IDs. This endpoint

redirection_urlstring

A URL to which the customer is redirected after the transaction completes, with transaction details included as query parameters. Supported only with card and wallet payment methods.

Response

201
Object
Payment Intention created successfully

Response Attributes

payment_keysarray

Show child attributes

intention_order_idnumber
idstring

Unique identifier for the transaction

intention_detailobject

Show child attributes

client_secretstring

Client secret token for completing the payment

payment_methodsarray

Available payment methods for this transaction

Show child attributes

special_referencestring

Special reference identifier for merchant use

extrasobject

Additional custom data

Show child attributes

confirmedboolean

Indicates if the transaction has been confirmed

statusstring

Current status of the record

createdstring
card_detailstring

Card details used for the transaction

card_tokensarray

List of saved card tokens

objectstring

Type of object returned

Was this section helpful?

What made this section unhelpful for you?

Base URL

Production:

Sandbox:

Language Box

PUT

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?