Notus API
Fiat

Create Fiat Withdrawal Order

This endpoint creates a fiat withdrawal order for a given quote id.

POST
/api/v1/fiat/withdraw
x-api-key<token>

In: header

quoteIdstring

The ID of the quote generated by the Withdrawal Quote endpoint

walletAddressstring

Wallet that will send the tokens for withdrawal

Match^0x[a-fA-F0-9]{40}$

Response Body

curl -X POST "https://api.notus.team/api/v1/fiat/withdraw" \  -H "Content-Type: application/json" \  -d '{    "quoteId": "12345678-1234-1234-1234-123456789012",    "walletAddress": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464"  }'
{
  "withdrawOrder": {
    "quoteId": "12345678-1234-1234-1234-123456789012",
    "walletAddress": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464"
  }
}
{
  "statusCode": 400,
  "id": "FIAT_QUOTE_EXPIRED",
  "message": "The quote with id '03dbe93b-b259-480b-9fb6-3684ad5b28ba' has expired"
}
{
  "statusCode": 401,
  "id": "UNAUTHORIZED_EXCEPTION",
  "message": "Unauthorized"
}
{
  "statusCode": 404,
  "id": "FIAT_QUOTE_NOT_FOUND",
  "message": "The quote with id '03dbe93b-b259-480b-9fb6-3684ad5b28ba' was not found"
}
{
  "statusCode": 500,
  "id": "FAILED_TO_CREATE_FIAT_DEPOSIT",
  "message": "Failed to create fiat deposit for quote"
}