POST
/
v1
/
checkout
/
order
curl --request POST \
  --url https://api.nomba.com/v1/checkout/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountid>' \
  --data '{
  "order": {
    "amount": "10000.00",
    "callbackUrl": "https://ip:port/merchant.com/callback",
    "currency": "NGN",
    "customerEmail": "[email protected]",
    "customerId": "762878332454",
    "orderReference": "90e81e8a-bc14-4ebf-89c0-57da752cca58"
  },
  "tokenizeCard": "true"
}'
{
  "code": "00",
  "data": {
    "checkoutLink": "https://ip:port/checkout/78388899938",
    "orderReference": "90e81e8a-bc14-4ebf-89c0-57da752cca58"
  },
  "description": "Success"
}

Authorizations

Authorization
string
headerrequired

Nomba authenticates API calls with OAuth2 HTTP bearer tokens. There are two methods of authentication; Client-Credentials method and PKCE (Proof Key for Code Exchange) method. In each of the methods, You will get an ACCESS_TOKEN. You need to use an "Authorization" HTTP header to provide your ACCESS_TOKEN. For example: Authorization: {ACCESS_TOKEN}.

Headers

accountId
string
required

The parent accountId of the business.

Body

application/json
order
object
required
tokenizeCard
boolean

Determines if the card used for payment is to be tokenized

Response

200 - application/json
code
string
required

Response Code

data
object
required
description
string
required

checkout order created successful