Initiate Order Created With Deferred Payment Method

When deferPaymentMethod is set to true, a call must be made to this endpoint whether it's a buy, sell, or swap request to complete the order initiations.

See example below;

POST https://checkout-api-sandbox.xendbridge.com/api/Order/InitiateOrderCreatedWithDeferedPaymentMethod

Request Body

NameTypeDescription

checkoutReference*

string

XCHKB_2945da2a8428404fb7fa7c

consumerDepositMethod*

object

paymentMethod*

string

Bank

paymentData*

Object

accountName*

string

Anna Doe

accountNumber*

string

0000187849

bankName*

string

Access Bank

consumerReceiptMethod*

Object

paymentMethod*

string

Crypto

paymentData*

Object

walletAddress*

string

0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd

network

string

BEP-20

{
  "data": {
    "checkoutReference": "XCHKB_2945da2a8428404fb7fa7c1ae1b0b8e825abe19a1d46433f95e2eef380de73f6",
    "orderReference": "XB_3eaa5a476b9648bd894f238403427fa4",
    "checkoutUrl": "https://checkout-sandbox.xendbridge.com/order?ref=XCHKB_2945da2a8428404fb7fa7c1ae1b0b8e825abe19a1d46433f95e2eef380de73f6",
    "accessToken": "591945",
    "receiveInCurrencyCode": "BUSD",
    "payInCurrencyCode": "NGN",
    "customerPayInCurrencyNetwork": "LOCAL",
    "customerReceieveInCurrencyNetwork": "BEP20",
    "receivableAmount": 0.06597263,
    "payableAmount": 50,
    "receivableAmountWithoutMarkup": 0,
    "providerName": "John Doe",
    "providerFirstName": "John",
    "providerLastName": "Doe",
    "providerEmail": "owolabidamilola98@gmail.com",
    "initiatedAt": "2023-02-13T11:13:43.778927Z",
    "orderExpiryDate": "2023-02-13T11:18:43.6292138Z",
    "initiatedAtTimestamp": 1676286823629,
    "orderExpiryTimestamp": 1676287123629,
    "estimatedOrderCompletionTimestamp": null,
    "fundedProviderAtTimeStamp": null,
    "fundedCustomerAtTimeStamp": null,
    "orderCompletedAtTimeStamp": null,
    "p2POrderStatus": "Acknowledged",
    "disputeStatus": "NoDispute",
    "disputeReference": null,
    "orderType": "Buy",
    "providerContact": {
      "phoneNumber": "2348181186644",
      "whatsappNumber": ""
    },
    "customerContact": {
      "email": null,
      "name": null,
      "phoneNumber": null
    },
    "providerPaymentMethods": {
      "paymentMethod": "Bank",
      "paymentType": "Bank",
      "paymentData": [
        {
          "bankName": "Access",
          "accountNumber": "0709876786",
          "accountName": "John Doe",
          "address": null,
          "swiftCode": null,
          "iban": null,
          "sortCode": null,
          "currency": "NGN",
          "network": "LOCAL"
        }
      ],
      "orderPaymentMethod": {
        "bankName": "Access",
        "accountNumber": "0709876786",
        "accountName": "John Doe",
        "address": null,
        "swiftCode": null,
        "iban": null,
        "sortCode": null,
        "currency": "NGN",
        "network": "LOCAL"
      }
    },
    "consumerDepositMethod": {
      "paymentMethod": "Bank",
      "paymentType": 0,
      "paymentData": {
        "bankName": "Access Bank",
        "accountNumber": "0000187849",
        "accountName": "Emmanuel Diala",
        "address": null,
        "swiftCode": null,
        "iban": null,
        "sortCode": null,
        "currency": "NGN",
        "network": "LOCAL"
      }
    },
    "consumerReceiptMethod": {
      "paymentMethod": "Crypto",
      "paymentType": 0,
      "paymentData": {
        "walletAddress": "0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd",
        "network": "BEP20",
        "currency": "BUSD"
      }
    },
    "providerTransactionMetadata": null,
    "customerTransactionMetadata": null
  },
  "status": "OK",
  "message": ""
}
JSON Request Body
{
  "checkoutReference": "XCHKB_2945da2a8428404fb7fa7c1ae1b0b8e825abe19a1d46433f95e2eef380de73f6",
  "consumerDepositMethod": {
    "paymentMethod": "Bank",
    "paymentData": {
      "accountName": "Emmanuel Diala",
      "accountNumber": "0000187849",
      "bankName": "Access Bank"
    }
  },
  "consumerReceiptMethod": {
    "paymentMethod": "Crypto",
    "paymentData": {
      "walletAddress": "0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd",
      "network": "BEP20"
    }
  }
}

Last updated