> For the complete documentation index, see [llms.txt](https://docs.sendstackhq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sendstackhq.com/delivery-api/bookings/generate-pod-account-number.md).

# Generate POD account number

## Generate account number for POD delivery

<mark style="color:green;">`POST`</mark> `{baseUrl}/drops/cancel`

The bank account details are securely generated via Paystack and sent to the receiver of the goods. The account remains valid for 8 hours.

#### Headers

| Name                                          | Type   | Description         |
| --------------------------------------------- | ------ | ------------------- |
| app\_id<mark style="color:red;">\*</mark>     | string | Your app ID         |
| app\_secret<mark style="color:red;">\*</mark> | string | Your app secret key |

#### Request Body

| Name                                     | Type   | Description |
| ---------------------------------------- | ------ | ----------- |
| dropId<mark style="color:red;">\*</mark> | String | dropId      |

{% tabs %}
{% tab title="200 Deliveries cancelled" %}

```
{
  "status": true,
  "message": "Delivery cancelled",
  "data": {
  }
}
```

{% endtab %}

{% tab title="400: Bad Request Invalid dropId" %}

```
{
    "status": false,
    "message": "Invalid app_id or app_secret",
    "data": {
        "statusCode": 401,
        "message": "Invalid app_id or app_secret",
        "isOperational": true,
    }
}
```

{% endtab %}
{% endtabs %}

```
// Sample Request information
Url: https://sandbox.sendstack.africa/drops/payOnDelivery
Method: POST
Headers: 
 - app_id: "your app_id"
 - app_secret: "your app_secret"
Body:
  -dropId
```

### Sample Success Data

```json
// Sample Request body
{
    "dropId": "yourDropId"
}
```

```json
//Sample Response Body - 200 OK

```

### Sample Error Data

```json
{
    "dropId": "invalid dropId"
}
```

```json
//Sample Response Body - 400 OK
{
    "status": false,
    "message": "Invalid dropId"
}
```
