POST
/
merchant
/
invoice
/
refund
curl --request POST \
  --url https://api.unibee.top/merchant/invoice/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceId": "<string>",
  "reason": "<string>",
  "refundAmount": 123,
  "refundNo": "<string>"
}'
{
  "code": 123,
  "data": {
    "refund": {
      "countryCode": "<string>",
      "createTime": 123,
      "currency": "<string>",
      "externalRefundId": "<string>",
      "gatewayCurrencyExchange": {
        "exchange_amount": 123,
        "exchange_rate": 123,
        "from_currency": "<string>",
        "to_currency": "<string>"
      },
      "gatewayId": 123,
      "gatewayRefundId": "<string>",
      "invoiceId": "<string>",
      "merchantId": 123,
      "metadata": {},
      "paymentId": "<string>",
      "refundAmount": 123,
      "refundComment": "<string>",
      "refundCommentExplain": "<string>",
      "refundId": "<string>",
      "refundTime": 123,
      "returnUrl": "<string>",
      "status": 123,
      "subscriptionId": "<string>",
      "type": 123,
      "userId": 123
    }
  },
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Create payment refund for paid invoice

Response

200 - application/json

The response is of type object.