curl --request POST \
--url https://api.unibee.dev/merchant/invoice/mark_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>"
}Mark invoice as refund
curl --request POST \
--url https://api.unibee.dev/merchant/invoice/mark_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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Show child attributes
country code
create utc time
currency
external_refund_id
Show child attributes
the exchange amount of gateway
the exchange rate of gateway, set to 0 if using https://app.exchangerate-api.com/ instead of fixed exchange rate
the currency of gateway exchange from
the currency of gateway exchange to
gateway_id
gateway refund id
invoice id
merchant id
relative payment id
refund amount, cent
refund comment
refund comment
refund id (system generate)
refund success time
return url after refund success
status。10-pending,20-success,30-failure, 40-cancel
subscription id
1-gateway refund,2-mark refund
user_id