OpenAPI Documentation
Sales
Data export
Expenses
List available expenses
Gets a list of expense invoices imported into the system for your company.
GET
/
expenses
Copy
curl --request GET \
--url https://api.altera.co/expenses \
--header 'Authorization: <api-key>'
Copy
{
"result": "OK",
"data": {
"expenses": [
{
"modelType": "PROCESSED_EXPENSE",
"readOnly": false,
"basicInformation": {
"invoiceId": 18,
"invoiceType": "SALES",
"invoiceNumber": "2/1/2022",
"year": 2022,
"month": 6,
"invoiceNumberInPeriod": 2,
"statusId": "SENT",
"isReceipt": false,
"isRelated": false,
"netPrice": 8500,
"grossPrice": 10455,
"currency": "PLN",
"exchangeRate": 1,
"vatPLN": 1955,
"issueDate": "2022-06-16T00:00:00.000Z",
"saleDate": "2022-06-27T00:00:00.000Z",
"uploadDate": "2022-03-24T14:26:17.000Z",
"relatedInvoicesIds": [],
"priceTypeId": "NET",
"paymentGenerationStatus": "ACCEPTED"
},
"contractor": {
"contractorName": "Altera sp. z o.o.",
"contractorId": 25,
"taxIdentificationNumber": "7010978165",
"country": "PL",
"contractorType": "COMPANY",
"contractorRegion": "POLAND",
"defaultCurrency": "PLN",
"city": "Bydgoszcz",
"street": "ul. Grunwaldzka",
"houseNumber": "4",
"postCode": "85-236"
},
"buyer": {
"taxIdentificationNumber": "9671391067",
"contractorName": "ITKO Łukasz Kowalski"
},
"seller": {
"contractorName": "Altera sp. z o.o.",
"contractorId": 25,
"taxIdentificationNumber": "7010978165",
"country": "PL",
"contractorType": "COMPANY",
"contractorRegion": "POLAND",
"defaultCurrency": "PLN",
"city": "Bydgoszcz",
"street": "ul. Grunwaldzka",
"houseNumber": "4",
"postCode": "85-236"
},
"payments": {
"paymentMethod": "TRANSFER",
"dueDate": "2022-07-11T00:00:00.000Z",
"isSplitPayment": false,
"isPaid": false,
"bankAccountNumber": "PL78114020040000360280396856"
},
"invoicePosition": [],
"costCenterPerItem": false,
"additionalDetails": "Usługi księgowe Koszty ogólne",
"accounting": {
"accountingDate": "2022-09-16T00:00:00.000Z",
"receiptDate": "2022-09-23T00:00:00.000Z",
"vatProcedures": [],
"registrationPlate": "",
"isSubjectToVat": false,
"activeVat": false,
"bufferOnly": false
}
}
],
"pagesAmount": "1",
"sumGross": "10455.000",
"sumNet": "8500.00"
}
}
Authorizations
OpenApi Key created within Altera.app for a certain company
Query Parameters
Defines the amount of invoices polled per page
Available options:
10
, 20
, 50
, 100
Defines the page we want to poll
Available options:
INVOICE_NUMBER
, ISSUE_DATE
, SALE_DATE
, DUE_DATE
, AMOUNT_GROSS
, CONTRACTOR_NAME
Example:
"ISSUE_DATE"
Available options:
ASC
, DESC
Example:
"DESC"
Freetext search over concatenated fields InvoiceNumber, ContractorName, ContractorTIN and ContractorCity
Example:
"INTERIM"
Available options:
PAID
, UNPAID
, OVERDUE
Example:
"OVERDUE"
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
curl --request GET \
--url https://api.altera.co/expenses \
--header 'Authorization: <api-key>'
Copy
{
"result": "OK",
"data": {
"expenses": [
{
"modelType": "PROCESSED_EXPENSE",
"readOnly": false,
"basicInformation": {
"invoiceId": 18,
"invoiceType": "SALES",
"invoiceNumber": "2/1/2022",
"year": 2022,
"month": 6,
"invoiceNumberInPeriod": 2,
"statusId": "SENT",
"isReceipt": false,
"isRelated": false,
"netPrice": 8500,
"grossPrice": 10455,
"currency": "PLN",
"exchangeRate": 1,
"vatPLN": 1955,
"issueDate": "2022-06-16T00:00:00.000Z",
"saleDate": "2022-06-27T00:00:00.000Z",
"uploadDate": "2022-03-24T14:26:17.000Z",
"relatedInvoicesIds": [],
"priceTypeId": "NET",
"paymentGenerationStatus": "ACCEPTED"
},
"contractor": {
"contractorName": "Altera sp. z o.o.",
"contractorId": 25,
"taxIdentificationNumber": "7010978165",
"country": "PL",
"contractorType": "COMPANY",
"contractorRegion": "POLAND",
"defaultCurrency": "PLN",
"city": "Bydgoszcz",
"street": "ul. Grunwaldzka",
"houseNumber": "4",
"postCode": "85-236"
},
"buyer": {
"taxIdentificationNumber": "9671391067",
"contractorName": "ITKO Łukasz Kowalski"
},
"seller": {
"contractorName": "Altera sp. z o.o.",
"contractorId": 25,
"taxIdentificationNumber": "7010978165",
"country": "PL",
"contractorType": "COMPANY",
"contractorRegion": "POLAND",
"defaultCurrency": "PLN",
"city": "Bydgoszcz",
"street": "ul. Grunwaldzka",
"houseNumber": "4",
"postCode": "85-236"
},
"payments": {
"paymentMethod": "TRANSFER",
"dueDate": "2022-07-11T00:00:00.000Z",
"isSplitPayment": false,
"isPaid": false,
"bankAccountNumber": "PL78114020040000360280396856"
},
"invoicePosition": [],
"costCenterPerItem": false,
"additionalDetails": "Usługi księgowe Koszty ogólne",
"accounting": {
"accountingDate": "2022-09-16T00:00:00.000Z",
"receiptDate": "2022-09-23T00:00:00.000Z",
"vatProcedures": [],
"registrationPlate": "",
"isSubjectToVat": false,
"activeVat": false,
"bufferOnly": false
}
}
],
"pagesAmount": "1",
"sumGross": "10455.000",
"sumNet": "8500.00"
}
}
Assistant
Responses are generated using AI and may contain mistakes.