Order Schema

Order schema defines a withdrawal or deposit order, identified by its id (UUID) provided at its creation. Through subschemas, it also gives information about the related currencies and user.

Note that types market with "?" may be omitted or nulled.

KeyDescriptionTypeExample
idOrder ID (UUID)stringffdb3cfb-0fdb-49c9-aa77-f35f0b35179e
userUser schemaUserSee User
currencyCurrency schemaCurrencySee Currency
orderTypeOrder directionstringdeposit, withdrawal, buy
valueOrder value in currencystring50.00
feeOrder discounted fee, in currencystring0.50
totalOrder value minus order fee, in currencystring49.5
cryptoCurrencyRelated crypto-currency, in Currency schemastring?See Currency and remark 1
statusOrder statusstringSee Order Statuses
methodOrder settlement methodstring?BankTransfer, PixKey , Cryptowallet
notePersonal partner notestring?This order is a test
requisiteOrder settlement method's paramsBankAccount?, PixKey?{"key":"12345678910","keyType":"cpf"}
createdAtOrder creation timestampstring2020-05-04T12:03:54.000000Z
updatedAtOrder last change timestampstring2020-05-04T12:03:54.000000Z

Remarks

Crypto-currency

References to the crypto-currency of an order will only exist if your setup requires a fiat-to-crypto exchange before moving the funds into the customer's wallet. Should not this be the case and you are going to list the fiat currency itself in the user balance, this field will be null.