Resend webhook
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
Name | Parameter type | Definition |
---|---|---|
uuid* | uuidrequired_without: order_id | Invoice uuid |
order_id* | stringmin:1max:128alpha_dashrequired_without: uuid | Invoice order ID |
Parameter type
uuidrequired_without: order_idDefinition
Invoice uuidParameter type
stringmin:1max:128alpha_dashrequired_without: uuidDefinition
Invoice order ID
* - mandatory parameter
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"
}'
COPYResponse
Response example
1{
2 "state": 0,
3 "result": []
4}
COPYPossible 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}
COPYIf the invoice is not found
1{
2 "state": 1,
3 "message": "Payment not found"
4}
COPYIf 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}
COPYThe 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