List products
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"name": "<string>",
"reference": "<string>",
"price": 123,
"tax_rule_id": 123,
"ledger_auxiliary_account_id": 123,
"income_kind": "<string>",
"active": true,
"in_use": true
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Treasury Rules
List products
List the agency’s catalog of products and services, ordered by name.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
products
List products
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/products"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"name": "<string>",
"reference": "<string>",
"price": 123,
"tax_rule_id": 123,
"ledger_auxiliary_account_id": 123,
"income_kind": "<string>",
"active": true,
"in_use": true
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Was this page helpful?