curl --request POST \
--url https://api.quivo.co/v2/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sellerId": 123,
"orderIdentifier": "<string>",
"orderReference": "<string>",
"deliveryAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"addressIdentifier": "<string>",
"additionalIdentifiers": [
{
"identifier": "<string>",
"type": "<string>"
}
],
"latitude": 123,
"longitude": 123
},
"positions": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"lot": "<string>",
"expirationDate": "2023-12-25",
"location": "<string>",
"positionIdentifier": "<string>",
"productIdentifier": "<string>",
"customAttributes": "{\"attr1\":\"val1\"}"
}
],
"warehouseId": 123,
"hasInvoiceAddress": true,
"hasInvoiceData": true,
"invoiceAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>"
},
"orderDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"invoiceIds": [
"<string>"
],
"comment": "<string>",
"earliestDeliveryDate": "2023-12-25",
"latestDeliveryDate": "2023-12-25",
"transportInsuranceAmount": 1,
"cashOnDeliveryAmount": 123,
"cashOnDeliveryCurrency": "<string>",
"shippingMethodIdentifier": "<string>",
"shippingMethodName": "<string>",
"tags": [
"<string>"
],
"trackingEnabled": true,
"allowPartial": true,
"orderPriority": 2,
"orderReference2": "<string>",
"customerPurchaseOrderNumber": "<string>",
"customerPurchaseOrderNumber2": "<string>",
"ssccLabel": true,
"channelId": "<string>",
"channelName": "<string>",
"channelTypeCode": "<string>",
"attachments": [
{
"copyCount": 2,
"filename": "<string>",
"fileKey": "<string>",
"mimeType": "<string>"
}
],
"customAttributes": "{\"attr1\":\"val1\"}"
}
'import requests
url = "https://api.quivo.co/v2/orders"
payload = {
"sellerId": 123,
"orderIdentifier": "<string>",
"orderReference": "<string>",
"deliveryAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"addressIdentifier": "<string>",
"additionalIdentifiers": [
{
"identifier": "<string>",
"type": "<string>"
}
],
"latitude": 123,
"longitude": 123
},
"positions": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"lot": "<string>",
"expirationDate": "2023-12-25",
"location": "<string>",
"positionIdentifier": "<string>",
"productIdentifier": "<string>",
"customAttributes": "{\"attr1\":\"val1\"}"
}
],
"warehouseId": 123,
"hasInvoiceAddress": True,
"hasInvoiceData": True,
"invoiceAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>"
},
"orderDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"invoiceIds": ["<string>"],
"comment": "<string>",
"earliestDeliveryDate": "2023-12-25",
"latestDeliveryDate": "2023-12-25",
"transportInsuranceAmount": 1,
"cashOnDeliveryAmount": 123,
"cashOnDeliveryCurrency": "<string>",
"shippingMethodIdentifier": "<string>",
"shippingMethodName": "<string>",
"tags": ["<string>"],
"trackingEnabled": True,
"allowPartial": True,
"orderPriority": 2,
"orderReference2": "<string>",
"customerPurchaseOrderNumber": "<string>",
"customerPurchaseOrderNumber2": "<string>",
"ssccLabel": True,
"channelId": "<string>",
"channelName": "<string>",
"channelTypeCode": "<string>",
"attachments": [
{
"copyCount": 2,
"filename": "<string>",
"fileKey": "<string>",
"mimeType": "<string>"
}
],
"customAttributes": "{\"attr1\":\"val1\"}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sellerId: 123,
orderIdentifier: '<string>',
orderReference: '<string>',
deliveryAddress: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
addressIdentifier: '<string>',
additionalIdentifiers: [{identifier: '<string>', type: '<string>'}],
latitude: 123,
longitude: 123
},
positions: [
{
sku: '<string>',
name: '<string>',
quantity: 123,
price: 123,
lot: '<string>',
expirationDate: '2023-12-25',
location: '<string>',
positionIdentifier: '<string>',
productIdentifier: '<string>',
customAttributes: '{"attr1":"val1"}'
}
],
warehouseId: 123,
hasInvoiceAddress: true,
hasInvoiceData: true,
invoiceAddress: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>'
},
orderDate: '2023-11-07T05:31:56Z',
currencyCode: '<string>',
invoiceIds: ['<string>'],
comment: '<string>',
earliestDeliveryDate: '2023-12-25',
latestDeliveryDate: '2023-12-25',
transportInsuranceAmount: 1,
cashOnDeliveryAmount: 123,
cashOnDeliveryCurrency: '<string>',
shippingMethodIdentifier: '<string>',
shippingMethodName: '<string>',
tags: ['<string>'],
trackingEnabled: true,
allowPartial: true,
orderPriority: 2,
orderReference2: '<string>',
customerPurchaseOrderNumber: '<string>',
customerPurchaseOrderNumber2: '<string>',
ssccLabel: true,
channelId: '<string>',
channelName: '<string>',
channelTypeCode: '<string>',
attachments: [
{copyCount: 2, filename: '<string>', fileKey: '<string>', mimeType: '<string>'}
],
customAttributes: '{"attr1":"val1"}'
})
};
fetch('https://api.quivo.co/v2/orders', 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.quivo.co/v2/orders",
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([
'sellerId' => 123,
'orderIdentifier' => '<string>',
'orderReference' => '<string>',
'deliveryAddress' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'addressIdentifier' => '<string>',
'additionalIdentifiers' => [
[
'identifier' => '<string>',
'type' => '<string>'
]
],
'latitude' => 123,
'longitude' => 123
],
'positions' => [
[
'sku' => '<string>',
'name' => '<string>',
'quantity' => 123,
'price' => 123,
'lot' => '<string>',
'expirationDate' => '2023-12-25',
'location' => '<string>',
'positionIdentifier' => '<string>',
'productIdentifier' => '<string>',
'customAttributes' => '{"attr1":"val1"}'
]
],
'warehouseId' => 123,
'hasInvoiceAddress' => true,
'hasInvoiceData' => true,
'invoiceAddress' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>'
],
'orderDate' => '2023-11-07T05:31:56Z',
'currencyCode' => '<string>',
'invoiceIds' => [
'<string>'
],
'comment' => '<string>',
'earliestDeliveryDate' => '2023-12-25',
'latestDeliveryDate' => '2023-12-25',
'transportInsuranceAmount' => 1,
'cashOnDeliveryAmount' => 123,
'cashOnDeliveryCurrency' => '<string>',
'shippingMethodIdentifier' => '<string>',
'shippingMethodName' => '<string>',
'tags' => [
'<string>'
],
'trackingEnabled' => true,
'allowPartial' => true,
'orderPriority' => 2,
'orderReference2' => '<string>',
'customerPurchaseOrderNumber' => '<string>',
'customerPurchaseOrderNumber2' => '<string>',
'ssccLabel' => true,
'channelId' => '<string>',
'channelName' => '<string>',
'channelTypeCode' => '<string>',
'attachments' => [
[
'copyCount' => 2,
'filename' => '<string>',
'fileKey' => '<string>',
'mimeType' => '<string>'
]
],
'customAttributes' => '{"attr1":"val1"}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.quivo.co/v2/orders"
payload := strings.NewReader("{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.quivo.co/v2/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"field": "<string>",
"message": "<string>",
"orderId": 123
}Submit request
Submit a new order for processing, including essential details like delivery address, order identifier, and item positions.
curl --request POST \
--url https://api.quivo.co/v2/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sellerId": 123,
"orderIdentifier": "<string>",
"orderReference": "<string>",
"deliveryAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"addressIdentifier": "<string>",
"additionalIdentifiers": [
{
"identifier": "<string>",
"type": "<string>"
}
],
"latitude": 123,
"longitude": 123
},
"positions": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"lot": "<string>",
"expirationDate": "2023-12-25",
"location": "<string>",
"positionIdentifier": "<string>",
"productIdentifier": "<string>",
"customAttributes": "{\"attr1\":\"val1\"}"
}
],
"warehouseId": 123,
"hasInvoiceAddress": true,
"hasInvoiceData": true,
"invoiceAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>"
},
"orderDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"invoiceIds": [
"<string>"
],
"comment": "<string>",
"earliestDeliveryDate": "2023-12-25",
"latestDeliveryDate": "2023-12-25",
"transportInsuranceAmount": 1,
"cashOnDeliveryAmount": 123,
"cashOnDeliveryCurrency": "<string>",
"shippingMethodIdentifier": "<string>",
"shippingMethodName": "<string>",
"tags": [
"<string>"
],
"trackingEnabled": true,
"allowPartial": true,
"orderPriority": 2,
"orderReference2": "<string>",
"customerPurchaseOrderNumber": "<string>",
"customerPurchaseOrderNumber2": "<string>",
"ssccLabel": true,
"channelId": "<string>",
"channelName": "<string>",
"channelTypeCode": "<string>",
"attachments": [
{
"copyCount": 2,
"filename": "<string>",
"fileKey": "<string>",
"mimeType": "<string>"
}
],
"customAttributes": "{\"attr1\":\"val1\"}"
}
'import requests
url = "https://api.quivo.co/v2/orders"
payload = {
"sellerId": 123,
"orderIdentifier": "<string>",
"orderReference": "<string>",
"deliveryAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"addressIdentifier": "<string>",
"additionalIdentifiers": [
{
"identifier": "<string>",
"type": "<string>"
}
],
"latitude": 123,
"longitude": 123
},
"positions": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"lot": "<string>",
"expirationDate": "2023-12-25",
"location": "<string>",
"positionIdentifier": "<string>",
"productIdentifier": "<string>",
"customAttributes": "{\"attr1\":\"val1\"}"
}
],
"warehouseId": 123,
"hasInvoiceAddress": True,
"hasInvoiceData": True,
"invoiceAddress": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>"
},
"orderDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"invoiceIds": ["<string>"],
"comment": "<string>",
"earliestDeliveryDate": "2023-12-25",
"latestDeliveryDate": "2023-12-25",
"transportInsuranceAmount": 1,
"cashOnDeliveryAmount": 123,
"cashOnDeliveryCurrency": "<string>",
"shippingMethodIdentifier": "<string>",
"shippingMethodName": "<string>",
"tags": ["<string>"],
"trackingEnabled": True,
"allowPartial": True,
"orderPriority": 2,
"orderReference2": "<string>",
"customerPurchaseOrderNumber": "<string>",
"customerPurchaseOrderNumber2": "<string>",
"ssccLabel": True,
"channelId": "<string>",
"channelName": "<string>",
"channelTypeCode": "<string>",
"attachments": [
{
"copyCount": 2,
"filename": "<string>",
"fileKey": "<string>",
"mimeType": "<string>"
}
],
"customAttributes": "{\"attr1\":\"val1\"}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sellerId: 123,
orderIdentifier: '<string>',
orderReference: '<string>',
deliveryAddress: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
addressIdentifier: '<string>',
additionalIdentifiers: [{identifier: '<string>', type: '<string>'}],
latitude: 123,
longitude: 123
},
positions: [
{
sku: '<string>',
name: '<string>',
quantity: 123,
price: 123,
lot: '<string>',
expirationDate: '2023-12-25',
location: '<string>',
positionIdentifier: '<string>',
productIdentifier: '<string>',
customAttributes: '{"attr1":"val1"}'
}
],
warehouseId: 123,
hasInvoiceAddress: true,
hasInvoiceData: true,
invoiceAddress: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>'
},
orderDate: '2023-11-07T05:31:56Z',
currencyCode: '<string>',
invoiceIds: ['<string>'],
comment: '<string>',
earliestDeliveryDate: '2023-12-25',
latestDeliveryDate: '2023-12-25',
transportInsuranceAmount: 1,
cashOnDeliveryAmount: 123,
cashOnDeliveryCurrency: '<string>',
shippingMethodIdentifier: '<string>',
shippingMethodName: '<string>',
tags: ['<string>'],
trackingEnabled: true,
allowPartial: true,
orderPriority: 2,
orderReference2: '<string>',
customerPurchaseOrderNumber: '<string>',
customerPurchaseOrderNumber2: '<string>',
ssccLabel: true,
channelId: '<string>',
channelName: '<string>',
channelTypeCode: '<string>',
attachments: [
{copyCount: 2, filename: '<string>', fileKey: '<string>', mimeType: '<string>'}
],
customAttributes: '{"attr1":"val1"}'
})
};
fetch('https://api.quivo.co/v2/orders', 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.quivo.co/v2/orders",
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([
'sellerId' => 123,
'orderIdentifier' => '<string>',
'orderReference' => '<string>',
'deliveryAddress' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'addressIdentifier' => '<string>',
'additionalIdentifiers' => [
[
'identifier' => '<string>',
'type' => '<string>'
]
],
'latitude' => 123,
'longitude' => 123
],
'positions' => [
[
'sku' => '<string>',
'name' => '<string>',
'quantity' => 123,
'price' => 123,
'lot' => '<string>',
'expirationDate' => '2023-12-25',
'location' => '<string>',
'positionIdentifier' => '<string>',
'productIdentifier' => '<string>',
'customAttributes' => '{"attr1":"val1"}'
]
],
'warehouseId' => 123,
'hasInvoiceAddress' => true,
'hasInvoiceData' => true,
'invoiceAddress' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>'
],
'orderDate' => '2023-11-07T05:31:56Z',
'currencyCode' => '<string>',
'invoiceIds' => [
'<string>'
],
'comment' => '<string>',
'earliestDeliveryDate' => '2023-12-25',
'latestDeliveryDate' => '2023-12-25',
'transportInsuranceAmount' => 1,
'cashOnDeliveryAmount' => 123,
'cashOnDeliveryCurrency' => '<string>',
'shippingMethodIdentifier' => '<string>',
'shippingMethodName' => '<string>',
'tags' => [
'<string>'
],
'trackingEnabled' => true,
'allowPartial' => true,
'orderPriority' => 2,
'orderReference2' => '<string>',
'customerPurchaseOrderNumber' => '<string>',
'customerPurchaseOrderNumber2' => '<string>',
'ssccLabel' => true,
'channelId' => '<string>',
'channelName' => '<string>',
'channelTypeCode' => '<string>',
'attachments' => [
[
'copyCount' => 2,
'filename' => '<string>',
'fileKey' => '<string>',
'mimeType' => '<string>'
]
],
'customAttributes' => '{"attr1":"val1"}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.quivo.co/v2/orders"
payload := strings.NewReader("{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.quivo.co/v2/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sellerId\": 123,\n \"orderIdentifier\": \"<string>\",\n \"orderReference\": \"<string>\",\n \"deliveryAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"addressIdentifier\": \"<string>\",\n \"additionalIdentifiers\": [\n {\n \"identifier\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"positions\": [\n {\n \"sku\": \"<string>\",\n \"name\": \"<string>\",\n \"quantity\": 123,\n \"price\": 123,\n \"lot\": \"<string>\",\n \"expirationDate\": \"2023-12-25\",\n \"location\": \"<string>\",\n \"positionIdentifier\": \"<string>\",\n \"productIdentifier\": \"<string>\",\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n }\n ],\n \"warehouseId\": 123,\n \"hasInvoiceAddress\": true,\n \"hasInvoiceData\": true,\n \"invoiceAddress\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\"\n },\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\",\n \"invoiceIds\": [\n \"<string>\"\n ],\n \"comment\": \"<string>\",\n \"earliestDeliveryDate\": \"2023-12-25\",\n \"latestDeliveryDate\": \"2023-12-25\",\n \"transportInsuranceAmount\": 1,\n \"cashOnDeliveryAmount\": 123,\n \"cashOnDeliveryCurrency\": \"<string>\",\n \"shippingMethodIdentifier\": \"<string>\",\n \"shippingMethodName\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"orderPriority\": 2,\n \"orderReference2\": \"<string>\",\n \"customerPurchaseOrderNumber\": \"<string>\",\n \"customerPurchaseOrderNumber2\": \"<string>\",\n \"ssccLabel\": true,\n \"channelId\": \"<string>\",\n \"channelName\": \"<string>\",\n \"channelTypeCode\": \"<string>\",\n \"attachments\": [\n {\n \"copyCount\": 2,\n \"filename\": \"<string>\",\n \"fileKey\": \"<string>\",\n \"mimeType\": \"<string>\"\n }\n ],\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"field": "<string>",
"message": "<string>",
"orderId": 123
}Authorizations
Access token from POST /v2/oauth2/token, requested with an API credential. See https://api-docs.quivo.co/api-reference/authentication.
Body
Request body data for Submit request
Request payload for creating a new order. Contains essential order details including delivery address, order identifier, item positions, shipping preferences, and optional customer information.
Response
Returns the result of the order creation attempt, including the newly assigned 'orderId' if successful, or status and error details if validation fails.
Represents the outcome of an order creation request, indicating whether the operation was successful (status) and, if successful, providing the new orderId. It includes fields for error messages if the operation failed.