Payment
The payment resource.
/paymentList payments
Retrieve a paginated list of 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/payment?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"paymentId": "xyz789",
"paymentType": "string",
"status": "string",
"paymentDate": "2026-01-01",
"currencyCode": "string",
"exchangeRate": 0,
"totalAmount": 0
}
]/paymentRetrieve a payment
Fetch a single payment by filtering on `id`.
Query parameters
idstringMatch on the payment's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/payment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"paymentId": "xyz789",
"paymentType": "string",
"status": "string",
"paymentDate": "2026-01-01",
"currencyCode": "string",
"exchangeRate": 0,
"totalAmount": 0
}/paymentCreate a payment
Create a new payment.
Body parameters
paymentIdstringrequiredpaymentTypepaymentTyperequiredstatuspaymentStatusrequiredcustomerIdstringsupplierIdstringpaymentDatedaterequiredpostingDatedatecurrencyCodestringrequiredReferences currencyCode.code
exchangeRatenumberrequiredtotalAmountnumberrequiredbankAccountstringrequiredReferences account.id
referencestringmemostringjournalIdstringReferences journal.id
postedAttimestamppostedBystringReferences user.id
voidedAttimestampvoidedBystringReferences user.id
companyIdstringrequiredReferences company.id
customFieldsobjectcurl --request POST \
--url https://rest.carbon.ms/payment \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"paymentId":"xyz789","paymentType":"string","status":"string","paymentDate":"2026-01-01","currencyCode":"string","exchangeRate":0,"totalAmount":0,"bankAccount":"string","companyId":"xyz789"}'{
"id": "abc123def456",
"paymentId": "xyz789",
"paymentType": "string",
"status": "string",
"paymentDate": "2026-01-01",
"currencyCode": "string",
"exchangeRate": 0,
"totalAmount": 0
}/paymentUpdate a payment
Update an existing payment, matched on `id`.
Body parameters
paymentIdstringrequiredpaymentTypepaymentTyperequiredstatuspaymentStatusrequiredcustomerIdstringsupplierIdstringpaymentDatedaterequiredpostingDatedatecurrencyCodestringrequiredReferences currencyCode.code
exchangeRatenumberrequiredtotalAmountnumberrequiredbankAccountstringrequiredReferences account.id
referencestringmemostringjournalIdstringReferences journal.id
postedAttimestamppostedBystringReferences user.id
voidedAttimestampvoidedBystringReferences user.id
companyIdstringrequiredReferences company.id
customFieldsobjectcurl --request PATCH \
--url 'https://rest.carbon.ms/payment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"paymentId":"xyz789"}'{
"id": "abc123def456",
"paymentId": "xyz789",
"paymentType": "string",
"status": "string",
"paymentDate": "2026-01-01",
"currencyCode": "string",
"exchangeRate": 0,
"totalAmount": 0
}/paymentDelete a payment
Delete a payment, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the payment to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/payment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'