POST
/
orders
/
offramp
/
{orderId}
/
refund
curl --request POST \
  --url https://api-sandbox.koywe.com/rest/orders/offramp/{orderId}/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "destinationAddress": "0x40f9bf922c23c43acdad71Ab4425280C0ffBD697"
}'
{
  "message": "ok",
  "timestamp": "2024-06-24T17:27:48.585Z",
  "code": "REFUND_000",
  "data": {
    "orderId": "b3b6d577-1be4-4845-9d5b-b43fdef1920a"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderId
string
required

OrderId identifier.

Body

application/json
destinationAddress
string
required

it should be the destination address for the cryptocurrencies. This attribute is crucial in ensuring that funds are sent to the correct place.

Example:

"0x40f9bf922c23c43acdad71Ab4425280C0ffBD697"

Response

200
application/json
successful operation
message
string
Example:

"ok"

timestamp
string
Example:

"2024-06-24T17:27:48.585Z"

code
string
        - `REFUND_000`: Refund order successful.

        - `REFUND_001`: Order not found.

        - `REFUND_002`: Wrong order type.

        - `REFUND_003`: Wrong order status.

        - `REFUND_004`: Refund is processing.

        - `REFUND_005`: Refund already requested.

        - `REFUND_006`: Wrong wallet address.

        - `REFUND_007`: Missing transaction wallet address.
Example:

"REFUND_000"

data
object