Statuses
Note the spelling
CANCELED - with a single “l”.
Webhook payload
The shape depends on whether you set arequestTemplate when registering the webhook.
Without a requestTemplate
Paymove sends the full payment object. Empty fields are omitted, so a given notification may contain fewer of them:
price matches the amount you sent when creating the payment, so you can compare it against the value you stored. The customer sees that amount plus the fee on the checkout, if your product charges one.The payload contains no
event or type field and is not wrapped in an envelope. It is a flat object, and you identify the kind of event from the status field.With a requestTemplate
The payload is exactly what your template renders. For the template {"orderId": "{{externalId}}", "price": "{{price}}"} you receive:
{{status}}, {{paymentMethod}}, {{email}}, {{date}} and {{orderId}}, not just {{externalId}} and {{price}}. Note that values substituted into a text template arrive in the payload as strings.
A template gives you control over the payload shape and contains exactly what you write into it. If you need to distinguish statuses, add
{{status}} to the template or leave requestTemplate unset altogether.Querying the status
Useful as a supplement to the webhook - for example when the customer is back onreturnUrl but the notification has not arrived yet.
If no payment exists for the given hash you receive:
This endpoint requires no API key. Do not pass sensitive data to it, and do not treat its response alone as the only proof of payment in critical flows - the trustworthy confirmation is a verified webhook.
Recommended flow
- Create the payment and store your
externalIdtogether with the payment hash fromredirectUrl. - Redirect the customer to the checkout.
- On the
returnUrlpage show a “we are processing your payment” message - no fulfilment. - Wait for the webhook, verify its signature and fulfil the order idempotently.
- If the webhook has not arrived by the time the customer returns, query the status so you can show the right message immediately.
Refunds
You can request a refund yourself over the API:POST /api/pay/payment/{orderId}/refund. A successful refund sets the payment’s status to REFUNDED. The full description - refund statuses and the limitations (no partial refunds, one refund per payment) - is on the Refunds page.
The
orderId the refund path needs is the orderId field of the webhook payload or of the status-query response - not your externalId and not the payment hash from redirectUrl.What’s next
Signature verification
A mandatory step before fulfilling an order.
Refunds
Refund a payment over the API and track its state.
Webhook configuration
Registering a webhook and assigning it to a product.
Errors
The error format and the mechanisms this API does not have.