Refunds

Give money back for a succeeded payment, in full or in part.

Refunds are deducted from your next payout. If they are more than the payout, the rest carries over to later payouts.

The refund object

idstring
Starts with rf_.
objectstring
Always refund.
livemodeboolean
Test or live mode.
paymentstring
The id of the refunded payment.
amountinteger
Refunded amount in the smallest currency unit.
currencystring
Same as the payment.
statusenum
pending (being processed), succeeded, failed, or manual: the bank can't refund this payment automatically, so K-LINK completes it by hand; it then becomes succeeded.
reasonstring | null
Your note on why.
created_attimestamp
When the refund was created.
A refund
{
  "id": "rf_8Hk2Lm4Np6Qr8St0Uv2Wx4",
  "object": "refund",
  "livemode": false,
  "payment": "pay_4Nq7xY2mKc8vTz1aB3dE9f",
  "amount": 5000,
  "currency": "MMK",
  "status": "pending",
  "reason": "Customer returned one item",
  "created_at": "2026-11-27T11:00:00Z"
}

Create a refund

POST/v1/refunds

Body

paymentstringrequired
Id of a succeeded payment.
amountinteger
Defaults to what is left to refund. Can't exceed amount − amount_refunded.
reasonstring
Free text.

Requires refunds:write on restricted keys. Refunding a payment that hasn't succeeded, or more than is left, returns 409 invalid_state or 400 invalid_request.

Request
curl https://sandbox-api.klinkpay.net/v1/refunds \
  -X POST \
  -H "Authorization: Bearer kp_test_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "payment": "pay_4Nq7xY2mKc8vTz1aB3dE9f",
    "amount": 5000,
    "reason": "Customer returned one item"
  }'
Response
{
  "id": "rf_8Hk2Lm4Np6Qr8St0Uv2Wx4",
  "object": "refund",
  "livemode": false,
  "payment": "pay_4Nq7xY2mKc8vTz1aB3dE9f",
  "amount": 5000,
  "currency": "MMK",
  "status": "pending",
  "reason": "Customer returned one item",
  "created_at": "2026-11-27T11:00:00Z"
}

Retrieve a refund

GET/v1/refunds/:id

Returns the refund.

Request
curl https://sandbox-api.klinkpay.net/v1/refunds/rf_8Hk2Lm4Np6Qr8St0Uv2Wx4 \
  -H "Authorization: Bearer kp_test_…"

List refunds

GET/v1/refunds

Query

paymentstring
Only refunds of this payment.
limit, starting_after, ending_before
See Pagination.
Request
curl https://sandbox-api.klinkpay.net/v1/refunds?payment=pay_4Nq7xY2mKc8vTz1aB3dE9f \
  -H "Authorization: Bearer kp_test_…"
Response
{
  "object": "list",
  "data": [
    {
      "id": "rf_8Hk2Lm4Np6Qr8St0Uv2Wx4",
      "object": "refund",
      "livemode": false,
      "payment": "pay_4Nq7xY2mKc8vTz1aB3dE9f",
      "amount": 5000,
      "currency": "MMK",
      "status": "pending",
      "reason": "Customer returned one item",
      "created_at": "2026-11-27T11:00:00Z"
    }
  ],
  "has_more": false
}
Refund events: refund.pending, refund.succeeded, refund.failed.