Mark payment as paid using external gateway result. Auth: OpenAPI + signature (HMAC-SHA256, hex).
https://api.unibee.dev/merchant/payment/external_gateway_payment/mark_paid
Mark payment as paid 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 |
|---|---|---|---|
externalTransactionId | string | Yes | External payment transaction id from gateway, used as idempotent key |
gatewayId | integer | No | External gateway id (optional), if omitted will be resolved from paymentId |
metadata | object | No | Additional metadata from external gateway |
paidTime | integer | No | Payment success time (unix timestamp in seconds, optional) |
paymentId | string | Yes | The UniBee paymentId |
signature | string | Yes | HMAC-SHA256 hex signature using External Gateway API Key over ‘paymentId|externalTransactionId|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.invoiceId | string | The related UniBee invoiceId |
data.paymentId | string | The UniBee paymentId |
data.status | string | Result status, e.g. success |
data.subscriptionId | string | The related UniBee subscriptionId (if any) |
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 payment as paid using external gateway result. Auth: OpenAPI + signature (HMAC-SHA256, hex).
External payment transaction id from gateway, used as idempotent key
The UniBee paymentId
HMAC-SHA256 hex signature using External Gateway API Key over 'paymentId|externalTransactionId|timestamp'
Unix timestamp in seconds, used for signature and anti-replay
External gateway id (optional), if omitted will be resolved from paymentId
Additional metadata from external gateway
Payment success time (unix timestamp in seconds, optional)