Skip to main content
POST
/
api
/
goods_outs
cURL
curl -X POST 'https://clarus-api.com/api/v1/goods_outs' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'X-Clarus-Subdomain: your-subdomain' \
  -d '{
    "data": {
      "type": "goods_outs",
      "attributes": {
        "goods_out_type": "sales_order",
        "account_id": 1,
        "reference": "SO-001",
        "expected_date_of_dispatch": "2024-01-20T10:00:00Z",
        "warehouse_id": 1,
        "priority": 1,
        "lines_changes": [
          {
            "type": "ADD",
            "attributes": {
              "product_id": 123,
              "order_quantity": 10
            }
          }
        ]
      },
      "relationships": {
        "address": {
          "data": {
            "type": "addresses",
            "attributes": {
              "name": "John Smith",
              "address_1": "123 Main Street",
              "postcode": "AB1 2CD",
              "country_code": "GB",
              "email_address": "[email protected]",
              "phone_number": "+44 20 7946 0958"
            }
          }
        }
      }
    }
  }'
{
  "data": {
    "id": 123,
    "type": "goods_outs",
    "attributes": {
      "account_id": 1,
      "expected_date_of_dispatch": "2024-01-20T10:00:00Z",
      "goods_out_type": "sales_order",
      "reference": "ORD-001",
      "actual_date_of_dispatch": "2024-01-20T14:30:00Z",
      "boolean1": true,
      "boolean2": true,
      "boolean3": true,
      "boolean4": true,
      "boolean5": true,
      "carrier_id": 5,
      "carrier_service_id": 12,
      "customer_id": 42,
      "datetime1": "2024-01-20T10:00:00Z",
      "datetime2": "2023-11-07T05:31:56Z",
      "datetime3": "2023-11-07T05:31:56Z",
      "datetime4": "2023-11-07T05:31:56Z",
      "datetime5": "2023-11-07T05:31:56Z",
      "delivery_notes": "Leave at reception if no answer",
      "dispatch_strategy": "auto",
      "drop_sequence": 3,
      "external_system_reference1": "EXT-001",
      "external_system_reference2": "<string>",
      "external_system_reference3": "<string>",
      "goods_out_status_id": 2,
      "integer1": 123,
      "integer2": 123,
      "integer3": 123,
      "integer4": 123,
      "integer5": 123,
      "integration_id": 7,
      "lines_changes": [
        {
          "attributes": {
            "alt_line_note": "<string>",
            "alt_line_number": "<string>",
            "alt_line_reference": "<string>",
            "alt_product_code": "<string>",
            "boolean1": true,
            "boolean2": true,
            "boolean3": true,
            "boolean4": true,
            "boolean5": true,
            "carrier_id": 5,
            "carrier_service_id": 12,
            "datetime1": "2023-11-07T05:31:56Z",
            "datetime1_from": "2023-11-07T05:31:56Z",
            "datetime1_to": "2023-11-07T05:31:56Z",
            "datetime2": "2023-11-07T05:31:56Z",
            "datetime2_from": "2023-11-07T05:31:56Z",
            "datetime2_to": "2023-11-07T05:31:56Z",
            "datetime3": "2023-11-07T05:31:56Z",
            "datetime3_from": "2023-11-07T05:31:56Z",
            "datetime3_to": "2023-11-07T05:31:56Z",
            "datetime4": "2023-11-07T05:31:56Z",
            "datetime4_from": "2023-11-07T05:31:56Z",
            "datetime4_to": "2023-11-07T05:31:56Z",
            "datetime5": "2023-11-07T05:31:56Z",
            "datetime5_from": "2023-11-07T05:31:56Z",
            "datetime5_to": "2023-11-07T05:31:56Z",
            "external_system_reference1": "<string>",
            "external_system_reference2": "<string>",
            "external_system_reference3": "<string>",
            "goods_in_receipt_line_id": 123,
            "integer1": 123,
            "integer2": 123,
            "integer3": 123,
            "integer4": 123,
            "integer5": 123,
            "order_quantity": 1,
            "ordered_configurations_quantity": 1,
            "product_id": 123,
            "stock_description": "<string>",
            "stock_to_pick_id": 123,
            "storage_unit_reference": "<string>",
            "string1": "<string>",
            "string2": "<string>",
            "string3": "<string>",
            "string4": "<string>",
            "string5": "<string>"
          },
          "id": 123
        }
      ],
      "load_reference": "LOAD-2024-001",
      "location_id": 100,
      "order_notes": "Priority customer - handle with care",
      "order_type_id": 1,
      "original_delivery_address_id": 123,
      "pack_strategy": "pack_by_line",
      "packing_notes": "Use fragile stickers",
      "pick_notes": "Check expiry dates",
      "pick_reference": "PICK-BATCH-001",
      "pick_type": "standard",
      "priority": 1,
      "short_order_lines_description": "<string>",
      "short_order_lines_reason_code_id": 123,
      "string1": "<string>",
      "string2": "<string>",
      "string3": "<string>",
      "string4": "<string>",
      "string5": "<string>",
      "warehouse_id": 1
    }
  }
}

Request Structure

{
  "data": {
    "type": "goods_outs",
    "attributes": {
      "goods_out_type": "sales_order",
      "account_id": 1,
      "reference": "SO-001",
      "expected_date_of_dispatch": "2024-01-20T10:00:00Z",
      "warehouse_id": 1,
      "priority": 1,
      "lines_changes": [
        {
          "type": "ADD",
          "attributes": {
            "product_id": 123,
            "order_quantity": 10
          }
        }
      ]
    },
    "relationships": {
      "address": {
        "data": {
          "type": "addresses",
          "attributes": {
            "name": "John Smith",
            "address_1": "123 Main Street",
            "postcode": "AB1 2CD",
            "country_code": "GB",
            "email_address": "[email protected]",
            "phone_number": "+44 20 7946 0958"
          }
        }
      }
    }
  }
}

Key Fields

FieldRequiredDescription
goods_out_typeYesType of order: sales_order, work_order, or crossdock
account_idYesStock account ID - owner of the stock
referenceYesYour order reference number
expected_date_of_dispatchYesTarget dispatch date
warehouse_idNoWarehouse to dispatch from
lines_changesNoArray of line items to add

Address

The delivery address must be provided in data.relationships.address, not in data.attributes. See the example above for the correct JSON:API relationships structure.

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Body

application/json
data
object
required

Response

Goods out created successfully

data
object