Purchase Order Payment
The purchase order payment resource.
/purchaseOrderPaymentList purchase order payments
Retrieve a paginated list of purchase order 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/purchaseOrderPayment?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"paymentComplete": true,
"companyId": "xyz789",
"invoiceSupplierId": "xyz789",
"invoiceSupplierLocationId": "xyz789",
"invoiceSupplierContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}
]/purchaseOrderPaymentRetrieve a purchase order payment
Fetch a single purchase order payment by filtering on `id`.
Query parameters
idstringMatch on the purchase order payment's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/purchaseOrderPayment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"paymentComplete": true,
"companyId": "xyz789",
"invoiceSupplierId": "xyz789",
"invoiceSupplierLocationId": "xyz789",
"invoiceSupplierContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/purchaseOrderPaymentCreate a purchase order payment
Create a new purchase order payment.
Body parameters
invoiceSupplierIdstringReferences supplier.id
invoiceSupplierLocationIdstringReferences supplierLocation.id
invoiceSupplierContactIdstringReferences supplierContact.id
paymentTermIdstringReferences paymentTerm.id
paymentCompletebooleanrequiredcompanyIdstringrequiredcustomFieldsobjecttagsarraycurl --request POST \
--url https://rest.carbon.ms/purchaseOrderPayment \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"paymentComplete":true,"companyId":"xyz789"}'{
"id": "abc123def456",
"paymentComplete": true,
"companyId": "xyz789",
"invoiceSupplierId": "xyz789",
"invoiceSupplierLocationId": "xyz789",
"invoiceSupplierContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/purchaseOrderPaymentUpdate a purchase order payment
Update an existing purchase order payment, matched on `id`.
Body parameters
invoiceSupplierIdstringReferences supplier.id
invoiceSupplierLocationIdstringReferences supplierLocation.id
invoiceSupplierContactIdstringReferences supplierContact.id
paymentTermIdstringReferences paymentTerm.id
paymentCompletebooleanrequiredcompanyIdstringrequiredcustomFieldsobjecttagsarraycurl --request PATCH \
--url 'https://rest.carbon.ms/purchaseOrderPayment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"invoiceSupplierId":"xyz789"}'{
"id": "abc123def456",
"paymentComplete": true,
"companyId": "xyz789",
"invoiceSupplierId": "xyz789",
"invoiceSupplierLocationId": "xyz789",
"invoiceSupplierContactId": "xyz789",
"paymentTermId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/purchaseOrderPaymentDelete a purchase order payment
Delete a purchase order payment, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the purchase order payment to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/purchaseOrderPayment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'