Credit Invoice Line Items

Credit invoice line items.

PUT /api/.../invoices/{id}/credit

Request Information

Parameters
Name Type Required Description
id Integer Yes The unique id assigned to the invoice.
dtoInvoiceLinesCreditData Invoice Line Items Credit details Yes Define this parameter in the request body.
DtoInvoiceLinesCreditData
Property Type Nullable Description
CheckVchrNumber string Yes Voucher number
CheckVchrDate Datetime No Voucher date
PaymentTypeID int No Options are 2 (Check), 3 (Voucher)
InvoiceLineItems List Yes List of Invoice line items to be credited.
Example
application/json, text/json
  {
    "PaymentTypeID": 2,
    "CheckVchrNumber": "1234",
    "CheckVchrDate": "2021-04-15T00:04:37.634Z",
    "InvoiceLineItems": {222, 333}
 }

Response Information

None

HTTP Response Codes

Code Description
200 OK. Success
400 FAILURE.
  • Bad request
  • Invalid invoice ID

Required Permissions

Permission IDs found here.

    CR_AccessAcquisitions_Allow (),
    CR_Invoices_Access (based on owner ID)
    CR_Invoices_Modify (based on owner ID)
    CR_Invoices_PayCredit (based on owner ID)