> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wepayout.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Resend Job Status

> Check the progress and status of a bulk payin webhook resend job

## Overview

After dispatching a bulk resend job via [Resend Payin Webhooks (Bulk)](https://docs.wepayout.co/api-reference/cash-in/webhooks/resend-bulk.md),
use this endpoint to monitor its progress. Job state is available for **24 hours** after completion.

## Path Parameters

**jobId** `string` *required*

The job ID returned by the [bulk resend endpoint](https://docs.wepayout.co/api-reference/cash-in/webhooks/resend-bulk.md).

Example: `"a3f1bc2e4d8f0a1b2c3d4e5f6a7b8c9d"`

## Response

**status** `string`

Current status of the job.

| Value | Description |
| - | - |
| `processing` | Job is running — transactions are being queued |
| `completed` | Job finished successfully |
| `failed` | Job encountered a fatal error and was aborted |

**merchant\_id** `integer`

ID of the merchant for which the resend was triggered.

Example: `303`

**start\_time** `string`

Start of the time range used in the original request.

Example: `"2026-03-24 08:00:00"`

**end\_time** `string`

End of the time range used in the original request.

Example: `"2026-03-24 11:00:00"`

**total** `integer`

Total number of payin transactions matched at the time of dispatch.

Example: `142`

**queued** `integer`

Number of webhook notifications successfully enqueued so far.

Example: `98`

**failed** `integer`

Number of webhook notifications that failed to be enqueued.

Example: `2`

**started\_at** `string`

ISO 8601 timestamp of when the job started.

Example: `"2026-03-24T08:05:00+00:00"`

**updated\_at** `string`

ISO 8601 timestamp of the last state update.

Example: `"2026-03-24T08:07:32+00:00"`

**reason** `string`

Present only when `status` is `failed`. Describes the fatal error that caused the job to abort.

Example: `"Connection refused"`

```json 200 (processing) theme={null}
{
  "status": "processing",
  "merchant_id": 303,
  "start_time": "2026-03-24 08:00:00",
  "end_time": "2026-03-24 11:00:00",
  "total": 142,
  "queued": 98,
  "failed": 0,
  "started_at": "2026-03-24T08:05:00+00:00",
  "updated_at": "2026-03-24T08:07:32+00:00"
}
```

```json 200 (completed) theme={null}
{
  "status": "completed",
  "merchant_id": 303,
  "start_time": "2026-03-24 08:00:00",
  "end_time": "2026-03-24 11:00:00",
  "total": 142,
  "queued": 140,
  "failed": 2,
  "started_at": "2026-03-24T08:05:00+00:00",
  "updated_at": "2026-03-24T08:09:15+00:00"
}
```

```json 200 (failed) theme={null}
{
  "status": "failed",
  "merchant_id": 303,
  "start_time": "2026-03-24 08:00:00",
  "end_time": "2026-03-24 11:00:00",
  "total": 142,
  "queued": 0,
  "failed": 0,
  "started_at": "2026-03-24T08:05:00+00:00",
  "updated_at": "2026-03-24T08:05:03+00:00",
  "reason": "Connection refused"
}
```

```json 404 theme={null}
{
  "message": "Job not found."
}
```

```json 403 theme={null}
{
  "message": "Forbidden"
}
```

## Code Examples

```bash cURL theme={null}
curl -X GET "https://api.wepayments.com/v2/payin/notifications/resend/a3f1bc2e4d8f0a1b2c3d4e5f6a7b8c9d" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```javascript JavaScript theme={null}
const jobId = 'a3f1bc2e4d8f0a1b2c3d4e5f6a7b8c9d';

const response = await fetch(
  `https://api.wepayments.com/v2/payin/notifications/resend/${jobId}`,
  {
    headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
  }
);

const job = await response.json();
console.log(`Status: ${job.status} — queued: ${job.queued}/${job.total}`);
```

```python Python theme={null}
import requests

job_id = 'a3f1bc2e4d8f0a1b2c3d4e5f6a7b8c9d'

response = requests.get(
    f'https://api.wepayments.com/v2/payin/notifications/resend/{job_id}',
    headers={'Authorization': 'Bearer YOUR_API_KEY'}
)

job = response.json()
print(f"Status: {job['status']} — queued: {job['queued']}/{job['total']}")
```

```php PHP theme={null}
<?php
$jobId = 'a3f1bc2e4d8f0a1b2c3d4e5f6a7b8c9d';

$ch = curl_init("https://api.wepayments.com/v2/payin/notifications/resend/{$jobId}");
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo "Status: {$response['status']} — queued: {$response['queued']}/{$response['total']}";
?>
```

## Polling the Job

Job state is updated in real-time as the job processes each chunk of 200 transactions. A simple polling pattern:

```javascript theme={null}
async function waitForJob(jobId, intervalMs = 3000) {
  while (true) {
    const res = await fetch(
      `https://api.wepayments.com/v2/payin/notifications/resend/${jobId}`,
      { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
    );
    const job = await res.json();

    console.log(`[${job.status}] queued: ${job.queued}/${job.total}, failed: ${job.failed}`);

    if (job.status === 'completed' || job.status === 'failed') {
      return job;
    }

    await new Promise(resolve => setTimeout(resolve, intervalMs));
  }
}
```

> [!NOTE]
>
> Job state is stored for **24 hours**. After that, the endpoint will return `404`.

## Related

> [card] [Resend Webhooks (Bulk)](https://docs.wepayout.co/api-reference/cash-in/webhooks/resend-bulk.md)
>
> Dispatch a new bulk resend job

> [card] [Payin Webhook](https://docs.wepayout.co/cash-in/payin-webhook.md)
>
> Understand the webhook payload structure


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.