create refund
This block is part of the rabosmartpay group and was last modified in core v15.0.2.
create refund v15.0.2 Refunds all or part of a payment transaction. Wire an idempotency key that is stable per refund: Smart Pay answers a repeated key with the first refund instead of making a second one.
- flow
- connection
rabosmartpayconnectionrequired - transaction id
valuerequiredFrom get payment or a webhook result : the transaction, not the order.
- amount
numberrequiredIn cents. At most what refundable details reports.
- currency
valueDefault
EUR. - description
value - vat category
valueHIGH,LOWorZERO.NONEsends no category, which is how Smart Pay spells it on a refund. • Suggestions:HIGHLOWZERONONE - idempotency key
valueAnything stable per refund, e.g. the order id plus a refund number. Without it every run is a new refund. A Request-ID from
request idis sent unchanged.
- flow
- connection
rabosmartpayconnection - refund id
valueRead the refund back with get refund.
- status
valuePENDING, thenSUCCEEDEDorFAILED. - amount
numberIn cents.
- currency
value - transaction id
valueThe payment transaction refunded.
- refund transaction id
value - refund
object - request id
valueThe Request-ID this refund was sent with. If the answer was lost, run again with this as the idempotency key: Smart Pay then replays this refund instead of making a second.
- success
condition - error
valueSmart Pay's own message, e.g. merchantOrderId should only contain alphanumeric characters, or a sentinel for a problem in the wiring.
- error code
valueSmart Pay's code (
5017validation,5001authorization) or a sentinel likeSIGNATURE_MISMATCH.
refund |
money back |
partial refund |
Version history
Introduced in v15.0.2.
Service documentation
External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.Back to
rabosmartpay Return to the main group to view all sub-groups Back to refunds Return to the group to view all blocks within this group