Mark refund as success using external gateway result. Auth: OpenAPI + signature (HMAC-SHA256, hex).
https://api.unibee.dev/merchant/payment/external_gateway_refund/mark_success
Mark refund as success using external gateway result. Auth: OpenAPI + signature (HMAC-SHA256, hex).
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
| Name | Type | Required | Description |
|---|---|---|---|
externalRefundId | string | Yes | External refund transaction id from gateway, used as idempotent key |
gatewayId | integer | No | External gateway id (optional), if omitted will be resolved from refundId |
refundId | string | Yes | The UniBee refundId |
signature | string | Yes | HMAC-SHA256 hex signature using External Gateway API Key over ‘refundId|externalRefundId|timestamp’ |
timestamp | integer | Yes | Unix timestamp in seconds, used for signature and anti-replay |
code, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.paymentId | string | The related UniBee paymentId |
data.refundId | string | The UniBee refundId |
data.status | string | Result status, e.g. success |
message | string | Human-readable message |
requestId | string | Request ID for support |
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Mark refund as success using external gateway result. Auth: OpenAPI + signature (HMAC-SHA256, hex).
External refund transaction id from gateway, used as idempotent key
The UniBee refundId
HMAC-SHA256 hex signature using External Gateway API Key over 'refundId|externalRefundId|timestamp'
Unix timestamp in seconds, used for signature and anti-replay
External gateway id (optional), if omitted will be resolved from refundId