cURL
curl --request POST \
--url https://api-v2.vitau.mx/api/orders/resources/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>"
},
"order": {
"details": [
{
"product": 123,
"quantity": 16383
}
],
"store": 123,
"payment_method": 123,
"coupon": "<string>",
"comments": "<string>"
}
}
'import requests
url = "https://api-v2.vitau.mx/api/orders/resources/"
payload = {
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>"
},
"order": {
"details": [
{
"product": 123,
"quantity": 16383
}
],
"store": 123,
"payment_method": 123,
"coupon": "<string>",
"comments": "<string>"
}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user: {
email: 'jsmith@example.com',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
second_last_name: '<string>',
birthdate: '2023-12-25',
medical_condition: '<string>'
},
order: {
details: [{product: 123, quantity: 16383}],
store: 123,
payment_method: 123,
coupon: '<string>',
comments: '<string>'
}
})
};
fetch('https://api-v2.vitau.mx/api/orders/resources/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.vitau.mx/api/orders/resources/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'user' => [
'email' => 'jsmith@example.com',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'second_last_name' => '<string>',
'birthdate' => '2023-12-25',
'medical_condition' => '<string>'
],
'order' => [
'details' => [
[
'product' => 123,
'quantity' => 16383
]
],
'store' => 123,
'payment_method' => 123,
'coupon' => '<string>',
'comments' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-v2.vitau.mx/api/orders/resources/"
payload := strings.NewReader("{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-v2.vitau.mx/api/orders/resources/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.vitau.mx/api/orders/resources/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"details": [
{
"product": {
"current_supplier": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"supplier_products": [
{
"supplier": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"cost": "<string>",
"product": 123,
"id": 123
}
],
"album": {
"images": [
{
"id": 123,
"album": 123,
"image": "<string>",
"is_default": true
}
],
"id": 123
},
"product_variants": [
{
"variant": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"value": "<string>",
"id": 123
}
],
"base": {
"category": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent": 123
},
"pharmaceutical_company": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"diseases": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"tags": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"medical_information": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active_ingredient": "<string>",
"is_generic": true,
"group_number": 1073741823,
"requires_prescription": true,
"base_product": 123
},
"name": "<string>",
"id": 123,
"is_medicine": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"created_by": 123,
"updated_by": 123
},
"price": "<string>",
"id": 123,
"cost": "<string>",
"presentation": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"has_iva": true,
"public_price": "<string>",
"average_cost": "<string>",
"is_active": true,
"sat_key": "<string>",
"sat_unit": "<string>",
"has_shortage": true,
"ean_key": "<string>",
"should_calculate_price": true,
"enlace_vital_description": "<string>",
"active_ingredient": "<string>",
"description": "<string>",
"group_number": 1073741823,
"image": "<string>",
"is_generic": true,
"name": "<string>",
"category": 123,
"medical_information": 123,
"pharmaceutical_company": 123,
"variants": [
123
],
"diseases": [
123
]
},
"price": "<string>",
"quantity": 16383,
"order": 123,
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subtotal": "<string>",
"total": "<string>",
"discount": "<string>",
"iva": "<string>"
}
],
"patient": {
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"insurance_carriers": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"patients": [
123
]
}
],
"id": 123,
"referred_by": 123,
"default_shipping": 123,
"default_invoicing": 123,
"preferred_payment": 123
},
"payment_references": [
{
"method": "<string>",
"reference": "<string>",
"external_url": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"institution": "<string>",
"order": 123
}
],
"payment_method": {
"fee": "<string>",
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"fixed_fee": "<string>"
},
"payment_date": "2023-11-07T05:31:56Z",
"shipping_date": "2023-11-07T05:31:56Z",
"expected_delivery_date": "2023-11-07T05:31:56Z",
"max_delivery_date": "2023-11-07T05:31:56Z",
"receiving_date": "2023-11-07T05:31:56Z",
"prescriptions": [
{
"issue_date": "2023-12-25",
"patient": 123,
"id": 123,
"document_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"expiring_date": "2023-12-25",
"document": "<string>",
"is_verified": true,
"order": 123,
"updated_by": 123
}
],
"shipping_method": {
"company": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"min_delivery_days": 16383,
"max_delivery_days": 16383
},
"subtotal": "<string>",
"shipping_price": "<string>",
"discount": "<string>",
"total": "<string>",
"id": 123,
"shipping": {
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"phone": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"interior_number": "<string>",
"additional_info": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"updated_by": 123
},
"store": {
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"phone": "<string>",
"company_name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"interior_number": "<string>",
"additional_info": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"business_hours": "<string>"
},
"payment": {
"user": 123,
"card_id": "<string>",
"id": 123,
"method": "<string>",
"name": "<string>"
},
"paypal_agreement": {
"id": 123,
"email": "jsmith@example.com",
"user": 123
},
"coupon": {
"code": "<string>",
"value": "<string>",
"description": "<string>",
"has_free_shipping": true
},
"generated_by": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"updated_by": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"invoicing": {
"full_name": "<string>",
"rfc": "<string>",
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"cfdi_use": "<string>",
"fiscal_regime": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"latitude": "<string>",
"longitude": "<string>",
"email": "jsmith@example.com",
"updated_by": 123
},
"patient_order_status": "<string>",
"tags": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"rejection_reason": "<string>",
"origin": "<string>",
"iva": "<string>",
"shipping_discount": "<string>",
"shipping_cost": "<string>",
"folio": "<string>",
"cfdi": "<string>",
"external_payment_id": "<string>",
"reminder": 123,
"subscription": 123
}API Reference
Create Order
An endpoint that allows an authenticated user to purchase an order.
POST
/
api
/
orders
/
resources
/
cURL
curl --request POST \
--url https://api-v2.vitau.mx/api/orders/resources/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>"
},
"order": {
"details": [
{
"product": 123,
"quantity": 16383
}
],
"store": 123,
"payment_method": 123,
"coupon": "<string>",
"comments": "<string>"
}
}
'import requests
url = "https://api-v2.vitau.mx/api/orders/resources/"
payload = {
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>"
},
"order": {
"details": [
{
"product": 123,
"quantity": 16383
}
],
"store": 123,
"payment_method": 123,
"coupon": "<string>",
"comments": "<string>"
}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user: {
email: 'jsmith@example.com',
first_name: '<string>',
last_name: '<string>',
phone: '<string>',
second_last_name: '<string>',
birthdate: '2023-12-25',
medical_condition: '<string>'
},
order: {
details: [{product: 123, quantity: 16383}],
store: 123,
payment_method: 123,
coupon: '<string>',
comments: '<string>'
}
})
};
fetch('https://api-v2.vitau.mx/api/orders/resources/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.vitau.mx/api/orders/resources/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'user' => [
'email' => 'jsmith@example.com',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>',
'second_last_name' => '<string>',
'birthdate' => '2023-12-25',
'medical_condition' => '<string>'
],
'order' => [
'details' => [
[
'product' => 123,
'quantity' => 16383
]
],
'store' => 123,
'payment_method' => 123,
'coupon' => '<string>',
'comments' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-v2.vitau.mx/api/orders/resources/"
payload := strings.NewReader("{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-v2.vitau.mx/api/orders/resources/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.vitau.mx/api/orders/resources/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user\": {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\",\n \"second_last_name\": \"<string>\",\n \"birthdate\": \"2023-12-25\",\n \"medical_condition\": \"<string>\"\n },\n \"order\": {\n \"details\": [\n {\n \"product\": 123,\n \"quantity\": 16383\n }\n ],\n \"store\": 123,\n \"payment_method\": 123,\n \"coupon\": \"<string>\",\n \"comments\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"details": [
{
"product": {
"current_supplier": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"supplier_products": [
{
"supplier": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"cost": "<string>",
"product": 123,
"id": 123
}
],
"album": {
"images": [
{
"id": 123,
"album": 123,
"image": "<string>",
"is_default": true
}
],
"id": 123
},
"product_variants": [
{
"variant": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"value": "<string>",
"id": 123
}
],
"base": {
"category": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent": 123
},
"pharmaceutical_company": {
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"diseases": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"tags": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"medical_information": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active_ingredient": "<string>",
"is_generic": true,
"group_number": 1073741823,
"requires_prescription": true,
"base_product": 123
},
"name": "<string>",
"id": 123,
"is_medicine": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"created_by": 123,
"updated_by": 123
},
"price": "<string>",
"id": 123,
"cost": "<string>",
"presentation": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"has_iva": true,
"public_price": "<string>",
"average_cost": "<string>",
"is_active": true,
"sat_key": "<string>",
"sat_unit": "<string>",
"has_shortage": true,
"ean_key": "<string>",
"should_calculate_price": true,
"enlace_vital_description": "<string>",
"active_ingredient": "<string>",
"description": "<string>",
"group_number": 1073741823,
"image": "<string>",
"is_generic": true,
"name": "<string>",
"category": 123,
"medical_information": 123,
"pharmaceutical_company": 123,
"variants": [
123
],
"diseases": [
123
]
},
"price": "<string>",
"quantity": 16383,
"order": 123,
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subtotal": "<string>",
"total": "<string>",
"discount": "<string>",
"iva": "<string>"
}
],
"patient": {
"user": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"insurance_carriers": [
{
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"patients": [
123
]
}
],
"id": 123,
"referred_by": 123,
"default_shipping": 123,
"default_invoicing": 123,
"preferred_payment": 123
},
"payment_references": [
{
"method": "<string>",
"reference": "<string>",
"external_url": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"institution": "<string>",
"order": 123
}
],
"payment_method": {
"fee": "<string>",
"name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"fixed_fee": "<string>"
},
"payment_date": "2023-11-07T05:31:56Z",
"shipping_date": "2023-11-07T05:31:56Z",
"expected_delivery_date": "2023-11-07T05:31:56Z",
"max_delivery_date": "2023-11-07T05:31:56Z",
"receiving_date": "2023-11-07T05:31:56Z",
"prescriptions": [
{
"issue_date": "2023-12-25",
"patient": 123,
"id": 123,
"document_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"expiring_date": "2023-12-25",
"document": "<string>",
"is_verified": true,
"order": 123,
"updated_by": 123
}
],
"shipping_method": {
"company": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"min_delivery_days": 16383,
"max_delivery_days": 16383
},
"subtotal": "<string>",
"shipping_price": "<string>",
"discount": "<string>",
"total": "<string>",
"id": 123,
"shipping": {
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"phone": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"interior_number": "<string>",
"additional_info": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"updated_by": 123
},
"store": {
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"phone": "<string>",
"company_name": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"interior_number": "<string>",
"additional_info": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"business_hours": "<string>"
},
"payment": {
"user": 123,
"card_id": "<string>",
"id": 123,
"method": "<string>",
"name": "<string>"
},
"paypal_agreement": {
"id": 123,
"email": "jsmith@example.com",
"user": 123
},
"coupon": {
"code": "<string>",
"value": "<string>",
"description": "<string>",
"has_free_shipping": true
},
"generated_by": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"updated_by": {
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"id": 123,
"patient": "<string>",
"doctor": "<string>",
"insurance_employee": "<string>",
"country_code": "<string>",
"national_number": "<string>",
"date_joined": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"phone": "<string>",
"second_last_name": "<string>",
"birthdate": "2023-12-25",
"medical_condition": "<string>",
"created_by": 123,
"groups": [
123
]
},
"invoicing": {
"full_name": "<string>",
"rfc": "<string>",
"street": "<string>",
"exterior_number": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipcode": "<string>",
"cfdi_use": "<string>",
"fiscal_regime": "<string>",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"latitude": "<string>",
"longitude": "<string>",
"email": "jsmith@example.com",
"updated_by": 123
},
"patient_order_status": "<string>",
"tags": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"rejection_reason": "<string>",
"origin": "<string>",
"iva": "<string>",
"shipping_discount": "<string>",
"shipping_cost": "<string>",
"folio": "<string>",
"cfdi": "<string>",
"external_payment_id": "<string>",
"reminder": 123,
"subscription": 123
}Authorizations
APIKeyAuthJWTAuthCookieAuth
Body
application/json
Response
201 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
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 string length:
50Maximum string length:
20Maximum string length:
20Maximum string length:
30Maximum string length:
50Was this page helpful?
⌘I