# 按条件重新发送 webhook 回调 (/zh/docs/pix-processamento/endpoints/callbacks/resend_user_callbacks_webhooks)

## POST /user/callbacks/resend/webhook

`POST https://api.payzu.processamento.com/v1/user/callbacks/resend/webhook`

Queues the resend of failed webhook deliveries in a period. For each webhook, transaction and event, only the last delivery attempt in the period counts, and it is resent only when it failed. The filters apply to the transactions of those deliveries.

### Body params

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `createdAtFrom` | string | yes | Start of the delivery period. At most 30 days ago. — format: date-time |
| `createdAtTo` | string | yes | End of the delivery period, on or after createdAtFrom. The window cannot exceed 7 days. — format: date-time |
| `webhookIds` | string[] | no | Webhooks to resend. Omitted: all active webhooks of the account. |
| `transactionIds` | string[] | no | Restrict to specific transaction IDs. |
| `transactionTypes` | string[] | no | Filter by transaction type. |
| `transactionStatus` | string[] | no | Filter by the current transaction status. |
| `transactionEndToEndIds` | string[] | no | Restrict to specific end-to-end IDs. |

### Responses

**200** Callbacks accepted for resend. Acceptance is not delivery: the queueing runs after the response.

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `enqueued` | object | no |  |
| `enqueued.count` | integer | no | Total number of callbacks sent for queueing. Not limited by the size of items. |
| `enqueued.truncated` | boolean | no | True when items lists only part of the callbacks. The resend still covers all of them. |
| `enqueued.items` | object[] | no | Queued callbacks, capped at 500 entries. |
| `enqueued.items.transactionId` | string | no | Transaction whose callback was queued. |
| `enqueued.items.webhookId` | string | no | Webhook that receives the delivery. |
| `enqueued.items.eventType` | object | no | Event that triggered the callback, when the log records it. |

**400** Invalid request

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `status` | string | yes | Fixed marker of an error response. |
| `error` | string | yes | Name of the corresponding HTTP status. |
| `errorCode` | string | yes | Stable machine-readable error code, when available. |
| `message` | string | yes | Human-readable error message. |
| `statusCode` | integer | yes | HTTP status code. |
| `requestId` | string | yes | Unique request correlation ID (cuid). Include it when contacting support. |
| `details` | object[] | no | Field-level validation errors, when applicable. |
| `details.field` | string | yes | Path of the field rejected in validation, without the leading slash. |
| `details.message` | string | yes | Reason that field was rejected, in Portuguese. |
| `retryAfterSeconds` | integer | no | Seconds to wait before retrying. Present only on 429 responses. |

**401** Authentication failure

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `status` | string | yes | Fixed marker of an error response. |
| `error` | string | yes | Name of the corresponding HTTP status. |
| `errorCode` | string | yes | Stable machine-readable error code, when available. |
| `message` | string | yes | Human-readable error message. |
| `statusCode` | integer | yes | HTTP status code. |
| `requestId` | string | yes | Unique request correlation ID (cuid). Include it when contacting support. |
| `details` | object[] | no | Field-level validation errors, when applicable. |
| `details.field` | string | yes | Path of the field rejected in validation, without the leading slash. |
| `details.message` | string | yes | Reason that field was rejected, in Portuguese. |
| `retryAfterSeconds` | integer | no | Seconds to wait before retrying. Present only on 429 responses. |

**403** Operation not allowed

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `status` | string | yes | Fixed marker of an error response. |
| `error` | string | yes | Name of the corresponding HTTP status. |
| `errorCode` | string | yes | Stable machine-readable error code, when available. |
| `message` | string | yes | Human-readable error message. |
| `statusCode` | integer | yes | HTTP status code. |
| `requestId` | string | yes | Unique request correlation ID (cuid). Include it when contacting support. |
| `details` | object[] | no | Field-level validation errors, when applicable. |
| `details.field` | string | yes | Path of the field rejected in validation, without the leading slash. |
| `details.message` | string | yes | Reason that field was rejected, in Portuguese. |
| `retryAfterSeconds` | integer | no | Seconds to wait before retrying. Present only on 429 responses. |

**404** No active webhook matched the criteria (PZW301), or no failed callback matched the filters (PZW311).

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `status` | string | yes | Fixed marker of an error response. |
| `error` | string | yes | Name of the corresponding HTTP status. |
| `errorCode` | string | yes | Stable machine-readable error code, when available. |
| `message` | string | yes | Human-readable error message. |
| `statusCode` | integer | yes | HTTP status code. |
| `requestId` | string | yes | Unique request correlation ID (cuid). Include it when contacting support. |
| `details` | object[] | no | Field-level validation errors, when applicable. |
| `details.field` | string | yes | Path of the field rejected in validation, without the leading slash. |
| `details.message` | string | yes | Reason that field was rejected, in Portuguese. |
| `retryAfterSeconds` | integer | no | Seconds to wait before retrying. Present only on 429 responses. |

**422** Resend limit reached: 5 requests per minute per account, shared by all /user/callbacks/resend routes

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `status` | string | yes | Fixed marker of an error response. |
| `error` | string | yes | Name of the corresponding HTTP status. |
| `errorCode` | string | yes | Stable machine-readable error code, when available. |
| `message` | string | yes | Human-readable error message. |
| `statusCode` | integer | yes | HTTP status code. |
| `requestId` | string | yes | Unique request correlation ID (cuid). Include it when contacting support. |
| `details` | object[] | no | Field-level validation errors, when applicable. |
| `details.field` | string | yes | Path of the field rejected in validation, without the leading slash. |
| `details.message` | string | yes | Reason that field was rejected, in Portuguese. |
| `retryAfterSeconds` | integer | no | Seconds to wait before retrying. Present only on 429 responses. |