Void/Delete Voucher
  • 01 Oct 2025
  • 2 Minutes to read
  • Dark
    Light

Void/Delete Voucher

  • Dark
    Light

Article summary

Post
/ap-rest-api/rest/1/voiddeletevoucher

Void/Delete Cheques

Security
HTTP
Type basic

Basic authentication

Header parameters
Content-Type
string
Exampleapplication/vnd.oracle.adf.action+json
Body parameters
object
Example{ "name": "voidDeleteVoucher", "parameters": [ { "compCode": "RKC" }, { "invCode": "62815600" }, { "vouNum": "157213" }, { "venCode": "ARROW" }, { "postFlag": "N" }, { "voidDate": "2025-01-14" } ] }
VouDueDate
string Required

This is the date the invoice is to be paid by.

VouBchPost
string
VouCompCode
string Required

This is the company code that holds the liability for this voucher. This must be a VALID CMiC company code.

Max length8
VouPayByManualChqFlag
string
Max length1
VouPostDate
string Required

This is the date this invoice was posted to the General Ledger.

VouVenCode
string Required

This is the vendor code on this voucher. This must be a VALID CMiC Vendor.

Max length8
VouCurrCode
string Required

This is the currency code of the invoice. This must be a VALID CMiC Currency Code for the company entered in VouNum

Max length3
VouJobCode
string

If this invoice is for a single job only, then enter the job code here. This must be a VALID CMiC job code or blank.

Max length10
VouChgCode
string

If a value is entered in VouContCode this is a mandatory field. This is the change order number the subcontractor invoice refers to. If the invoice is for the standard contract then set this to ‘000’. If this is for a change order then enter the change order number.

Max length6
VouContCode
string

If this invoice is for a subcontractor then this should be the contract number. This must be a VALID CMiC contract code or blank.

Max length20
VouInvSeriesCode
string

If invoice series codes are being used to indicate the type of invoice then a VALID CMiC series code should be entered or leave blank.

Max length4
VouNum
number Required

This is a unique number for each voucher entered in the system. The first record in the first batch (file) should have a value of –999999 and increment from there by 1 for each record. Start each successive file with a value that is 1 + the value of the last record in the previous batch and increment the numbers from there for each record in the new batch.

Max length2211
VouFinalRfpFlag
string
Max length1
VouInvAmt
number Required

This is the amount of the invoice before taxes and regardless of retainage. (The amount entered in the ‘AMOUNT’ field of voucher entry). If this is a retainage release voucher, set this to ‘0’.

Max length2218
VouInvCode
string Required

This is the vendors invoice number as shown on the invoice. This must be unique for the vendor within the company and preferably within the system. See VouDuplicateId for a way to handle duplicate invoice codes.

Max length20
VouInvDate
string Required

This is the date of the invoice.

Responses
200

OK

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.actionresult+json
example-0

Successful Response

{
  "result": "SUCCESS"
}
example-1

Successful Response

{
  "result": "SUCCESS"
}
object
400

Bad Request

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.actionresult+json
example-0

Unsuccessful Response

{
  "error": "Error: No matching records found for the combination of Company Code: RKC, Vendor Code: ARRO, Invoice Code: 62815600, Voucher Number: 157213"
}
example-1

Unsuccessful Response

{
  "error": "Error: No matching records found for the combination of Company Code: RKC, Vendor Code: ARRO, Invoice Code: 62815600, Voucher Number: 157213"
}
object