Get refund options
Returns the refund reasons and chargeback reasons set in your account's payment settings, for example to fill a reason picker. Send one of them as reason when you refund.
Needs a secret or trusted token. Limited tokens get 403.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
The refund options.
application/json- response
The refund and chargeback reasons your account offers.
account_id*stringThe account.
test*booleanTrue when read with a test token.
refund_reasons*array<string>The reasons to pick from when you refund.
chargeback_reasons*array<string>The reasons to pick from when you record a chargeback.
curl -X GET 'https://api.comecero.com/api/v1/refunds/options'{ "account_id": "AB1234", "test": true, "refund_reasons": [ "Customer request", "Duplicate order", "Product not as described" ], "chargeback_reasons": [ "Fraudulent", "Product not received" ]}List refunds GET
Lists the refunds and chargebacks on your account, including failed and pending ones, oldest first unless you send `desc=true`. To make a refund, refund an order (`POST /orders/{order_id}/refunds`), an invoice or a payment. The list is cursor-based: use `after_item` and `before_item` (or the `next_page_url` and `previous_page_url` in the response). It is ordered by the date named in `date_type` (`date_created` by default; `date_modified` and `date_completed` also work). `sort_by` is ignored. Needs a secret or trusted token. Limited tokens get `403`.
Get a refund GET
Returns one refund or chargeback. Secret and trusted tokens can read any refund on the account. A limited token can read a refund only when it is bound to it, and the gateway, chargeback and settlement fields are left out for it.