PUT
/
orders
/
{orderId}
curl --request PUT \
  --url https://api-sandbox.koywe.com/rest/orders/{orderId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "destinationAddress": "63e154dbc47d9176668a9af6"
}'
{
  "_id": "66eb25f75752142702c3ca5e",
  "bankCode": "90646",
  "name": "STP",
  "account": "66b114eea67737d9811432b8",
  "currencySymbol": "MXN",
  "countryCode": "MEX",
  "accountNumber": "646180374711307483"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
destinationAddress
string
required

It should be the new bank account of the user account that owns the order to be able to make the fiat currency deposit.

Example:

"63e154dbc47d9176668a9af6"

Response

200
application/json
successful operation
_id
string
Example:

"63dd5fd9cccad469ee2408f7"

bankCode
string
Example:

"SANTANDER"

countryCode
string
Example:

"CHL"

currencySymbol
string
Example:

"CLP"

accountNumber
string
Example:

"1234596789"

account
string
Example:

"62f28c4aa05176c3dfba8e"

name
string
Example:

"BANCO SANTANDER"