comecerodocs

Get refund options

GET
/refunds/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.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Response Body

The refund options.

application/json
  1. response

The refund and chargeback reasons your account offers.

account_id*string

The account.

test*boolean

True 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.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/refunds/options'
Example Response
{  "account_id": "AB1234",  "test": true,  "refund_reasons": [    "Customer request",    "Duplicate order",    "Product not as described"  ],  "chargeback_reasons": [    "Fraudulent",    "Product not received"  ]}