/api/p/v{version}/invoices/customer-payments

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
LoadNumberstringLoad number the payment was applied to
StatusstringCurrent load status after applying the payment
CustomerPaymentsarrayList of customer payments recorded for the load

CustomerPayments Object

FieldTypeDescription
IdstringUnique identifier of the customer payment
AmountobjectPayment amount object
Amount.AmountnumberPayment amount value
Amount.CurrencyintegerCurrency identifier
CheckNumberstringCheck number if applicable
InvoiceNumberstringInvoice number associated with the payment
PaymentDatestring (date-time)Date when the payment was recorded
PaymentMethodstringPayment method used
ReferenceNumberstringExternal reference number for the payment

Related Load Fields Updated After Successful Payment

Successful requests also update payment fields on the related load response:

FieldTypeDescription
paidAtdatetime (nullable)Timestamp when a customer payment was recorded
totalPaidMoney (nullable)Total amount paid by the customer to date
paymentsPayment[] (nullable)Array of individual customer payment records

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.

  • Successful payment requests also populate paidAt, totalPaid, and payments[] on the related load.

  • 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
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
Allowed:
string
enum
Defaults to application/json-patch+json
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