Refund API
Endpoint contract
Initiate a refund for a completed transaction.
Request
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | String (ULID) | M | The original GLODIPAY transaction ID. |
amount | Float | M | Refund amount. Minimum 0.10 and capped by the remaining refundable amount. |
reason | String(max:1000) | O | Short refund reason. |
signature | String(max:750) | M | RSA-MD5 signature. |
Response
A successful response returns status, message, and a data object containing refundId and refundNumber. Validation errors return HTTP 422 with status: error and an errors array.
Auto-processed refund: message is omitted.
Pending approval: message is "Refund created and waiting for approval."
Note: Partial refunds depend on the processor of the transaction. When they are not allowed, amount must equal the remaining refundable amount.
Refund status updates are delivered to the original transaction webhook URL and must be acknowledged with {"returnCode":"100"} within 15 seconds. Notifications are not retried automatically.
Source
This page is derived from Refund API.