API reference
Orders
The order context a Claim is checked against: lines, product images, tracking numbers and the customer.
Send an order
POST/orders
Stores an order, or updates it when its id was sent before. Optional: you can send the order inline when you create a Claim. Sending orders at fulfilment lets you create Claims later with only orderId.
Body parameters
- idstringrequired
Your id for the order, unique in your account. Used to find it again.
- namestring
The order's name as the customer knows it. Defaults to
id. - placedAtstring (date-time)required
When the order was placed (ISO 8601).
- completedAtstring | null (date-time)
When the order was completed, if your system records it.
- totalstringrequired
The order total in its currency, as a decimal string or number.
- currencystringrequired
Three-letter currency code.
- deliveryStatusstring | null
Your delivery status wording, shown as is.
- customerobject | null
The customer. Their email lets Verilo send the Verification Link for you (
sendEmail).Child attributes
- idstringrequired
Your id for the customer.
- emailstring | null
The customer's email address.
- namestring | null
The customer's name.
- linesarray of objectrequired
The order's lines. A Claim names one of them.
Child attributes
- idstringrequired
Your id for the line, unique within the order.
- titlestringrequired
The product title.
- variantstring | null
The variant.
- skustring | null
The SKU.
- quantityintegerrequired
Units ordered.
- totalstring | null
The line total.
- imageUrlstring | null
An https address of the product's image. The item filmed is compared with it; without it the item is only checked for being whole and in view.
- productobject | null
Child attributes
- idstringrequired
Your product id.
- titlestringrequired
The product title.
- shipmentsarray of object
Every shipment of the order. The label's barcode is matched against
trackingNumber. Leave the field out to keep the shipments Verilo holds; send[]to remove them.Child attributes
- idstring | null
Your id for the shipment or label.
- carrierstring | null
The carrier, as you name it.
- trackingNumberstring | null
The tracking number printed on the label.
- trackingUrlstring | null
An https tracking page.
- shippedAtstring | null (date-time)
When it shipped.
- deliveredAtstring | null (date-time)
When it was delivered.
Responses
- 200
The order as stored.
- 400
parameter_invalid: A parameter has the wrong type or an invalid value.paramnames it.parameter_missing: A required parameter is missing.body_invalid: The request body is not a JSON object. - 401
api_key_missing: No API key was sent. SendAuthorization: Bearer <key>.api_key_invalid: The API key is not recognised, or it was revoked. - 429
rate_limited: Too many requests. Wait for the number of seconds in Retry-After.
curl -X POST https://api.verilo.app/v1/orders \
-H "Authorization: Bearer $VERILO_API_KEY" \
-H "Idempotency-Key: rma-1042-create" \
-H "Content-Type: application/json" \
-d '{
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
]
}'const response = await fetch('https://api.verilo.app/v1/orders', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.VERILO_API_KEY}`,
'Idempotency-Key': 'rma-1042-create',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
]
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://api.verilo.app/v1/orders",
headers={"Authorization": f"Bearer {os.environ['VERILO_API_KEY']}", "Idempotency-Key": "rma-1042-create"},
json={
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes",
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp",
},
},
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z",
},
],
},
)
print(response.json())require "json"
require "net/http"
uri = URI("https://api.verilo.app/v1/orders")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer #{ENV.fetch("VERILO_API_KEY")}"
request["Idempotency-Key"] = "rma-1042-create"
request["Content-Type"] = "application/json"
request.body = <<~JSON
{
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
]
}
JSON
response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(request) }
puts JSON.parse(response.body)<?php
$ch = curl_init('https://api.verilo.app/v1/orders');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('VERILO_API_KEY'),
'Idempotency-Key: rma-1042-create',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => <<<JSON
{
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
]
}
JSON,
]);
echo curl_exec($ch);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"id": "1042",
"name": "#1042",
"placedAt": "2026-11-02T10:14:00Z",
"total": "189.00",
"currency": "USD",
"customer": {
"id": "cus_8812",
"email": "dana@example.com",
"name": "Dana Reyes"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.verilo.app/v1/orders", body)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERILO_API_KEY"))
req.Header.Set("Idempotency-Key", "rma-1042-create")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}{
"id": "1042",
"object": "order",
"livemode": true,
"name": "#1042",
"placedAt": "2026-11-14T09:30:00Z",
"completedAt": "2026-11-14T09:30:00Z",
"total": "189.00",
"currency": "USD",
"deliveryStatus": "string",
"customer": {
"id": "string",
"email": "string",
"name": "string"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"trackingUrl": null,
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
],
"updatedAt": "2026-11-14T09:30:00Z"
}Retrieve an order
GET/orders/{id}
The order as Verilo holds it, with its lines and shipments.
Path parameters
- idstringrequired
Your id for the order, as you sent it.
Responses
- 200
The order.
- 401
api_key_missing: No API key was sent. SendAuthorization: Bearer <key>.api_key_invalid: The API key is not recognised, or it was revoked. - 404
resource_missing: No object with that id exists for this key's account and mode. - 429
rate_limited: Too many requests. Wait for the number of seconds in Retry-After.
curl https://api.verilo.app/v1/orders/1042 \
-H "Authorization: Bearer $VERILO_API_KEY"const response = await fetch('https://api.verilo.app/v1/orders/1042', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.VERILO_API_KEY}`,
},
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://api.verilo.app/v1/orders/1042",
headers={"Authorization": f"Bearer {os.environ['VERILO_API_KEY']}"},
)
print(response.json())require "json"
require "net/http"
uri = URI("https://api.verilo.app/v1/orders/1042")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer #{ENV.fetch("VERILO_API_KEY")}"
response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(request) }
puts JSON.parse(response.body)<?php
$ch = curl_init('https://api.verilo.app/v1/orders/1042');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('VERILO_API_KEY'),
],
]);
echo curl_exec($ch);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.verilo.app/v1/orders/1042", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERILO_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}{
"id": "1042",
"object": "order",
"livemode": true,
"name": "#1042",
"placedAt": "2026-11-14T09:30:00Z",
"completedAt": "2026-11-14T09:30:00Z",
"total": "189.00",
"currency": "USD",
"deliveryStatus": "string",
"customer": {
"id": "string",
"email": "string",
"name": "string"
},
"lines": [
{
"id": "li_1",
"title": "Ceramic Table Lamp",
"variant": "Oat",
"sku": "LAMP-OAT",
"quantity": 1,
"total": "189.00",
"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg",
"product": {
"id": "prod_30",
"title": "Ceramic Table Lamp"
}
}
],
"shipments": [
{
"id": "ful_501",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"trackingUrl": null,
"shippedAt": "2026-11-03T16:00:00Z",
"deliveredAt": "2026-11-06T13:20:00Z"
}
],
"updatedAt": "2026-11-14T09:30:00Z"
}