Introduction to Procure to Pay with Coupa and Netsuite recipe
Introduction to Procure to Pay with Coupa and
Netsuite recipe
The Procure to Pay with Coupa and Netsuite recipe is based on REST and SOAP APIs. Use the
recipe to create a NetSuite purchase order and generate invoice from a Coupa
purchase order based on a webhook request from Coupa as an incoming
parameter.
The process is triggered by a webhook received from Coupa. The process retrieves
all the information about the purchase order from the webhook body, such as,
product, currency, shipping address, and supplier.
The process searches for vendors using the custom field custentity_coupa_id with
the value from the Coupa supplier ID. The process then creates or updates a
vendor record in NetSuite based on the supplier information.
The process then creates all the products in NetSuite. If a product with the same
name already exists, it retrieves the product’s ID instead of creating a new
product. The process calculates the product price according to the exchange
rate defined in NetSuite and saves the basic price value set in
NetSuite.
The process then searches for an existing location in NetSuite based on the Coupa
ID shipping address. If the location does not exist, it creates a specific
location named Coupa ID <coupa shipping address ID>. The process then
creates a purchase order based on the information from Coupa.
The process prepares an invoice process object and sends an email with the
generated invoice data to the email specified for the requester in the Coupa
purchase order.
The process then sends an email notification to confirm the successful process
flow execution or to report any error encountered during the process.
The process does not update the existing purchase orders.