Verify checkout transaction

Verify the status of your customer checkout transaction.

URI

GET

https://api.tryduplo.com/v1/checkout/verify-transaction/:checkout_reference?business_id={YOUR_VALUE}

Parameters

Authorization string

set value to Bearer SECRET_KEY

Query Param

business_id string required

Merchant Business ID

Path Param

checkout_reference string required

Checkout reference

The customer will only be allowed to pay the exact amount, any other amount will be rejected.

Sample request

curl --location --request GET 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G?business_id={YOUR_VALUE}' \
--header 'dpmlekdno: swwje4t343643'

Duplo Response

{
  "data": {
    "checkout_transaction_details": {
      "source_details": {
        "bank_name": "Fidelity",
        "account_name": "Manni Ben",
        "account_number": "7218000007"
      },
      "receiver_details": {
        "bank_name": "Wema Bank",
        "account_name": "Daniel Doe",
        "account_number": "8890000062"
      },
      "_id": "635c9ff39f6f800dc44299",
      "currency": "NGN",
      "created_at": "2022-09-15T07:45:18.953Z",
      "updated_at": "2022-09-15T07:45:18.953Z",
      "new_balance": "14750",
      "account_number": "8890000062",
      "session_id": "878837230723606234664390001888004118416997121",
      "provider_ref_id": "19996142384749099704008266091707899121010",
      "type": "credit",
      "channel": "nip",
      "description": "PURCHASE DEPOSIT FOR XOA",
      "business_id": "8ed1cc-1e1c-4ad1-9ed8-e870d6543349",
      "account": "632251552d96e7000d597681",
      "account_ref": "act_aO7yrjAIHnIy",
      "wallet_ref": "wal_eV9nNyLc54oO",
      "status": "successful",
      "transaction_ref": "tran_IwUsE63IwOIT",
      "fee_amount": "0",
      "settled_amount": "1200",
      "amount": "1200",
      "date": "2022-09-15T07:45:18.953Z",
      "category": "pay-with-transfer",
      "multiple_source_details": [],
      "__v": 0
    }
  },
  "errors": {},
  "message": "Request successful"
}

Last updated