Fiat
Create Fiat Deposit Order
This endpoint creates a fiat deposit order for a given quote id.
curl -X POST "https://api.notus.team/api/v1/fiat/deposit" \ -H "Content-Type: application/json" \ -d '{ "quoteId": "string" }'
{
"depositOrder": {
"expiresAt": "2023-12-31T23:59:59.999Z",
"orderId": "123e4567-e89b-12d3-a456-426614174000",
"paymentMethodToSendDetails": {
"type": "PIX",
"pixKey": "00020101021226990014br.gov.bcb.pix2577pix.bancogenial.com/qrs1/v2/01snLCV5RHN6V3HVjx5abuLYzECFx4hFwmPZgzIRuAbagzHbvA52040000530398654041.005802BR59213rz Servicos Digitais6014Rio de Janeiro62070503***63048B38",
"base64QrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="
}
}
}
{
"statusCode": 400,
"id": "FIAT_QUOTE_EXPIRED",
"message": "The quote with id '03dbe93b-b259-480b-9fb6-3684ad5b28ba' has expired"
}
{
"statusCode": 403,
"id": "UNAVAILABLE_COMPUTE_UNITS",
"message": "The project doesn't have enough compute units to perform this action. Please upgrade your plan."
}
{
"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"
}