POST
/
v1
/
checkout
/
{checkout_id}
/
refund
Refund Checkout
curl --request POST \
  --url https://sandbox.api.withgale.com/v1/v1/checkout/{checkout_id}/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "line_items": [
    {
      "line_item_id": "<string>",
      "quantity": 123,
      "amount_cents": 123
    }
  ],
  "reason": "<string>"
}'
{
  "checkout_id": "<string>",
  "status": "<string>",
  "refunded_amount_cents": 123,
  "currency": "<string>",
  "refunded_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

checkout_id
string
required

Body

application/json

Partial or full refund request

The body is of type object.

Response

200
application/json

Refund processed

The response is of type object.