# Query Bulk Charge with BacthId

## /payments/bulk-tokenize-charge

<mark style="color:green;">`GET`</mark> `https://seerbitapi.com/api/v2/payments/bulk-tokenize-charge-search?batchId={{batchId}}`

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                                |
| batchId<mark style="color:red;">\*</mark>           | String | unique Id to retrieve batched tokenize-charge |
| publicKey<mark style="color:red;">\*</mark>         | String | merchant publickey                            |

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

```javascript
{
    "code": "00",
    "message": "Successful",
    "payload": {
        "content": [
            {
                "id": 7,
                "authorizationCode": "authocode",
                "statusCode": "00",
                "message": "Successful",
                "createdAt": "2022-10-12T09:58:40.102",
                "updatedAt": "2022-10-12T09:58:40.102",
                "batchId": "k2auyutyr",
                "currency": "NGN",
                "cardBin": "5123400",
                "cardLastFourDigits": "0739",
                "cardType": "VISA",
                "amount": "10.00"
            },
            {
                "id": 8,
                "authorizationCode": "authocode",
                "statusCode": "00",
                "message": "Successful",
                "createdAt": "2022-10-12T09:58:46.443",
                "updatedAt": "2022-10-12T09:58:46.443",
                "batchId": "kuiuyu",
                "currency": "NGN",
                "cardBin": "5123400",
                "cardLastFourDigits": "0008",
                "cardType": "VISA",
                "amount": "15.00"
            }
        ],
        "pageable": {
            "sort": {
                "sorted": true,
                "unsorted": false,
                "empty": false
            },
            "pageNumber": 0,
            "pageSize": 10,
            "offset": 0,
            "paged": true,
            "unpaged": false
        },
        "last": true,
        "totalElements": 2,
        "totalPages": 1,
        "sort": {
            "sorted": true,
            "unsorted": false,
            "empty": false
        },
        "first": true,
        "numberOfElements": 2,
        "size": 10,
        "number": 0,
        "empty": false
    }
}
```

{% endtab %}
{% endtabs %}
