Record customer payment

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

This endpoint allows external systems to post customer payments into Alvys and apply them to the corresponding load.

Path Parameters

ParameterTypeRequiredDescription
versionstringYesAPI version (e.g., 1.0)

Request Body

Content-Type: application/json-patch+json

FieldTypeRequiredDescription
LoadNumberstringYesLoad number the payment should be applied to
AmountobjectYesPayment amount object
Amount.AmountnumberYesPayment amount value
Amount.CurrencyintegerYesCurrency identifier
CheckNumberstringNoCheck number if the payment method uses a check
InvoiceNumberstringNoInvoice number associated with the payment
NotestringNoAdditional note related to the payment
PaymentDatestring (date-time)YesDate when the payment was made
PaymentMethodstringNoPayment method used (for example Check, ACH, Wire)
ReferenceNumberstringYesExternal reference number for idempotency and payment tracking

Example Request

{
  "LoadNumber": "string",
  "Amount": {
    "Amount": 0,
    "Currency": 0
  },
  "PaymentDate": "2026-03-16T13:57:56.427Z",
  "ReferenceNumber": "string",
  "InvoiceNumber": "string",
  "PaymentMethod": "string",
  "CheckNumber": "string",
  "Note": "string"
}

Response Body

FieldTypeDescription
IdstringUnique identifier of the recorded payment
LoadNumberstringLoad number the payment was applied to
StatusstringCurrent load status after applying the payment
TotalPaidobjectTotal amount paid by the customer to date
TotalPaid.AmountnumberMonetary amount
TotalPaid.CurrencyintegerCurrency identifier
TotalBillableobjectTotal billable amount for the load
TotalBillable.AmountnumberMonetary amount
TotalBillable.CurrencyintegerCurrency identifier

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:

400 Bad Request
Load must be in one of: Invoiced, Completed, Financed.
  • If the LoadNumber does not exist, the endpoint returns:
404 Not Found
  • If Amount.Amount is negative or zero, the endpoint returns:
400 Bad Request
Amount must be greater than zero.
  • If ReferenceNumber is empty or omitted, the endpoint returns:
400 Bad Request
The ReferenceNumber field is required.
Path Params
string
required
Defaults to 1.0

API version (e.g., 1.0)

Body Params
string
required
Amount
object
required
date-time
required
string
required
string | null
string | null
string | null
string | null
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json-patch+json

Generated from available request content types

Allowed:
Responses

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