API Reference
Create Order
API Reference
Create Order
An endpoint that allows an authenticated user to purchase an order.
POST
/
api
/
orders
/
resources
/
X-API-KEY
string
*
X-API-KEY
Required
string
object
*
user
object
*
user
Required
object
email
string
*
email
Required
string
phone
string
phone
string
first_name
string
*
first_name
Required
string
last_name
string
*
last_name
Required
string
second_last_name
string
second_last_name
string
sex
enum<string>
sex
enum<string>
birthdate
string
birthdate
string
medical_condition
string
medical_condition
string
order
object
*
order
Required
object
details
array
details
array
shipping
object
shipping
object
name
string
name
string
street
string
*
street
Required
string
exterior_number
string
*
exterior_number
Required
string
interior_number
string
interior_number
string
neighborhood
string
*
neighborhood
Required
string
city
string
*
city
Required
string
state
string
*
state
Required
string
country
string
*
country
Required
string
zipcode
string
*
zipcode
Required
string
phone
string
*
phone
Required
string
additional_info
string
additional_info
string
latitude
string
latitude
string
longitude
string
longitude
string
store
integer
store
integer
payment_method
integer
payment_method
integer
coupon
string
coupon
string
comments
string
comments
string
invoicing
object
invoicing
object
full_name
string
*
full_name
Required
string
rfc
string
*
rfc
Required
string
street
string
*
street
Required
string
exterior_number
string
*
exterior_number
Required
string
neighborhood
string
*
neighborhood
Required
string
city
string
*
city
Required
string
state
string
*
state
Required
string
country
string
*
country
Required
string
zipcode
string
*
zipcode
Required
string
latitude
string
latitude
string
longitude
string
longitude
string
email
string
email
string
cfdi_use
string
*
cfdi_use
Required
string
fiscal_regime
string
*
fiscal_regime
Required
string
Authorizations
Body
application/json
Required string length:
1 - 254
Required string length:
1 - 30
Required string length:
1 - 100
Maximum length:
25
Maximum length:
100
Available options:
M
, F
Maximum length:
100
Required string length:
1 - 250
Required string length:
1 - 20
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 20
Required string length:
1 - 25
Maximum length:
30
Maximum length:
20
Required string length:
1 - 100
Required string length:
1 - 20
Maximum length:
250
Maximum length:
20
Maximum length:
100
Maximum length:
100
Maximum length:
100
Maximum length:
100
Maximum length:
20
Maximum length:
4
Maximum length:
3
Maximum length:
254
Response
201 - application/json
Required string length:
1 - 50
Maximum length:
250
Required range:
0 < x < 2147483647
Required string length:
1 - 250
Maximum length:
50
Maximum length:
100
Maximum length:
50
Maximum length:
10
Maximum length:
250
Required range:
0 < x < 2147483647
Maximum length:
250
Required range:
0 < x < 32767
Required string length:
1 - 254
Required string length:
1 - 30
Required string length:
1 - 100
Maximum length:
25
Maximum length:
100
Available options:
M
, F
Maximum length:
100
Los grupos a los que pertenece este usuario. Un usuario tendrá todos los permisos asignados a cada uno de sus grupos.
Required string length:
1 - 20
Required string length:
1 - 50
Maximum length:
50
Required string length:
1 - 200
Required string length:
1 - 100
Available options:
standard
, express
, local
, default
Required range:
0 < x < 32767
Required range:
0 < x < 32767
Required string length:
1 - 250
Required string length:
1 - 20
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 20
Required string length:
1 - 25
Maximum length:
30
Maximum length:
20
Required string length:
1 - 250
Required string length:
1 - 20
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 100
Required string length:
1 - 20
Required string length:
1 - 25
Required string length:
1 - 100
Maximum length:
30
Maximum length:
20
Required string length:
1 - 254
Required string length:
1 - 30
Required string length:
1 - 100
Maximum length:
25
Maximum length:
100
Available options:
M
, F
Maximum length:
100
Los grupos a los que pertenece este usuario. Un usuario tendrá todos los permisos asignados a cada uno de sus grupos.
Required string length:
1 - 254
Required string length:
1 - 30
Required string length:
1 - 100
Maximum length:
25
Maximum length:
100
Available options:
M
, F
Maximum length:
100
Los grupos a los que pertenece este usuario. Un usuario tendrá todos los permisos asignados a cada uno de sus grupos.
Required string length:
1 - 100
Required string length:
1 - 20
Maximum length:
250
Maximum length:
20
Maximum length:
100
Maximum length:
100
Maximum length:
100
Maximum length:
100
Maximum length:
20
Maximum length:
4
Maximum length:
3
Maximum length:
254
Available options:
not_started
, missing_data
, sent_to_broker
, sent_to_insurer
, approved_by_insurer
Available options:
quoted
, pending_approval
, approved
, in_process
, ready
, shipped
, delivered
, cancelled
, delayed
, shortage
Available options:
unpaid
, credit
, paid
, in_process
, processing
, rejected
Maximum length:
50
Maximum length:
20
Maximum length:
20
Maximum length:
30
Maximum length:
50
Was this page helpful?