Skip to main content
POST
Record customer payment
This endpoint allows external systems to post customer payments into Alvys and apply them to the corresponding load.

Path Parameters

Request Body

Content-Type: application/json-patch+json

Example Request

Response Body

Notes

  • This endpoint records customer payments against loads.
  • The request body content type exposed by the API is application/json-patch+json.
  • ReferenceNumber is required and is used for idempotency. Repeating the same ReferenceNumber for the same load returns the original payment instead of creating a duplicate.
  • This endpoint accepts payments only when the load is in one of these statuses:
    • Invoiced
    • Completed
    • Financed
  • Loads in non-payable statuses such as Dispatched are rejected with:
  • If the LoadNumber does not exist, the endpoint returns:
  • If Amount.Amount is negative or zero, the endpoint returns:
  • If ReferenceNumber is empty or omitted, the endpoint returns:

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

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

Response

OK

Id
string
required
LoadNumber
string
required
Status
string
required
TotalPaid
object
required
TotalBillable
object
required