Customer Refund

Refunds money back to a customer.

Path Parameter::DOCKEY (integer) — the internal document ID used in the URL path

Endpoints

GET
/customerrefund

List documents with pagination and filters

GET
/customerrefund/:DOCKEY

Get a single document by its internal ID

POST
/customerrefund

Create a new customer refund

PUT
/customerrefund/:DOCKEY

Update an existing document

DELETE
/customerrefund/:DOCKEY

Delete a document by its internal ID

Fields

FieldTypeRequiredNotes
docnostringNoLeave blank to auto-generate the document number.
Default: ""
docdatestring
Yes
Document date in YYYY-MM-DD. Proven: "2026-09-30".
codestring
Yes
code is the customer code.
paymentmethodstring
Yes
Bank or cash account code from GET /pmmethod → data[].code. Proven: "310-000".
docamtstringNoTotal document amount as a string decimal. Proven: "1000.00".
sdsdocdetailarray
Yes
Allocation lines — one entry per document being settled.
sdsdocdetail[].dtlkeyintegerNoSend 0 for a new allocation line.
Default: 0
sdsdocdetail[].fromdoctypestringNoDocument type being settled. Proven: "SI".
sdsdocdetail[].fromdocnostringNoDocument number being settled. Proven: "SI-00001".
sdsdocdetail[].amountstringNoAmount applied against that document. Proven: "1000.00".

Examples

POST — Create Customer Refund

POST /customerrefund
{
  "docno": "",
  "docdate": "2026-09-30",
  "code": "CUS-01",
  "paymentmethod": "310-000",
  "docamt": "1000.00",
  "sdsdocdetail": [
    {
      "dtlkey": 0,
      "fromdoctype": "SI",
      "fromdocno": "SI-00001",
      "amount": "1000.00"
    }
  ]
}

GET — List Documents

GET /customerrefund?offset=0

GET — Payment Methods

GET /pmmethod?offset=0

DELETE

DELETE /customerrefund/1

Response: "OK" (plain text)

Notes