Resend webhook

post
https://api.cryptomus.com/v1/payment/resend
COPY

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

Query parameters

NameParameter typeDefinition
uuid*uuidrequired_without: order_idInvoice uuid
order_id*stringmin:1max:128alpha_dashrequired_without: uuidInvoice order ID

Parameter type

uuidrequired_without: order_id

Definition

Invoice uuid

Parameter type

stringmin:1max:128alpha_dashrequired_without: uuid

Definition

Invoice order ID

* - mandatory parameter

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.cryptomus.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"
        }'
COPY

Response

Response example


1{
2    "state": 0,
3    "result": []
4}
COPY

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.


1{
2	  "state": 1,
3	  "errors": {
4        "uuid": ["validation.required_without"],
5        "order_id": ["validation.required_without"]
6	  }
7}
COPY

If the invoice is not found


1{
2	"state": 1,
3	"message": "Payment not found"
4}
COPY

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:


1{
2	"state": 1,
3	"message": "Notification not found"
4}
COPY

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.


1{
2	"state": 1,
3	"message": "Too much resend"
4}
COPY