Skip to main content
POST
If you’re using the auto-provisioned Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>. Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code. See also: Scoped API keys and Secure your Blnk server.

Path

string
required
The original transaction ID from the lineage. Blnk resolves refundable records through parent lineage - use the ID returned when you recorded the transaction, or the split parent in meta_data.QUEUED_PARENT_TRANSACTION. Do not pass a VOID child’s ID.

Body

boolean
default:"false"
When true, processes the refund synchronously instead of placing it on the transaction queue. Requests without a body keep the default queued behavior.
boolean
default:"false"
When true, Blnk projects the refund without writing anything and returns a preview. See Dry-run a transaction.
string
Narration for the refund. When omitted or empty, the refund copies the original transaction’s description.Available in version 0.15.3 and later.
object
Additional metadata for the refund. Blnk merges these keys onto the metadata inherited from the original transaction. Keys you send replace matching keys; other keys stay on the refund. An empty object is ignored. The original transaction is not modified.Available in version 0.15.3 and later.

Response

Same JSON structure as Record a transaction

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.