Skip to main content
POST

Headers

string
required
Your API key, pk_test_… or pk_live_….
string
required
application/json

Body

integer
required
Amount in centimes (dinars × 100), before the gateway fee. 15,000 DA → 1500000. Default range 5000 – 100000000.
string
required
DZD
string
required
Your order number. 1–255 characters. Unique per API key.
string
Where the payer is sent after a successful payment. Absolute http(s) URL, max 1000 characters.
string
Where the payer is sent when the payment does not succeed. Absolute http(s) URL, max 1000 characters.
string
default:"fr"
Checkout language: ar, fr or en.
object
Any JSON (max 4 KB). Returned on GET and in webhooks.

Response fields

string
Payment id (UUID). Store it, you need it for every later call.
string
Your order reference.
integer
Amount in centimes, before the fee.
integer
Your configured gateway fee, in DZD.
integer
Centimes, fee included. This is what the card is charged.
string
Starts at created.
string
End of the 15-minute payment window (ISO-8601 UTC).
string
Hosted checkout link. Shown only once: redirect the payer straight away.
Return URLs carry your reference. When the payer comes back, we add reference=<your reference> to the URL you gave, keeping your own query parameters, for example https://shop.example.dz/orders/8756/paid?reference=COMMANDE-2024-8756. A URL that is not an absolute http(s) link is rejected with 400 VALIDATION400_BAD_REQUEST.

Errors