Void/Delete Voucher
  • 22 Oct 2025
  • 1 Minute to read
  • Dark
    Light

Void/Delete Voucher

  • Dark
    Light

Article summary

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

Overview

Once an invoice has been posted, it must be voided to reverse its distribution to the General Ledger and its sub-ledgers. The VoidDeleteVoucher API enables the reversal (void) of an invoice using a create action.

Notes

UI Navigation

Financials > Accounts Payable > Void Invoices

Reference Article

Accounts Payable – Void Invoices

voiddeletevoucher Attributes (Required)

CMiC UI FieldnameObjectNameDescriptionTypeData LengthExample
Company CodevoiddeletevoucherCompCodeThis is the company code the voided invoice belongs to. This must be a valid Company Code in CMiC.string8001
Vendor CodevoiddeletevoucherVenCodeThis is the vendor the voided invoice was originally created under. This must be a valid AP Vender code in CMiC.string8MICR01
Invoice CodevoiddeletevoucherInvCodeThis is the invoice number entered when the invoice was originally created.string20INV-12412
Void DatevoiddeletevoucherVoidDateThis is the date the invoice will be reversed.datetimeYYYY-MM-DD2025-09-26
Post FlagvoiddeletevoucherPostFlagThis flag posts the void by committing the record into financials on insert.string1Y/N
Voucher NumbervoiddeletevoucherVouNumThis is the Voucher Number associated with the invoice when it was created.number10217032
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" } ] }
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