Orders
Import an order
Import an order that already exists in an external system (for example Exigo) into Fluid. The order, its line items, embedded shipping/billing addresses, and tracking records are recorded in a single transaction, bypassing the cart, checkout, and payment flow. This is the EntitySync order-import endpoint the integrations layer posts to. Requires a company-admin bearer token holding the orders:update permission.
POST
/
api
/
v2025-06
/
orders
Import an order
curl --request POST \
--url https://api.fluid.app/api/v2025-06/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"external_id": "EXG-558120",
"order_number": "DM-EXG-558120",
"currency_code": "USD",
"email": "robert.california@sabre.com",
"first_name": "Robert",
"last_name": "California",
"phone": "+15705550199",
"sale_date": "2026-09-03T16:20:00Z",
"amount": 119.97,
"subtotal": 109.98,
"tax_amount": 7.42,
"shipping_amount": 2.57,
"discount": 0,
"amount_paid": 119.97,
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"source": "backoffice",
"cv": 100,
"qv": 100,
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"items": [
{
"sku": "DM-20LB-CASE",
"name": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"unit_price": 54.99,
"cv": 50,
"qv": 50,
"external_id": "EXG-558120-1"
}
],
"ship_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"bill_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"tracking_informations": [
{
"tracking_number": "1Z999AA10123456784",
"shipping_carrier": "UPS"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/orders"
payload = { "order": {
"external_id": "EXG-558120",
"order_number": "DM-EXG-558120",
"currency_code": "USD",
"email": "robert.california@sabre.com",
"first_name": "Robert",
"last_name": "California",
"phone": "+15705550199",
"sale_date": "2026-09-03T16:20:00Z",
"amount": 119.97,
"subtotal": 109.98,
"tax_amount": 7.42,
"shipping_amount": 2.57,
"discount": 0,
"amount_paid": 119.97,
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"source": "backoffice",
"cv": 100,
"qv": 100,
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"items": [
{
"sku": "DM-20LB-CASE",
"name": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"unit_price": 54.99,
"cv": 50,
"qv": 50,
"external_id": "EXG-558120-1"
}
],
"ship_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"bill_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"tracking_informations": [
{
"tracking_number": "1Z999AA10123456784",
"shipping_carrier": "UPS"
}
]
} }
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({
order: {
external_id: 'EXG-558120',
order_number: 'DM-EXG-558120',
currency_code: 'USD',
email: 'robert.california@sabre.com',
first_name: 'Robert',
last_name: 'California',
phone: '+15705550199',
sale_date: '2026-09-03T16:20:00Z',
amount: 119.97,
subtotal: 109.98,
tax_amount: 7.42,
shipping_amount: 2.57,
discount: 0,
amount_paid: 119.97,
order_status: 'completed',
fulfillment_status: 'fulfilled',
financial_status: 'paid',
source: 'backoffice',
cv: 100,
qv: 100,
metadata: {legacy_system: 'exigo', legacy_order_id: '558120'},
items: [
{
sku: 'DM-20LB-CASE',
name: 'Dunder Mifflin 20lb Copy Paper',
quantity: 2,
unit_price: 54.99,
cv: 50,
qv: 50,
external_id: 'EXG-558120-1'
}
],
ship_to: {
name: 'Robert California',
address1: '1725 Slough Avenue',
city: 'Scranton',
state: 'PA',
postal_code: '18505',
country_code: 'US'
},
bill_to: {
name: 'Robert California',
address1: '1725 Slough Avenue',
city: 'Scranton',
state: 'PA',
postal_code: '18505',
country_code: 'US'
},
tracking_informations: [{tracking_number: '1Z999AA10123456784', shipping_carrier: 'UPS'}]
}
})
};
fetch('https://api.fluid.app/api/v2025-06/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.fluid.app/api/v2025-06/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([
'order' => [
'external_id' => 'EXG-558120',
'order_number' => 'DM-EXG-558120',
'currency_code' => 'USD',
'email' => 'robert.california@sabre.com',
'first_name' => 'Robert',
'last_name' => 'California',
'phone' => '+15705550199',
'sale_date' => '2026-09-03T16:20:00Z',
'amount' => 119.97,
'subtotal' => 109.98,
'tax_amount' => 7.42,
'shipping_amount' => 2.57,
'discount' => 0,
'amount_paid' => 119.97,
'order_status' => 'completed',
'fulfillment_status' => 'fulfilled',
'financial_status' => 'paid',
'source' => 'backoffice',
'cv' => 100,
'qv' => 100,
'metadata' => [
'legacy_system' => 'exigo',
'legacy_order_id' => '558120'
],
'items' => [
[
'sku' => 'DM-20LB-CASE',
'name' => 'Dunder Mifflin 20lb Copy Paper',
'quantity' => 2,
'unit_price' => 54.99,
'cv' => 50,
'qv' => 50,
'external_id' => 'EXG-558120-1'
]
],
'ship_to' => [
'name' => 'Robert California',
'address1' => '1725 Slough Avenue',
'city' => 'Scranton',
'state' => 'PA',
'postal_code' => '18505',
'country_code' => 'US'
],
'bill_to' => [
'name' => 'Robert California',
'address1' => '1725 Slough Avenue',
'city' => 'Scranton',
'state' => 'PA',
'postal_code' => '18505',
'country_code' => 'US'
],
'tracking_informations' => [
[
'tracking_number' => '1Z999AA10123456784',
'shipping_carrier' => 'UPS'
]
]
]
]),
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.fluid.app/api/v2025-06/orders"
payload := strings.NewReader("{\n \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\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.fluid.app/api/v2025-06/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/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 \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"order": {
"id": 730301,
"first_name": "Robert",
"last_name": "California",
"email": "robert.california@sabre.com",
"phone": "+15705550199",
"order_number": "DM-EXG-558120",
"status": "awaiting_payment",
"order_type": "imported",
"source": "backoffice",
"amount": "119.97",
"amount_in_base": "119.97",
"base_to_currency_rate": "1.0",
"note": null,
"currency_code": "USD",
"created_at": "2026-09-15T14:32:07.861Z",
"updated_at": "2026-09-15T14:32:07.861Z",
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"token": "e1c6b9a4d27f4c08b3a5f9d6e2c7b184",
"refundable_amount": "119.97",
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"warehouse_id": null,
"points_applied": 0,
"points_applied_amount": 0,
"points_applied_amount_in_currency": "$0.00",
"order_total_after_points_redemption": 119.97,
"total_points_credited": 0,
"free_shipping": false,
"discount_codes": [],
"created_subscriptions": []
},
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-15T14:32:08Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The order to import.
Show child attributes
Show child attributes
⌘I
Import an order
curl --request POST \
--url https://api.fluid.app/api/v2025-06/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"external_id": "EXG-558120",
"order_number": "DM-EXG-558120",
"currency_code": "USD",
"email": "robert.california@sabre.com",
"first_name": "Robert",
"last_name": "California",
"phone": "+15705550199",
"sale_date": "2026-09-03T16:20:00Z",
"amount": 119.97,
"subtotal": 109.98,
"tax_amount": 7.42,
"shipping_amount": 2.57,
"discount": 0,
"amount_paid": 119.97,
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"source": "backoffice",
"cv": 100,
"qv": 100,
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"items": [
{
"sku": "DM-20LB-CASE",
"name": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"unit_price": 54.99,
"cv": 50,
"qv": 50,
"external_id": "EXG-558120-1"
}
],
"ship_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"bill_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"tracking_informations": [
{
"tracking_number": "1Z999AA10123456784",
"shipping_carrier": "UPS"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/orders"
payload = { "order": {
"external_id": "EXG-558120",
"order_number": "DM-EXG-558120",
"currency_code": "USD",
"email": "robert.california@sabre.com",
"first_name": "Robert",
"last_name": "California",
"phone": "+15705550199",
"sale_date": "2026-09-03T16:20:00Z",
"amount": 119.97,
"subtotal": 109.98,
"tax_amount": 7.42,
"shipping_amount": 2.57,
"discount": 0,
"amount_paid": 119.97,
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"source": "backoffice",
"cv": 100,
"qv": 100,
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"items": [
{
"sku": "DM-20LB-CASE",
"name": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"unit_price": 54.99,
"cv": 50,
"qv": 50,
"external_id": "EXG-558120-1"
}
],
"ship_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"bill_to": {
"name": "Robert California",
"address1": "1725 Slough Avenue",
"city": "Scranton",
"state": "PA",
"postal_code": "18505",
"country_code": "US"
},
"tracking_informations": [
{
"tracking_number": "1Z999AA10123456784",
"shipping_carrier": "UPS"
}
]
} }
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({
order: {
external_id: 'EXG-558120',
order_number: 'DM-EXG-558120',
currency_code: 'USD',
email: 'robert.california@sabre.com',
first_name: 'Robert',
last_name: 'California',
phone: '+15705550199',
sale_date: '2026-09-03T16:20:00Z',
amount: 119.97,
subtotal: 109.98,
tax_amount: 7.42,
shipping_amount: 2.57,
discount: 0,
amount_paid: 119.97,
order_status: 'completed',
fulfillment_status: 'fulfilled',
financial_status: 'paid',
source: 'backoffice',
cv: 100,
qv: 100,
metadata: {legacy_system: 'exigo', legacy_order_id: '558120'},
items: [
{
sku: 'DM-20LB-CASE',
name: 'Dunder Mifflin 20lb Copy Paper',
quantity: 2,
unit_price: 54.99,
cv: 50,
qv: 50,
external_id: 'EXG-558120-1'
}
],
ship_to: {
name: 'Robert California',
address1: '1725 Slough Avenue',
city: 'Scranton',
state: 'PA',
postal_code: '18505',
country_code: 'US'
},
bill_to: {
name: 'Robert California',
address1: '1725 Slough Avenue',
city: 'Scranton',
state: 'PA',
postal_code: '18505',
country_code: 'US'
},
tracking_informations: [{tracking_number: '1Z999AA10123456784', shipping_carrier: 'UPS'}]
}
})
};
fetch('https://api.fluid.app/api/v2025-06/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.fluid.app/api/v2025-06/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([
'order' => [
'external_id' => 'EXG-558120',
'order_number' => 'DM-EXG-558120',
'currency_code' => 'USD',
'email' => 'robert.california@sabre.com',
'first_name' => 'Robert',
'last_name' => 'California',
'phone' => '+15705550199',
'sale_date' => '2026-09-03T16:20:00Z',
'amount' => 119.97,
'subtotal' => 109.98,
'tax_amount' => 7.42,
'shipping_amount' => 2.57,
'discount' => 0,
'amount_paid' => 119.97,
'order_status' => 'completed',
'fulfillment_status' => 'fulfilled',
'financial_status' => 'paid',
'source' => 'backoffice',
'cv' => 100,
'qv' => 100,
'metadata' => [
'legacy_system' => 'exigo',
'legacy_order_id' => '558120'
],
'items' => [
[
'sku' => 'DM-20LB-CASE',
'name' => 'Dunder Mifflin 20lb Copy Paper',
'quantity' => 2,
'unit_price' => 54.99,
'cv' => 50,
'qv' => 50,
'external_id' => 'EXG-558120-1'
]
],
'ship_to' => [
'name' => 'Robert California',
'address1' => '1725 Slough Avenue',
'city' => 'Scranton',
'state' => 'PA',
'postal_code' => '18505',
'country_code' => 'US'
],
'bill_to' => [
'name' => 'Robert California',
'address1' => '1725 Slough Avenue',
'city' => 'Scranton',
'state' => 'PA',
'postal_code' => '18505',
'country_code' => 'US'
],
'tracking_informations' => [
[
'tracking_number' => '1Z999AA10123456784',
'shipping_carrier' => 'UPS'
]
]
]
]),
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.fluid.app/api/v2025-06/orders"
payload := strings.NewReader("{\n \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\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.fluid.app/api/v2025-06/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/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 \"order\": {\n \"external_id\": \"EXG-558120\",\n \"order_number\": \"DM-EXG-558120\",\n \"currency_code\": \"USD\",\n \"email\": \"robert.california@sabre.com\",\n \"first_name\": \"Robert\",\n \"last_name\": \"California\",\n \"phone\": \"+15705550199\",\n \"sale_date\": \"2026-09-03T16:20:00Z\",\n \"amount\": 119.97,\n \"subtotal\": 109.98,\n \"tax_amount\": 7.42,\n \"shipping_amount\": 2.57,\n \"discount\": 0,\n \"amount_paid\": 119.97,\n \"order_status\": \"completed\",\n \"fulfillment_status\": \"fulfilled\",\n \"financial_status\": \"paid\",\n \"source\": \"backoffice\",\n \"cv\": 100,\n \"qv\": 100,\n \"metadata\": {\n \"legacy_system\": \"exigo\",\n \"legacy_order_id\": \"558120\"\n },\n \"items\": [\n {\n \"sku\": \"DM-20LB-CASE\",\n \"name\": \"Dunder Mifflin 20lb Copy Paper\",\n \"quantity\": 2,\n \"unit_price\": 54.99,\n \"cv\": 50,\n \"qv\": 50,\n \"external_id\": \"EXG-558120-1\"\n }\n ],\n \"ship_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"bill_to\": {\n \"name\": \"Robert California\",\n \"address1\": \"1725 Slough Avenue\",\n \"city\": \"Scranton\",\n \"state\": \"PA\",\n \"postal_code\": \"18505\",\n \"country_code\": \"US\"\n },\n \"tracking_informations\": [\n {\n \"tracking_number\": \"1Z999AA10123456784\",\n \"shipping_carrier\": \"UPS\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"order": {
"id": 730301,
"first_name": "Robert",
"last_name": "California",
"email": "robert.california@sabre.com",
"phone": "+15705550199",
"order_number": "DM-EXG-558120",
"status": "awaiting_payment",
"order_type": "imported",
"source": "backoffice",
"amount": "119.97",
"amount_in_base": "119.97",
"base_to_currency_rate": "1.0",
"note": null,
"currency_code": "USD",
"created_at": "2026-09-15T14:32:07.861Z",
"updated_at": "2026-09-15T14:32:07.861Z",
"metadata": {
"legacy_system": "exigo",
"legacy_order_id": "558120"
},
"token": "e1c6b9a4d27f4c08b3a5f9d6e2c7b184",
"refundable_amount": "119.97",
"order_status": "completed",
"fulfillment_status": "fulfilled",
"financial_status": "paid",
"warehouse_id": null,
"points_applied": 0,
"points_applied_amount": 0,
"points_applied_amount_in_currency": "$0.00",
"order_total_after_points_redemption": 119.97,
"total_points_credited": 0,
"free_shipping": false,
"discount_codes": [],
"created_subscriptions": []
},
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-15T14:32:08Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}