AP Voucher
Endpoints
Provides access to AP Voucher data.
VoucherDetailApi
Provides API access to AP Voucher creation from KOFAX scanned data.
/api/VoucherDetailApi | ||||
---|---|---|---|---|
Method | Performed As | Request Query | Request Body | Response |
POST | Admin User | - |
Models
VoucherApiModel
Property | Type | Description |
---|---|---|
VoucherApiFields | General data associated with the AP Voucher. | |
Rows | Array<VoucherApiLine> | The Voucher Scan Lines of the AP Voucher. |
VoucherApiFields
Property | Type | Description |
---|---|---|
DocumentType | String | Either “Credit” or “Invoice”. |
DocID | Integer | The Doc ID of the AP Voucher. |
InvoiceDate | DateTime | The Invoice Date of the AP Voucher. |
InvoiceNumber | String | The Invoice Number of the AP Voucher. |
GstNumber | String | The GST Number of the AP Voucher. |
PONumber | Integer | The PO Number of the AP Voucher. |
ReferAPInvoice | String | The Invoice the AP Voucher refers to. |
FcGstTotal | Number | The total value (GST incl.) on the AP Voucher. |
FcGst | Number | The total GST on the AP Voucher. |
InvoiceTo | String | The Invoice To fields on the AP Voucher. |
Comments | String | The Comments on the AP Voucher. |
AlphaCode | String | The Alpha Code of the Supplier the AP Voucher is for. |
VoucherApiLine
Property | Type | Description |
---|---|---|
LineDescription | string | The Line Description. |
LineCode | String | The Line Code. |
Unit | String | The Unit. |
Quantity | Number | The Quantity. |
Rate | Number | The Rate. |
FcValueExcl | Number | The total value of the line (GST excl.). |
FcGst | Number | The total GST on the line. |
LineDate | DateTime | The Line Date. |
PONumber | Integer | The PO Number. |
DocketNo | String | The Docket Number. |
DiscountPercent | Number | The Discount Percent. |
VoucherApiResult
Property | Type | Description |
---|---|---|
Status | Integer | 1 for success. |
WorkflowError | String | The error message if the AP Voucher failed to be submitted into the Xtracta Workflow. |
WarningMessage | String | The warning message if multiple Suppliers are found for the Alpha Code. |
VoucherId | Integer | The unique Voucher ID of the created AP Voucher. |
Example
VoucherDetailApi POST
- 1 Endpoints
- 1.1 VoucherDetailApi
- 2 Models
- 2.1 VoucherApiModel
- 2.2 VoucherApiFields
- 2.3 VoucherApiLine
- 2.4 VoucherApiResult
- 3 Example