Order Overview

An Order represents a sale transaction, linking an offer to a customer. It contains all customer information, the purchased offer details, and tracks the order status from creation through completion or cancellation.

Order Schema

FieldDescriptionType
idUnique identifier (UUID)String
amount_centsTotal order amount in centsInteger
statusOrder status. Can be in_progress, finished, or canceledString
cancelation_reasonReason why the order was canceled (only present when status is canceled)String
translated_cancelation_reasonHuman-readable translated cancelation reason in PortugueseString
customer_nameFull name of the customer who purchased the offerString
customer_birthdateBirthdate of the customer in ISO8601 formatString
customer_documentCustomer’s CPF (individual) or CNPJ (business) document numberString
customer_typeType of customer. Can be person (individual) or company (business)String
checkout_typeType of checkout flow. Can be default (standard) or without_address (simplified)String
metadataAdditional custom metadata stored as key-value pairsObject
urlDirect URL to access the order’s checkout pageString
finished_atTimestamp when the order transitioned to finished status in ISO8601 formatString
created_atIndicates when the record was created in ISO8601 formatString
updated_atIndicates when the record was last updated in ISO8601 formatString
offerOffer object containing the purchased offer detailsObject
offersArray of offer objects for any order bump offers the customer added to this order. Empty array if no order bumps were selectedArray
addressAddress object containing the customer’s address informationObject
billingsArray of billing objects associated with this orderArray
root_billingThe order’s original billing: the contract created when the purchase was made, preserving the values agreed at that moment. A renegotiation creates a new active billing, but root_billing keeps the original contract. Same structure as a billings entry, or null when the order has no original billingObject
analysesArray of analysis objects for fraud prevention and credit checksArray
emailContact object containing the customer’s email addressObject
phoneContact object containing the customer’s phone numberObject

Order Status Values

StatusDescription
in_progressThe order has been created and is awaiting payment or completion
finishedThe order has been completed successfully and all required payments have been processed
canceledThe order has been canceled. Check cancelation_reason for details

Checkout Type Values

ValueDescription
defaultStandard checkout flow that collects customer address information
without_addressSimplified checkout flow that does not collect customer address information

Cancelation reasons

FieldDescription
expiredThe order was created but no charge were executed
analysis_deniedOne or more analysis were not approved
analysis_failedWe could not analyse the current CPF
down_payment_not_paidThe order was charged but the customer did not pay the first bill
refunded_by_companyThe company requested a refund for that order
refunded_by_customerThe customer requested a chargeback
customer_renegotiationThe order was canceled due a renegotiation with the customer
customer_dropout_with_fineThe order was canceled due a dropout, but the customer still have to pay a fine
customer_dropoutThe order was canceled due a dropout without any fine