v1
latestOpenAPI 3.0.02026-07-2627149175.2 KBcheckouts
Initiate checkout
post/v2/checkouts
Headers
Content-Digeststring string
SHA-256 or SHA-512 hash of the request body.
Signaturestring string
Signature of the request according to RFC-9421.
Signature-Inputstring string
Signature input according to RFC-9421.
Accept-Signaturestring string
Expected signature algorithm of the response according to RFC-9421.
Accept-Digeststring string
Expected digest algorithm of the response according to RFC-9421.
Request body
Example request
{
"checkoutId": "f4401bd2-1568-4140-bf2d-eb77d2b2b639",
"returnUrl": "https://merchant.example.com/checkout-result",
"defaultLanguage": "en",
"countries": [
"ZMB",
"CIV"
],
"expiresAfter": 60,
"amounts": [
{
"country": "ZMB",
"currency": "ZMW",
"amount": "15"
}
],
"payer": {
"type": "MMO",
"accountDetails": {
"phoneNumber": "260763456789",
"provider": "MTN_MOMO_ZMB",
"allowCustomerToOverride": true
}
},
"clientReferenceId": "INV-123456",
"reason": {
"en": "GOODS PURCHASE"
},
"metadata": [
{
"orderId": "ORD-123456789"
},
{
"customerId": "customer@email.com",
"isPII": true
}
]
}Response
Request has valid payload. See status to confirm if the checkout was accepted for processing.
Example response
{
"checkoutId": "f4401bd2-1568-4140-bf2d-eb77d2b2b639",
"redirectUrl": "https://payment.example.com/checkout/afb57b93-7849-49aa-babb-4c3ccbfe3d79",
"created": "2020-02-21T17:32:29Z",
"expiresAt": "2026-03-27T11:30:00Z",
"checkoutCode": "PPGAFB57B93",
"failureReason": {
"failureCode": "INVALID_PAYER_FORMAT"
}
}