POST https://api.legendonlineservices.co.uk/POS/BillingPayments

Records payments againt set of billing items

Request Parameters

From Body Type Description
ContactId Guid Contact who owns the Billing items
PaymentDate DateTime The date the payment was collected
TenderTypeId Int32 Check Legend support for the TenderTypeId
[BillingPaymentsRequestLineItem] List of billing items and payments. Make sure there is always one BillingId per request
Name Type Description
Amount Decimal Must be greater than zero and must not exceed the balance
AuthorizationCode String Max 100 characters
BillingId Int32 Legend BillingId
Notes String Optional. Any user friendly not to help during the reconcillation process
ThirdPartyReference String This will be used for reconcillation with external system




{
  "ContactId": "6ae26b8d-5064-492b-b727-fcd34e07710b",
  "PaymentDate": "2025-04-25T14:29:34.3402471+01:00",
  "BillingPayments": [
    {
      "BillingId": 1,
      "Amount": 2.0,
      "ThirdPartyReference": "sample string 3",
      "Notes": "sample string 4",
      "AuthorizationCode": "sample string 5"
    },
    {
      "BillingId": 1,
      "Amount": 2.0,
      "ThirdPartyReference": "sample string 3",
      "Notes": "sample string 4",
      "AuthorizationCode": "sample string 5"
    },
    {
      "BillingId": 1,
      "Amount": 2.0,
      "ThirdPartyReference": "sample string 3",
      "Notes": "sample string 4",
      "AuthorizationCode": "sample string 5"
    }
  ],
  "TenderTypeId": 2
}

Response - (Status 200 - OK)

BillingPaymentsResponse

Name Type Description
ContactId Guid Contact who the Billing items belongs to
ErrorMessage String Error message if there is a global failure
Success Boolean
[BillingPaymentsResponseLineItem] For each payment request, you will get one line item
Name Type Description
Balance Decimal Balance left on the billing item
BillingId Int32 Legend BillingId
ErrorMessage String For basic validation like not enough balance etc
PaymentDate DateTime
ProcessDate DateTime




{
  "ContactId": "beed7955-0e31-410d-b299-3b1b4c0a0b3d",
  "BillingPayments": [
    {
      "BillingId": 1,
      "Balance": 1.0,
      "ProcessDate": "2025-04-25T14:29:34.3402471+01:00",
      "PaymentDate": "2025-04-25T14:29:34.3402471+01:00",
      "ErrorMessage": "sample string 2"
    },
    {
      "BillingId": 1,
      "Balance": 1.0,
      "ProcessDate": "2025-04-25T14:29:34.3402471+01:00",
      "PaymentDate": "2025-04-25T14:29:34.3402471+01:00",
      "ErrorMessage": "sample string 2"
    },
    {
      "BillingId": 1,
      "Balance": 1.0,
      "ProcessDate": "2025-04-25T14:29:34.3402471+01:00",
      "PaymentDate": "2025-04-25T14:29:34.3402471+01:00",
      "ErrorMessage": "sample string 2"
    }
  ],
  "ErrorMessage": "sample string 2",
  "Success": false
}

Bundle(s)
BillingPayment