Create Order From Ai
curl --request POST \
--url https://api.example.com/api/sync/v1/orders \
--header 'Content-Type: application/json' \
--data '
{
"line_items": [
{
"quantity": 123,
"variant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": "<string>",
"color": "<string>",
"name": "<string>",
"price": 123,
"image_url": "<string>"
}
],
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_method": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_intent_id": "<string>",
"note": "<string>",
"subtotal": 123,
"total": 123,
"currency": "<string>",
"source": "web",
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"ig_username": "<string>"
}
'import requests
url = "https://api.example.com/api/sync/v1/orders"
payload = {
"line_items": [
{
"quantity": 123,
"variant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": "<string>",
"color": "<string>",
"name": "<string>",
"price": 123,
"image_url": "<string>"
}
],
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_method": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_intent_id": "<string>",
"note": "<string>",
"subtotal": 123,
"total": 123,
"currency": "<string>",
"source": "web",
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"ig_username": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
line_items: [
{
quantity: 123,
variant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
size: '<string>',
color: '<string>',
name: '<string>',
price: 123,
image_url: '<string>'
}
],
shipping_address: {
first_name: '<string>',
last_name: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>'
},
payment_method: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
billing_address: {
first_name: '<string>',
last_name: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>'
},
payment_intent_id: '<string>',
note: '<string>',
subtotal: 123,
total: 123,
currency: '<string>',
source: 'web',
external_id: '<string>',
first_name: '<string>',
last_name: '<string>',
ig_username: '<string>'
})
};
fetch('https://api.example.com/api/sync/v1/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.example.com/api/sync/v1/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([
'line_items' => [
[
'quantity' => 123,
'variant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'size' => '<string>',
'color' => '<string>',
'name' => '<string>',
'price' => 123,
'image_url' => '<string>'
]
],
'shipping_address' => [
'first_name' => '<string>',
'last_name' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>'
],
'payment_method' => '<string>',
'email' => 'jsmith@example.com',
'phone' => '<string>',
'billing_address' => [
'first_name' => '<string>',
'last_name' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>'
],
'payment_intent_id' => '<string>',
'note' => '<string>',
'subtotal' => 123,
'total' => 123,
'currency' => '<string>',
'source' => 'web',
'external_id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'ig_username' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/sync/v1/orders"
payload := strings.NewReader("{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/sync/v1/orders")
.header("Content-Type", "application/json")
.body("{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/sync/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": "<string>",
"total": "<string>",
"currency": "<string>",
"status": "<string>",
"payment_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Sync v1
Create Order From Ai
POST
/
api
/
sync
/
v1
/
orders
Create Order From Ai
curl --request POST \
--url https://api.example.com/api/sync/v1/orders \
--header 'Content-Type: application/json' \
--data '
{
"line_items": [
{
"quantity": 123,
"variant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": "<string>",
"color": "<string>",
"name": "<string>",
"price": 123,
"image_url": "<string>"
}
],
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_method": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_intent_id": "<string>",
"note": "<string>",
"subtotal": 123,
"total": 123,
"currency": "<string>",
"source": "web",
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"ig_username": "<string>"
}
'import requests
url = "https://api.example.com/api/sync/v1/orders"
payload = {
"line_items": [
{
"quantity": 123,
"variant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"size": "<string>",
"color": "<string>",
"name": "<string>",
"price": 123,
"image_url": "<string>"
}
],
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_method": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>"
},
"payment_intent_id": "<string>",
"note": "<string>",
"subtotal": 123,
"total": 123,
"currency": "<string>",
"source": "web",
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"ig_username": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
line_items: [
{
quantity: 123,
variant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
size: '<string>',
color: '<string>',
name: '<string>',
price: 123,
image_url: '<string>'
}
],
shipping_address: {
first_name: '<string>',
last_name: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>'
},
payment_method: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
billing_address: {
first_name: '<string>',
last_name: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>'
},
payment_intent_id: '<string>',
note: '<string>',
subtotal: 123,
total: 123,
currency: '<string>',
source: 'web',
external_id: '<string>',
first_name: '<string>',
last_name: '<string>',
ig_username: '<string>'
})
};
fetch('https://api.example.com/api/sync/v1/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.example.com/api/sync/v1/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([
'line_items' => [
[
'quantity' => 123,
'variant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'size' => '<string>',
'color' => '<string>',
'name' => '<string>',
'price' => 123,
'image_url' => '<string>'
]
],
'shipping_address' => [
'first_name' => '<string>',
'last_name' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>'
],
'payment_method' => '<string>',
'email' => 'jsmith@example.com',
'phone' => '<string>',
'billing_address' => [
'first_name' => '<string>',
'last_name' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>'
],
'payment_intent_id' => '<string>',
'note' => '<string>',
'subtotal' => 123,
'total' => 123,
'currency' => '<string>',
'source' => 'web',
'external_id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'ig_username' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/sync/v1/orders"
payload := strings.NewReader("{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/api/sync/v1/orders")
.header("Content-Type", "application/json")
.body("{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/sync/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"line_items\": [\n {\n \"quantity\": 123,\n \"variant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"size\": \"<string>\",\n \"color\": \"<string>\",\n \"name\": \"<string>\",\n \"price\": 123,\n \"image_url\": \"<string>\"\n }\n ],\n \"shipping_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"billing_address\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"payment_intent_id\": \"<string>\",\n \"note\": \"<string>\",\n \"subtotal\": 123,\n \"total\": 123,\n \"currency\": \"<string>\",\n \"source\": \"web\",\n \"external_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"ig_username\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": "<string>",
"total": "<string>",
"currency": "<string>",
"status": "<string>",
"payment_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json
Schema for creating order from AI widget.
Show child attributes
Show child attributes
Schema for address. Fields are optional to support simpler address formats from AI widget.
Show child attributes
Show child attributes
Schema for address. Fields are optional to support simpler address formats from AI widget.
Show child attributes
Show child attributes