expense.get
Requests the details of one or more expenses. When no filter is set, 10 expenses will be delivered. A LIMIT up to 100 expenses is possible. The RESPONSE contains a "list of expenses" and each of them with the following fields.
| Tags | Description |
|---|---|
| INVOICE_ID | Invoice ID |
| INVOICE_NUMBER | Invoice number |
| MONTH Deprecated | Month |
| YEAR Deprecated | Year |
| START_PAID_DATE | Invoices with a payment from a specific date (Format: YYYY-MM-DD) |
| END_PAID_DATE | Invoices with a payment up to a specific date (Format: YYYY-MM-DD) |
| START_DATE | Invoices from a specific date (Format: YYYY-MM-DD) |
| END_DATE | Invoices until a specific date (Format: YYYY-MM-DD) |
| Tags | Description |
|---|---|
| INVOICE_ID | Invoice ID |
| ORGANIZATION | Company name |
| CATEGORY | Category |
| INVOICE_NUMBER | Invoice number |
| INVOICE_DATE | Invoice date (Format: YYYY-MM-DD) |
| SERVICE_PERIOD_START | Start date of service period (Format: YYYY-MM-DD) |
| SERVICE_PERIOD_END | End date of service period (Format: YYYY-MM-DD) |
| DUE_DATE | Due date (Format: YYYY-MM-DD) |
| SUB_TOTAL | Net amount |
| VAT_TOTAL | Input VAT amount |
| TOTAL | Gross amount |
| DOCUMENT_URL | URL of a document |
| PAID_DATE | Date of received payment |
| CURRENCY_CODE | Currency of the document (ISO 4217 code) |
| BASE_CURRENCY_CODE |
Base currency that |
| EXCHANGE_RATE |
Stored exchange rate between the document currency ( Is |
| NOTE | Note |
| COMMENTS | List of comments associated to the entity. Empty if there are no comments. |
| VAT_ITEMS | List of all articles for one entity |
| ITEMS | List of items |
| CUSTOMER_ID | A specific customer ID |
| PROJECT_ID | A specific project ID |
| PAYMENT_INFO | Information on payment |
| VAT_CASE | Flag for Intra-community delivery: 0 = no | 1 = yes |
expense.create
Creation of a cost entry. A voucher can be attached optionally.
Structure of POST-request in multipart format:
curl -v -X POST \
-u {e-mail address}:{API-Key} \
-H 'Content-Type: multipart/form-data, boundary=AaB03x' \
-d '{xml body}' \ https://my.fastbill.com/api/1.0/api.php
POST /api/1.0/api.php HTTP/1.0
Host: my.fastbill.com
Content-type: multipart/form-data, boundary=AaB03x
Content-Length: {size of content}
--AaB03x content-disposition: form-data; name="httpbody"
{XML- oder JSON-Daten}
--AaB03x
content-disposition: form-data; name="document"; filename{filename}"
Content-Type: {MIME Typ}
Content-Transfer-Encoding: binary
{file content}
--AaB03x--
| Tags | Description |
|---|---|
| INVOICE_DATE Required | Invoice date (Format: YYYY-MM-DD) |
| SERVICE_PERIOD_START | Start date of service period (Format: YYYY-MM-DD) |
| SERVICE_PERIOD_END | End date of service period (Format: YYYY-MM-DD) |
| DUE_DATE | Due date (Format: YYYY-MM-DD) |
| PROJECT_ID | A specific project ID |
| CUSTOMER_ID | A specific customer ID |
| ORGANIZATION Required | Company name |
| INVOICE_NUMBER | Invoice number |
| COMMENT | Comment |
| SUB_TOTAL Required | Net amount |
| VAT_TOTAL | Input VAT amount |
| CURRENCY_CODE | Currency of the document (ISO 4217 code) |
| ITEMS | List of items |
| Tags | Description |
|---|---|
| STATUS | Result of the action |
| INVOICE_ID | Invoice ID |