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.
You can apply a filter condition for invoice lines containing multiple ERPs. For information, see Integration errors.
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.
Avant de commencer
- Role required: admin
- Application scope: Source-to-Pay Integrations
Procédure
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.
Avant de commencer
- Role required: admin
- Application scope: Source-to-Pay Integrations
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.
Procédure
- 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, cXML, or XML for the AP Invoice API.
Avant de commencer
- Role required: admin
- Application scope: Source-to-Pay Integrations
- Add custom fields for invoice import
- Map custom fields between source and target tables
Procédure
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.
Avant de commencer
Role required: admin
Identify the payload source system listed in the Invoice integration field mappings [sn_spend_intg_invoice_intg_field_mapping] table.