Skip to content
Docs
Get started

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. param names 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. Send Authorization: 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"
      }
    ]
  }'
Response · 200
{
  "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. Send Authorization: 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"
Response · 200
{
  "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"
}