CarbonAPI Documentation
API ReferenceExpense Categorisation

Submit a new batch of transactions for processing

POST
/transaction/batch
x-api-key<token>

In: header

Scope: api_key

transactionsarray<TransactionDTO>

The transactions to create a batch with

countryCodestring

The country code of the transactions, for example NZ

Value in"NZ"

Response Body

curl -X POST "https://api.aws-au.carbonapi.io/transaction/batch" \  -H "Content-Type: application/json" \  -d '{    "transactions": [      {        "id": "11111111-1111-1111-1111-111111111111",        "date": "2021-01-01T00:00:00.000Z",        "subtotal": 100,        "tax": 10,        "total": 110,        "description": "Purchase of goods",        "supplierName": "Air New Zealand",        "sourceAccount": "Travel - International",        "currency": "NZD"      }    ],    "countryCode": "NZ"  }'
{
  "batchIds": [
    "string"
  ]
}