Verify a Transaction

The Verify Transactions endpoint allows you to confirm the status of a specific transaction by using either the orderReference or the orderId or Nomba transaction reference.
This is important for ensuring that payments are successfully completed before providing value to your customers.
You can use this API to verify sandbox transactions or live transactions
To verify a transaction, send a GET request to this endpoint /v1/transactions/accounts/single. The Payment statuses are SUCCESS or FAILED.
  curl --request GET \
    --url https://api.nomba.com/v1/transactions/accounts/single?orderReference=90e81e8a-bc14-4ebf-828c0-57da801cca68 \
    --header 'Authorization: Bearer <token>' \
    --header 'accountId: <accountid>'

Get Checkout Transaction

This endpoint allows you to retrieve the details of a checkout transaction using either the ORDER_REFERENCE or ORDER_ID. It is especially useful for verifying transaction status in case you miss a webhook notification or want to double-check the transaction details sent to you via webhook.
This API is only available in production environment
To fetch a checkout transaction, send a POST request to this endpoint /v1/checkout/transaction.
  curl --request GET \
    --url 'https://api.nomba.com/v1/checkout/transaction?idType=ORDER_REFERENCE&id=68da39e0-2ce4-4ea6-9def-5*********' \
    --header 'Authorization: Bearer <token>' \
    --header 'accountId: <accountid>'