The following endpoint can be used to retrieve the details of a credit within the CoCard Pay Center application, including how much of it has been applied and how much can still be applied.
The following endpoint can be used to retrieve a credit. You must replace the {base_url} , {site_id} and {_id} variables with the appropriate values. The credit's external id can be used in place of its _id .
A credit sent through Add/Update Invoice is stored as a credit, not an invoice. Reading it with Get Invoice returns the error record_is_credit with the credit's _id in credit ; read it with this endpoint instead.
{
"_id": "6717a2c4e1f0a93b2c5d8e11",
"externalId": "CM-88123",
"code": "P5XU4MK7QZ2X",
"creditNumber": "CM-88123",
"kind": "creditNote",
"status": "issued",
"site": "6201825a0cf5e23261a08646",
"customer": "649dc5bb468bd5b5d863c7d1",
"billToCustomer": null,
"creditDate": "2026-10-01T00:00:00.000Z",
"poNumber": "PO-552",
"description": "Return RMA 7781",
"customerMemo": null,
"amount": 15000,
"subtotal": 15000,
"taxes": 0,
"discounts": 0,
"applied": 5000,
"reserved": 0,
"remaining": 10000,
"spendable": 10000,
"isExhausted": false,
"lastAppliedAt": "2026-10-08T15:20:11.000Z",
"linesSynthesized": false,
"isReady": true,
"voidedAt": null,
"deleted": false,
"createdAt": "2026-10-01T14:02:37.000Z",
"updatedAt": "2026-10-08T15:20:11.000Z",
"lines": [
{
"name": "Returned: Cabinet Knob K-12",
"qty": 10,
"unitPrice": 1250,
"subtotal": 12500,
"total": 12500,
"description": null,
"item": null,
"glAccount": null,
"isTaxable": false,
"taxRates": []
},
{
"name": "Returned: Drawer Pull P-40",
"qty": 2,
"unitPrice": 1250,
"subtotal": 2500,
"total": 2500,
"description": null,
"item": null,
"glAccount": null,
"isTaxable": false,
"taxRates": []
}
]
}