Skip to main content
PATCH
Update load
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: The following header is required:

Request Body


Example CURL Request

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

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
required

The load's current ETag (from a prior GET/response), for optimistic concurrency. Required; if omitted the request is rejected with 428.

Path Parameters

loadNumber
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

OrderNumber
string | null

The partner-facing Order Number ("Shipment Id"). Maximum 30 characters. Omit the field to leave it unchanged; a present but blank/whitespace value is rejected.

Maximum string length: 30

Response

OK

Id
string
required
LoadNumber
string
required
OrderNumber
string
required
CustomerId
string
required
Status
string
required
LoadType
string
required
deprecated
CustomerType
string[]
required
Stops
object[]
required
InvoiceAs
string
required
Notes
object[]
required
CreatedAt
string<date-time>
required
CreatedBy
string
required
References
object[]
required
PONumber
string | null
CustomerName
string | null
CustomerNumber
string | null
ContractId
string | null
Fleet
object | null
OfficeId
string | null
Linehaul
object | null
FuelSurcharge
object | null
CustomerAccessorials
object | null
CustomerAccessorialsDetails
object[] | null
CustomerRate
object | null
CustomerMileage
object | null
InvoicedAmount
object | null
Weight
object | null
Volume
object | null
ScheduledPickupAt
string<date-time> | null
ScheduledDeliveryAt
string<date-time> | null
PickedUpAt
string<date-time> | null
DeliveredAt
string<date-time> | null
InvoicedAt
string<date-time> | null
LastInvoiceSentAt
string<date-time> | null
CancelledAt
string<date-time> | null
CancelledBy
string | null
CustomerServiceRepId
string | null
CustomerSalesAgentId
string | null
CustomerSalesManagerId
string | null
CustomerLoadPlannerId
string | null
UpdatedAt
string<date-time> | null
UpdatedBy
string | null
CustomerAccountManagerId
string | null
PaidAt
string<date-time> | null
TotalPaid
object | null
Payments
object[] | null
TenderId
string | null
IsDeleted
boolean | null
RequiredEquipment
string[] | null