Create Order

Log in to see full request history
Body Params

Create a new order given a branch and customer details

customer
object
required

Customer name

address
object
required
phone
object
required
string
required
string
required

This field is capable of receiving either the identifier of the payment method or its code.

double
required
≥ 0

Total amount of the order

products
array of objects
products
collectionPaymentMethods
array of objects

This field is optional, and you can exclusively use the paymentMethod (which will always be considered the primary payment method). It becomes relevant only when employing multiple payment methods. Note: The use of multiple payment methods will deactivate the involvement of external partners

collectionPaymentMethods
double
required
≥ 0

Sub total amount of the order

double
required
≥ 0

Amount to use by the client

boolean
Defaults to false

Validates if the order has been paid

string

The field denotes the intended approximate delivery date for this order. It interfaces with another setting to trigger the order x minutes prior to this date.

tags
array of strings
Defaults to

Tags to differ the order

tags
vehicleTypes
array of strings
Defaults to MOTORCYCLE

Vehicles allowed to delivery this order

vehicleTypes
boolean

An indicator designed to streamline the process by automatically sending orders for assignment, bypassing manual configuration or assignment.

string

Identifier for the shop/client/integration of the order

string

Identifier normally used with external services to be know by client/shop/delivery partner.

string
Defaults to DELIVERY

Type of order the allowed values at the moment are pickup (cliento to shop) and delivery (driver/shop to client)

string
Defaults to null

This field is used to add a code when using external drivers (if they apply), and when they arrived to the branch this code will be required to get the product

string
Defaults to null

This field is used to add a code when using external drivers (if they apply), and when the product is being delivered a code will be needed to give the product to the client

config
object

Object containing multiple configuration options for the order as in example cookingTime (time in seconds to wait before begin assignment)

requiredSkills
array of strings
Defaults to

This field is used to filter drivers or providers by specific skills, any other provider or driver will be removed from the seleccion

requiredSkills
string
Defaults to NONE

This field is used by a variety of clients more specifically pharmacist, and will specify the action required for the doctor recipes

string
Defaults to null

Notes from the client to the store/branch

Responses

401

Forbidden exception

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json