Skip to main content
POST
Record carrier payment
This endpoint allows external systems (for example factoring or payment platforms) to record a carrier payment against a trip in Alvys.

Path Parameters

Request Body

Content-Type: application/json-patch+json

Example Request

Response Body

CarrierPayments Object

Example Response

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

version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

TripId
string
required

Identifier of the trip for which the carrier payment is being recorded.

Amount
object
required
PaymentDate
string<date-time>
required
ReferenceNumber
string
required
PaymentMethod
string | null
CheckNumber
string | null
Note
string | null

Response

OK

TripId
string
required
TripNumber
string
required
Status
string
required

Current trip status after the payment is applied. When payments fully cover the carrier payable, this is Completed.

CarrierPayments
object[]
required