AP Invoice API Developer Guide
This developer guide describes how to define custom invoice fields that aren’t provided by default with the AP Invoice API for Accounts Payable Invoice Processing. Instructions are also provided for setting authentication when using cXML as the payload.
Define credentials for cXML payloads in the Source system credential [sn_spend_intg_source_system_credential] table. For instructions, see Setting credentials for authentication in the cXML payload.
Add custom fields for invoice import
Use the following procedure to add custom fields for invoices, invoice lines, and invoice tax lines to be used with the AP Invoice API.
Before you begin
- Role required: admin
- Application scope: Source-to-Pay integration framework
Procedure
Map custom fields between source and target tables
Use the following procedure to map custom fields between source and target tables for the AP Invoice API.
Before you begin
- Role required: admin
- Application scope: Source-to-Pay integration framework
Create table columns for mapping the new field from the source table to the target table. Use the steps in Add custom fields for invoice import.
Procedure
- Navigate to .
- Open the Invoice Import table transform map.
- Click New on the Field Maps tab.
- Select the name of the custom field from the Source field menu.
- Select the name of the custom field from the Target field menu.
- Select Save or Submit.
- Map custom fields to a payload source format.
Map custom fields to a payload source format
Use the following procedure to map custom fields to a payload entry in JSON or cXML for the AP Invoice API.
Before you begin
- Role required: admin
- Application scope: Source-to-Pay integration framework
- Add custom fields for invoice import
- Map custom fields between source and target tables
Procedure
Setting credentials for authentication in the cXML payload
The sn_spend_intg/ap_invoice/cxml endpoint is authenticated in the payload using credentials stored in the Source System Credential [sn_spend_intg_source_system_credential] table.
Before you begin
Role required: admin
Identify the payload source system listed in the Invoice integration field mappings [sn_spend_intg_invoice_intg_field_mapping] table.