Actualizar concepto de ajuste
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/adjustment_concepts/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"adjustment_concept": {
"name": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": true,
"active": true
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adjustment_concept: {
name: '<string>',
beneficiary: '<string>',
funded_by: '<string>',
agency_charge_nature: '<string>',
requires_evidence: true,
active: true
}
})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/adjustment_concepts/{id}', 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/adjustment_concepts/{id}"
payload = { "adjustment_concept": {
"name": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": True,
"active": True
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"payload": {
"id": 123,
"name": "<string>",
"adjustment_type": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": true,
"active": true,
"in_use": true
}
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Treasury Adjustment Concepts
Actualizar concepto de ajuste
Cambia un concepto del catálogo de ajustes.
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
adjustment_concepts
/
{id}
Actualizar concepto de ajuste
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/adjustment_concepts/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"adjustment_concept": {
"name": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": true,
"active": true
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adjustment_concept: {
name: '<string>',
beneficiary: '<string>',
funded_by: '<string>',
agency_charge_nature: '<string>',
requires_evidence: true,
active: true
}
})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/adjustment_concepts/{id}', 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/adjustment_concepts/{id}"
payload = { "adjustment_concept": {
"name": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": True,
"active": True
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"payload": {
"id": 123,
"name": "<string>",
"adjustment_type": "<string>",
"beneficiary": "<string>",
"funded_by": "<string>",
"agency_charge_nature": "<string>",
"requires_evidence": true,
"active": true,
"in_use": true
}
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}