Order objects are created to handle end customers' purchases. You can create, retrieve, and pay individual orders, as well as list all orders. Orders are identified by a unique, random id
shipping_address
is omitted, billing_address
value is usedbilling_address
and shipping_address
, if optional properties firstname
, lastname
, phone
and email
are missing we use the ones from customer
Addresses regroup all customers' needed informations for a successful checkout. They must have a type, right now we handle billing
and shipping
addresses only.
<aside> 💡 You can't create an Event yourself.
</aside>
Events are our way of letting you know when something interesting happens in a transaction.
When an interesting event occurs, we create a new event
object.
Events occur when the state of a transaction changes (payment or refund for example).
Customers identify a single individual making purchases on the Cresh platform. It is shared across all brands and stores.
Items represent products, goods or services purchased in an order
.
They can't be created independantly of an order creation.
<aside> 💡 You can't create a Transaction yourself.
</aside>