Update load

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The Update Load endpoint applies a partial (PATCH) update to an existing load. Today the only writable field is the Order Number (the partner-facing "Shipment Id"); the payload shape allows future writable fields to be added without a breaking change. Fields that are omitted from the body are left unchanged.

Updates use optimistic concurrency: you must send the load's current ETag in an If-Match header. The current ETag is returned on the ETag response header of this endpoint and of the load read endpoints. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.


Request Parameters

The following parameters are available in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe version of the API.
loadNumberStringYesThe load number of the load to update.

The following header is required:

HeaderTypeRequiredDescription
If-MatchStringYesThe load's current ETag, for optimistic concurrency. If omitted, the request is rejected with 428.

Request Body

FieldTypeRequiredDescription
OrderNumberStringNoThe partner-facing Order Number ("Shipment Id"). Must be 30 characters or fewer. Omit to leave it unchanged; a blank value is rejected.

Example CURL Request

curl --location --request PATCH 'https://integrations.alvys.com/api/p/v1/loads/{loadNumber}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--header 'If-Match: "00000000-0000-0000-0000-000000000001"' \
--data-raw '{
  "OrderNumber": "SHIP-100245"
}'

Replace {loadNumber} with the actual load number, the If-Match value with the load's current ETag, and YOUR_ACCESS_TOKEN with your actual Bearer token.


Response

On success the endpoint returns the updated load (the same object shape as Get Loads), and the new optimistic-concurrency token on the ETag response header.


Status Codes

CodeDescription
200The load was updated; the response body contains the updated load.
400The request body failed validation (e.g., Order Number longer than 30 characters or blank).
401Authentication failed or the token is missing.
403The token is not authorized to update loads.
404No load was found for the given load number.
409The update conflicts with the current state of the load.
412The If-Match ETag did not match the load's current version (it changed since you read it).
428The If-Match header was not provided.
Path Params
string
required
string
required
Defaults to 2.0
Body Params
string | null
Headers
string
required
string
enum
Defaults to application/json
Allowed:
string
enum
Defaults to application/json
Allowed:
Responses

204

No Content

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json