/v1/bookings/{reservationId}/refunds
POST
/v1/bookings/{reservationId}/refunds
const url = 'http://localhost:8787/v1/bookings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/refunds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amountMinorUnits":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/bookings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/refunds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amountMinorUnits": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”reservationId
required
string format: uuid
Request Body
Section titled “Request Body”Media typeapplication/json
object
amountMinorUnits
string
Examplegenerated
{ "amountMinorUnits": "example"}Responses
Section titled “Responses”The refund, succeeded.
Media typeapplication/json
object
amountMinorUnits
required
string
currency
required
string
id
required
string format: uuid
reservationId
required
string format: uuid
state
required
string
stripeRefundId
required
string | null
Example
{ "state": "pending"}No such booking for this tenant.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "booking_not_found"}No succeeded payment to refund, no Stripe Connect account, the requested amount exceeds what was paid, the requested amount is zero (or nothing remains to refund), or Stripe refused the refund.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "booking_not_found"}