# 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;

<mark style="color:green;">`POST`</mark> `https://checkout-api-sandbox.xendbridge.com/api/Order/InitiateOrderCreatedWithDeferedPaymentMethod`

#### Request Body

| Name                                                    | Type   | Description                                |
| ------------------------------------------------------- | ------ | ------------------------------------------ |
| checkoutReference<mark style="color:red;">\*</mark>     | string | XCHKB\_2945da2a8428404fb7fa7c              |
| consumerDepositMethod<mark style="color:red;">\*</mark> | object |                                            |
| paymentMethod<mark style="color:red;">\*</mark>         | string | Bank                                       |
| paymentData<mark style="color:red;">\*</mark>           | Object |                                            |
| accountName<mark style="color:red;">\*</mark>           | string | Anna Doe                                   |
| accountNumber<mark style="color:red;">\*</mark>         | string | 0000187849                                 |
| bankName<mark style="color:red;">\*</mark>              | string | Access Bank                                |
| consumerReceiptMethod<mark style="color:red;">\*</mark> | Object |                                            |
| paymentMethod<mark style="color:red;">\*</mark>         | string | Crypto                                     |
| paymentData<mark style="color:red;">\*</mark>           | Object |                                            |
| walletAddress<mark style="color:red;">\*</mark>         | string | 0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd |
| network                                                 | string | BEP-20                                     |

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
  "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": ""
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

<details>

<summary>JSON Request Body</summary>

```json
{
  "checkoutReference": "XCHKB_2945da2a8428404fb7fa7c1ae1b0b8e825abe19a1d46433f95e2eef380de73f6",
  "consumerDepositMethod": {
    "paymentMethod": "Bank",
    "paymentData": {
      "accountName": "Emmanuel Diala",
      "accountNumber": "0000187849",
      "bankName": "Access Bank"
    }
  },
  "consumerReceiptMethod": {
    "paymentMethod": "Crypto",
    "paymentData": {
      "walletAddress": "0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd",
      "network": "BEP20"
    }
  }
}
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.xendbridge.com/xendbridge-portal/checkout-url/initiate-order-created-with-deferred-payment-method.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
