# Bulk Charge

## /payments/bulk-tokenize-charge

<mark style="color:green;">`POST`</mark> `https://seerbitapi.com/api/v2/payments/bulk-tokenize-charge`

This endpoint allows you to send an array of  authorizationCode and amount so payments are charged in batches

#### Headers

| Name                                            | Type   | Description                                             |
| ----------------------------------------------- | ------ | ------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | [Bearer Token](https://apis.seerbit.com/authentication) |

#### Request Body

| Name                                                | Type   | Description                         |
| --------------------------------------------------- | ------ | ----------------------------------- |
| authorizationCode<mark style="color:red;">\*</mark> | String | code to charge                      |
| paymentReference<mark style="color:red;">\*</mark>  | String | unique payment reference for charge |
| publicKey<mark style="color:red;">\*</mark>         | String | merchant publickey                  |
| amount<mark style="color:red;">\*</mark>            | String | amount you want to charge           |

{% tabs %}
{% tab title="cURL" %}

```javascript
curl --location 'https://seerbitapi.com/api/v2/payments/bulk-tokenize-charge' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data '
[
    {
        "publicKey": "publickKey",
        "amount": "11",
        "paymentReference": "reference",
        "authorizationCode": "authorizationCode"
    },
    {
        "publicKey": "publickKey",
        "amount": "11",
        "paymentReference": "reference",
        "authorizationCode": "authorizationCode"
    },
    {
        "publicKey": "publickKey",
        "amount": "11",
        "paymentReference": "reference",
        "authorizationCode": "authorizationCode"
    },
    {
        "publicKey": "publickKey",
        "amount": "11",
        "paymentReference": "reference",
        "authorizationCode": "authorizationCode"
    }
]'
```

{% endtab %}

{% tab title="200: OK Successful" %}

```javascript
{
    "code": "00",
    "message": "Successful",
    "payload": {
        "batchId": "d4wnvzc"
    }
}
```

{% endtab %}
{% endtabs %}
