Customer Payment
The customer payment resource.
/customerPaymentList customer payments
Retrieve a paginated list of customer payments. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/customerPayment?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"customerId": "xyz789",
"companyId": "xyz789",
"invoiceCustomerId": "xyz789",
"invoiceCustomerLocationId": "xyz789",
"invoiceCustomerContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}
]/customerPaymentRetrieve a customer payment
Fetch a single customer payment by filtering on `customerId`.
Query parameters
customerIdstringMatch on the customer payment's `customerId`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/customerPayment?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"customerId": "xyz789",
"companyId": "xyz789",
"invoiceCustomerId": "xyz789",
"invoiceCustomerLocationId": "xyz789",
"invoiceCustomerContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}/customerPaymentCreate a customer payment
Create a new customer payment.
Body parameters
invoiceCustomerIdstringReferences customer.id
invoiceCustomerLocationIdstringReferences customerLocation.id
invoiceCustomerContactIdstringReferences customerContact.id
paymentTermIdstringReferences paymentTerm.id
companyIdstringrequiredReferences company.id
curl --request POST \
--url https://rest.carbon.ms/customerPayment \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789"}'{
"customerId": "xyz789",
"companyId": "xyz789",
"invoiceCustomerId": "xyz789",
"invoiceCustomerLocationId": "xyz789",
"invoiceCustomerContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}/customerPaymentUpdate a customer payment
Update an existing customer payment, matched on `customerId`.
Body parameters
invoiceCustomerIdstringReferences customer.id
invoiceCustomerLocationIdstringReferences customerLocation.id
invoiceCustomerContactIdstringReferences customerContact.id
paymentTermIdstringReferences paymentTerm.id
companyIdstringrequiredReferences company.id
curl --request PATCH \
--url 'https://rest.carbon.ms/customerPayment?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"invoiceCustomerId":"xyz789"}'{
"customerId": "xyz789",
"companyId": "xyz789",
"invoiceCustomerId": "xyz789",
"invoiceCustomerLocationId": "xyz789",
"invoiceCustomerContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}/customerPaymentDelete a customer payment
Delete a customer payment, matched on `customerId`. Returns 204 No Content.
Query parameters
customerIdstringThe `customerId` of the customer payment to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/customerPayment?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'