List credit notes
Lists credit notes, with what's left of each.
GET/v1/workspaces/{regionId}/credit-notes
Returns
200 OK with the object shown in the response.
More details
The credit notes a buyer received or a supplier issued (across its buyers), oldest first, each with remaining: what's left to apply, never stored.
Errors
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
- 403 Forbidden - The caller's Bearer token or API key doesn't grant access to this workspace (regionId), or lacks the required role.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/credit-notes" \
-H "X-Api-Key: $PLEAXY_API_KEY"[ {
"documentType": "credit_note",
"id": "string",
"externalCreditNoteNumber": "string",
"issueDate": "string",
"buyerOrgId": "string",
"buyerOrgName": "string",
"supplierOrgId": "string",
"supplier": "string",
"supplierConnectionId": "string",
"currency": "string",
"reason": "returned_goods" | "price_adjustment" | "service_credit" | "rebate" | "other",
"correctsBilling": true,
"note": "string",
"lineItems": [ { "description": "string", "qty": number, "unitPrice": number, "amount": number } ],
"adjustments": [ { "type": "discount" | "charge", "description": "string", "amount": number } ],
"taxAmount": number,
"amount": number,
"refunded": number,
"remaining": number,
"invoiceId": "string",
"externalInvoiceNumber": "string",
"po": "string",
"poLineNo": number,
"status": "pending_acceptance" | "accepted" | "rejected" | "void",
"autoAccepted": true,
"acceptedAt": "string",
"rejection": { "at": "string", "reason": "string" },
"poEffect": { "kind": "release", "po": "string", "poLineNo": number, "amount": number, "qty": number } | { "kind": "none", "why": "not_a_correction" | "no_po" | "po_closed" },
"applications": [ { "id": "string", "invoiceId": "string", "externalInvoiceNumber": "string", "amount": number, "appliedAt": "string", "auto": true } ],
"exports": [ { "exportId": "string", "exportedAt": "string" } ],
"source": "feed" | "cloud_sync",
"submittedFormat": "json" | "ubl" | "cxml",
"cloudProvider": "aws" | "azure",
"hasPdf": boolean,
"createdAt": "string"
} ]