Skip to main content
PUT
Update stop reference
Overwrites an existing custom reference on a stop. If-Match is required with the trip ETag — not a per-stop token. Read that value from Get trip, List trip stops, or Get trip stop; those GETs return the trip ETag on the response. The write persists only the target trip and returns its refreshed ETag. Requires stop:update. See Updating records safely.

Path parameters

Headers

Request body

Example

Status codes

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>.

Headers

If-Match
string

Path Parameters

tripId
string
required
stopId
string
required
referenceId
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

OK

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