curl --request POST \
--url https://api.altera.co/expenses/costCenters \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceIds": [
101,
102
],
"tag": 6,
"tag2": 7
}
'
{
"result": "OK",
"data": {
"processed": [
2
],
"rejected": [
{}
]
}
}{
"result": "Error",
"errorCode": "<string>",
"errorMessage": "<string>",
"errorMessagePL": "<string>",
"details": {
"invoices": [
{
"invoiceId": 2,
"confirmation": "<string>"
}
]
}
}{
"result": "Error",
"errorCode": "<string>",
"errorMessage": "<string>",
"errorMessagePL": "<string>",
"details": {
"invoices": [
{
"invoiceId": 2,
"confirmation": "<string>"
}
]
}
}Expenses
Set the cost category on selected expenses
Requires the advancedCostCenters entitlement. Sets the same main category and optional subcategory on every expense header and line item in a single transaction. Companies with an active rules-based approval workflow are limited to 20 expenses per batch.
POST
/
expenses
/
costCenters
curl --request POST \
--url https://api.altera.co/expenses/costCenters \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceIds": [
101,
102
],
"tag": 6,
"tag2": 7
}
'
{
"result": "OK",
"data": {
"processed": [
2
],
"rejected": [
{}
]
}
}{
"result": "Error",
"errorCode": "<string>",
"errorMessage": "<string>",
"errorMessagePL": "<string>",
"details": {
"invoices": [
{
"invoiceId": 2,
"confirmation": "<string>"
}
]
}
}{
"result": "Error",
"errorCode": "<string>",
"errorMessage": "<string>",
"errorMessagePL": "<string>",
"details": {
"invoices": [
{
"invoiceId": 2,
"confirmation": "<string>"
}
]
}
}Authorizations
Body
application/json
Was this page helpful?

