Standard Elements
Shared types used across the public API. Descriptions and examples come from the OpenAPI schemas; field lists are on each schema in the API Reference.
References
External or alternate identifiers for a resource, in addition to id (always a UUID).
Values may or may not be unique, depending on tenant and customer configuration. Tenants can define additional reference types beyond the common keys below.
ReferencesCode
Customer
Identifies a customer. When more than one identifying property is supplied, they are
checked in this order: id, references.code, then name.
CustomerReferenceCode
Warehouse
Identifies a warehouse. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
WarehouseReferenceCode
Address
Postal address. companyName or contactName is required. address1, city, and
country are required for a complete address.
Address_CoreCode
State
State, region, or prefecture. When both code and name are supplied, code is used first.
Validation is country-dependent. CartonCloud maintains a per-country list of valid zones
(address_zones).
When the resolved country has no configured zones (for example New Zealand), any state
value in the request is ignored and the address is not rejected for an unknown state code
(draft is not set for state alone).
When zones exist (for example Australia, United States), state.code or state.name must
match a configured zone or the request returns 422
(Invalid reference value at /state/code or /state/name).
StateCode
Country
Identifies a country by iso2Code, iso3Code, or name
(ISO 3166).
If multiple properties are provided, they are checked in that order. Lookup succeeds only if the first provided property is a valid country. Remaining properties are not used as a fallback.
CountryCode
Delivery method
How items are transferred to a customer.
SHIPPING— delivery using a shipping carrier (default)PICKUP— the customer collects from a warehouse or other location
requestedService is the requested carrier service (for example Standard, Express, Overnight).
TransportMethodCode
Product
Identifies a product. When more than one identifying property is supplied, they are
checked in this order: id, references.code, references.barcode, then name.
ProductCode
Unit of measure
Product unit of measure. type is the unit-of-measure code used to identify the UOM.
UnitOfMeasureCode
Money
Represents a monetary value with amount and currency.
For most API fields, currency is the tenant organisation default currency (defaultCurrency on the tenant), unless the value is tied to a warehouse that has its own currency override configured. In that case, currency reflects the effective currency for that warehouse (warehouse override, otherwise organisation default).
Some fields (for example outbound order invoiceValue) may accept or return an explicit currency code supplied by the client and are not limited to the organisation default alone.
MoneyCode
Delivery run
Identifies a delivery run by id and optional name. May include the associated warehouse.
DeliveryRunReferenceCode
Run sheet
Identifies a run sheet by id, optional name, and optional date.
RunsheetReferenceCode
Manifest
Identifies a manifest by id.
ManifestReferenceCode
User
Identifies a user by id and display name.
UserReferenceCode
Timestamp
A timestamp. time is an ISO 8601 date-time.
TimestampObjectCode
Error reference
Item-level error on an outbound order (for example a product that could not be allocated).
OutboundErrorCode
Custom fields
Custom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
PropertiesCode
Search (text)
Text field comparison. method is one of EQUAL_TO, NOT_EQUAL_TO, CONTAINS,
DOES_NOT_CONTAIN, STARTS_WITH. Prefer JsonField for field over deprecated ValueField.
TextComparisonConditionCode
Search (boolean)
Boolean field comparison. Prefer JsonField for field over deprecated ValueField.
BooleanComparisonConditionCode
Search (numeric)
Numeric field comparison. operator is one of EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL,
GREATER_THAN, GREATER_THAN_OR_EQUAL. Prefer JsonField for field over deprecated ValueField.
NumericComparisonConditionCode
Search (date)
Date field comparison. operator is one of EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL,
LESS_THAN, LESS_THAN_OR_EQUAL. Prefer JsonField for field over deprecated ValueField.
DateComparisonConditionCode
Search (date-time)
Date-time field comparison. operator is one of EQUAL, GREATER_THAN,
GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL. Prefer JsonField for field
over deprecated ValueField.
DateTimeComparisonConditionCode
Search field
Recommended field selector. pointer is a JSON Pointer path (for example /group/id).
Search field (deprecated)
Deprecated field selector (type: ValueField). Prefer JsonField with a JSON Pointer
when both options are available.