# Resend webhook

**POST** `https://api.heleket.com/v1/payment/resend`

Resend the webhook by invoice. You can resend the webhook only for finalized invoices, that is, invoices in statuses: **wrong\_amount**, **paid**, **paid\_over**.

To resend the webhook on the invoice, the **url\_callback** must be specified at the time of invoice creation.

## Request

### Body parameters

| Name | Parameter type | Definition |
| --- | --- | --- |
| uuid (required) | uuid<br>required\_without: order\_id| Invoice uuid |
| order\_id (required) | string<br>min:1<br>max:128<br>alpha\_dash<br>required\_without: uuid| Invoice order ID |

> You need to pass one of the required parameters, if you pass both, the account will be identified by **order\_id**

### Request example

```
curl https://api.heleket.com/v1/payment/resend \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
	"uuid": "8b03432e-385b-4670-8d06-064591096795"
}'
```

## Response

### Response example

```
{
	"state": 0,
  "result": []
}
```

## Possible errors

### Validation errors

code : 422

example responses:

If you will not pass a _uuid_ and _order\_id_, you will receive this message. It means that at least one of the parameters is required.

```
{
	"state": 1,
	"errors": {
		"uuid": ["validation.required_without"],
		"order_id": ["validation.required_without"]
	}
}
```

If the invoice is not found

```
{
	"state": 1,
	"message": "Payment not found"
}
```

If the url\_callback was not specified when creating an invoice, and no notification was send, there is nothing to resend and you will receive this error message:

```
{
	"state": 1,
	"message": "Notification not found"
}
```

The maximum number of resendings is 10, if you exceed this limit, you will receive an error message. If you want to resend the notification over the limit, you can contact the support.

```
{
	"state": 1,
	"message": "Too much resend"
}
```
