3.2 Modify an Account

Using API

Change an Account's details in the Finance / Procurement system.

The ERP Connector platform should trigger an API call to Coupa using the Account GET API to query the Account’s <id> or <name> that you need to update (based on “name”, for example, but any queryable field/tag can be used depending on business scenario).

The ERP Connector platform should trigger a Coupa PUT API to update the Account in Coupa using the Account <id>.

Ensure that you get a 200 API response and it is logged in your ERP Connector platform logging engine. If you get a different API response (for example, 400) error, the API error (returned on API response <errors><error> tag(s)) must be logged in the ERP Connector platform logging engine and a notification must be sent to the relevant person to investigate.

Validate that the Account's details are modified correctly in Coupa.

Sample API

In this example, an Account is queried based on the Account's name (Test1-Test2-Test3); then the API response Coupa Account <id> is used to update the Coupa Account with a new name.