get_refund
Fetch a refund request by its Wayl ID to get reason, link ID, reference ID, amount, initiator, and status. Poll refunds raised with create_refund using the returned ID; read-only.
Instructions
Fetch one refund request by its Wayl refund ID: reason, linkId, referenceId, amount, initiatedBy and current status ('Requested', 'Refunded', 'Rejected' or 'Cancelled').
Use it to poll a refund you raised with `create_refund` — that call returns the `id` you
pass here. If all you have is the order's reference ID, use `list_refunds` with
`reference_id` instead; nothing on the payment link points back to its refunds.
Read-only: it never changes a refund. To withdraw one still in 'Requested', call
`cancel_refund`.
Wayl omits the refund's own ID from this response, so the server re-attaches it as
`refundId`. Amount is a number in whole IQD, unlike a link's `total`, which is a string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refund_id | Yes | The refund's Wayl ID, as returned in `id` by `create_refund` or `list_refunds`. Not your order reference ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||