Treasury APIs
Retrieve and update Treasury data such as cash flows and account balances.
Overview
Treasury REST APIs are structured in the same way as Coupa Core APIs with the following considerations:
- Only JSON is supported.
- API filters and API return formats are not supported.
- When using the offset parameter, order by the object ID to prevent any data issues.
To view specific endpoints and object structures, see these resources:
- To see REST APIs in your Treasury instance, see View Treasury API Documentation.
- To download the Postman collection, see Postman Collection for Coupa APIs. Only the JSON collection includes Treasury APIs.
For more information, see the Coupa Core API.
Authentication flow
The Treasury API uses Coupa Core OpenID Connect (OIDC) authentication in your Coupa Core instance. Use the following authentication flow:
- Create an OIDC client in your Coupa Core instance with a Grant Type set to Client Credentials. Apply scopes to your client depending on which endpoint you need to access. For specific steps for creating a client in Coupa Core and accessing a token, see OAuth 2.0 and OIDC.
- Generate the access token using your Coupa Core instance.
- Send subsequent Treasury API requests to your Treasury URL. See the Base URL section below.
Base URL
The Treasury REST API uses your Treasury instance URL, for example:
https://<your-domain>.mytm5.com/v1/cash-management/account-balances