# Wire conventions, dates and ids

> JSON, ids, money, ISO 8601 dates, local stop times and problem details in the Techvia TMS public API.

Source: https://techvia.software/docs/tms/concepts/conventions/

JSON with camelCase property names; enum values are their names as strings (`"EnRoute"`, not a number); ids are
UUIDs; money is a decimal number in USD; dates are ISO 8601. Every error (every 4xx and 5xx) is an RFC 7807 problem
details body (`application/problem+json`) with `type`, `title`, `status`, `traceId`, and, for validation errors, an
`errors` object keyed by field. `instance` is the route template, for example `/api/public/v1/loads/{id:guid}`, and is
left out when no route matched. An error never repeats the value you sent (a duplicate's `candidates` show
your stored records). Quote the `traceId` when you contact
support. Two edges: if your `Accept` header excludes JSON, an error body may be plain text or empty; and a request
refused before it reaches the API (for example a NUL byte in the URL path, or anything a proxy rejects) gets that
server's own response, not problem details.

## Ids you send

Every id in a write (customer, dispatcher, facility, driver, truck, trailer, carrier, carrier driver or truck) must name
a record in your workspace, else `422` with `errors` under that field, for example
`"customerId": ["No customer with this id in your workspace."]`. Names are always taken from your records, never from
the request.
