latestOpenAPI 3.0.0Apache 2.02026-08-201250995.7 KB

bd9694db5fce

Sales

Pay Sale with client credit

Permissions needed: any of (CREATE_CHECKUPS, VIEW_COUNTER_SALE) If amount sent is greater than sale amount due, after the sale is paid, difference between amount sent and sale amount due is used to pay outstanding balance sales.

post/api/v1/sales/{id}/pay-with-credit

Parameters

#/paths/~1api~1v1~1sales/delete/parameters/0 — unresolved $ref

Request body

amountnumber double
typeinteger

Payment from client credit has type 8

datestring date-time

Payment date.

notesstring

Payment notes - if not sent then the notes from the charge will be used

Example request

{
  "notes": "Paid with credit"
}

Response

Successful operation - return sale's payments