Notus API
Fiat

Create Fiat Withdrawal Order v2

This endpoint creates a fiat withdrawal order for a given quote id with enhanced payment method options.

POST
/api/v2/fiat/withdrawal
x-api-key<token>

In: header

quoteIdstring

The ID of the quote generated by the Withdrawal Quote endpoint

paymentMethodobject

Payment method details for receiving the fiat currency

Response Body

curl -X POST "https://api.notuslabs.xyz/api/v2/fiat/withdrawal" \  -H "Content-Type: application/json" \  -d '{    "quoteId": "12345678-1234-1234-1234-123456789012",    "paymentMethod": {      "type": "PIX",      "pixKey": "string"    }  }'
{
  "orderWithdraw": {
    "quoteId": "12345678-1234-1234-1234-123456789012",
    "paymentMethod": {
      "type": "PIX",
      "pixKey": "string"
    }
  }
}
{
  "statusCode": 400,
  "id": "FIAT_QUOTE_EXPIRED",
  "message": "Fiat quote expired"
}
{
  "statusCode": 404,
  "id": "FIAT_QUOTE_NOT_FOUND",
  "message": "Fiat quote not found"
}
{
  "statusCode": 500,
  "id": "FAILED_TO_CREATE_FIAT_WITHDRAW",
  "message": "Failed to create fiat withdrawal for quote: '03dbe93b-b259-480b-9fb6-3684ad5b28ba'"
}