Refund an appointment payment
Refund a captured appointment payment in whole or in part.
Headers
Path Parameters
The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.
The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.
Body
Request body for refunding a payment.
Response
Ok. The operation succeeded.
Represents a payment associated with an appointment.
Unique identifier for the payment.
The method used to process this payment.
platform, external The direction of the payment flow.
payment, refund The payment state.
pending, processing, authorized, paid, failed The amount of this payment.
^-?(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The Guile fee charged with this payment.
^-?(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The appointment obligation this payment addresses, when known.
authorization, deposit, balance When a saved-card authorization hold is scheduled to be placed for this payment.
The authorization failure reason when a hold attempt fails.
declined, cardUnusable, processingError, other The provider decline code returned by the payment processor, when one is available.
The card network advice code returned by the payment processor, when one is available.
The ISO 4217 currency code for this payment's monetary values.
3"USD"
The tip included in the payable total, when one has been selected.
^-?(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The off-hours fee included in this payment, when the payment settles that preserved booking component.
^-?(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The full amount due for the appointment, including the selected tip.
^-?(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
A payment issue requiring follow-up.
authorizationRepairFailed For external payments, the token representing the payment.
External identifier for the payment from the payment processor or external system.
The card charged for this payment, when Guile recorded the network and last four digits from the payment processor. Omitted for cash or external payments, and when Guile never recorded a card for the charge.
For refund payments, the original payment being refunded.
For refund payments, the reason for the refund.
500