Skip to main content
POST
Create stop reference
Adds a custom reference to a stop on an existing trip. Creating a reference does not take a client If-Match header. The write persists only the target trip (not the load or sibling trips) and returns that trip’s refreshed ETag. Requires stop:update. See Updating records safely.

Path parameters

Request body

Example

Status codes

Free-form creates are not idempotent. Prefer Update stop reference with the returned instance id when overwriting.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

tripId
string
required
stopId
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Name
string
required

Reference name. Must be 50 characters or fewer. For catalog-backed writes, must match the configured definition name.

Maximum string length: 50
Value
string
required

Reference value. Must be 40 characters or fewer — enough for a 36-character CFDI folio UUID. OrderNumber and PONumber stay at the X12 30-character bound and are unchanged by this field.

Maximum string length: 40
ReferenceId
string | null

Optional tenant catalog definition id from List custom reference definitions. When set, the value is validated against that definition.

Response

Created

Name
string
required
Value
string
required
Id
string | null
ReferenceId
string | null
Type
string | null
Access
string | null
Origin
string | null