v1

latestOpenAPI 3.1.02026-07-222392081.7 MB
Transactions

Refund transaction

Refund a settled banking transaction for its full amount. The related invoice will switch back to to pay status. Use the create credit note endpoint if you want to cancel (and optionally refund) the initial invoice.

post/v1/transactions/{id}/refund

Path parameters

idstring required

Response

The created refund transaction.

OR
OR
OR

Example response

{
  "id": "tra_2QdJDDUej969ev",
  "type": "subscription",
  "amount": 31500,
  "currency": "EUR",
  "customer_id": "cus_QalW2vTAdkR6IY",
  "process_at": "2024-11-12T07:38:39.222Z",
  "settled_at": "2024-11-12T07:38:39.222Z",
  "provider_fee": {
    "currency": "EUR"
  },
  "chargeback": {
    "amount": 31500,
    "last_chargeback_at": "2024-10-13T10:00:01.860Z"
  },
  "integrations": [
    {
      "entity_id": "123456789",
      "provider_name": "stripe",
      "provider_account_id": "acc_1234567890"
    }
  ],
  "payment_method": {
    "id": "pm_1xMpj5bwRqN7LM",
    "status": "active",
    "type": "card",
    "last_4_digits": 2718,
    "expiration_date": "2027-11",
    "brand": "visa"
  },
  "status": "settled"
}