Posts

List all incoming posts

GET /api/incoming-items
<?xml version="1.0" encoding="UTF-8"?>
<incoming-items type="array" page="1" per_page="100" total="4">
  <incoming-item>
  ...
  </incoming-item>
 <incoming-item>
 ...
 </incoming-item>
</incoming-items>

You can filter the result by parameters:

GET /api/incoming-items?incoming_id=1234

Lists all posts of the incoming invoice with the ID “1234”. Upper and lower case are ignored.

The following filter parameters are available:

ParameterBeschreibung
incoming_idID of the incoming invoice
customfieldCustom field

Get a single item

GET /api/incoming-items/{id}
<?xml version="1.0" encoding="UTF-8"?>
<incoming-item>
  <id type="integer">1</id>
  <incoming_id type="integer">1</incoming_id>
  <position type="integer">1</position>
  <description><description/>
  <total type="float">75</total>
  <tax_name>Ust</tax_name>
  <tax_rate type="float">0</tax_rate>
  <tax_rate_reverse_charge type="float"/>
  <tax_included type="bool">1</tax_included>
  <category>external_services</category>
  <type>SERVICE</type>
  <cost_center><cost_center/>
  <expense_account_number type="integer"><expense_account_number/>
  <customfield><customfield/>
</incoming-item>

Create item

POST /api/incoming-items
XML-ElementBeschreibungTypDefault-WertPflichtfeld
incoming_idID of the incoming invoiceINTja
positionPositionINT
descriptionDescriptionALNUM
totalAmount of the postINT
tax_nameName of the taxALNUM
tax_rateRate of taxationFLOAT
tax_rate_reverse_chargeTax rate for reverse chargeFLOAT
tax_includedTax includedBOOL
categoryTitel of the categoryALNUM
typeProduct or ServiceOnly for invoice to foreign countries, dependent on company location.ENUM[PRODUCT,SERVICE]
cost_centerCost centerINT
expense_account_numberNumber of the exepense accountINT
customfieldCustom fieldALNUM

The line item is added to eventual already existing positions.

<?xml version="1.0" encoding="UTF-8"?>
<incoming-item>
  <incoming_id type="integer">1</incoming_id>
  <position type="integer">1</position>
  <description>Example description</description>
  <total type="float">25</total>
  <tax_name>Ust</tax_name>
  <tax_rate type="float">19</tax_rate>
  <tax_rate_reverse_charge type="float"/>
  <tax_included type="bool">1</tax_included>
  <category>training_costs</category>
  <type>SERVICE<type/>
  <cost_center>1234<cost_center/>
  <expense_account_number type="integer">5678<expense_account_number/>
</incoming-item>
<?xml version="1.0" encoding="UTF-8"?>
<incoming-item>
  <id type="integer">1</id>
  <incoming_id type="integer">1</incoming_id>
  <position type="integer">1</position>
  <description>Example description</description>
  <total type="float">25</total>
  <tax_name>Ust</tax_name>
  <tax_rate type="float">19</tax_rate>
  <tax_rate_reverse_charge type="float"/>
  <tax_included type="bool">1</tax_included>
  <category>training_costs</category>
  <type>SERVICE<type/>
  <cost_center>1234<cost_center/>
  <expense_account_number type="integer">5678<expense_account_number/>
</incoming-item>

Edit item

PUT /api/incoming-items/{id}

Here the same parameters apply as for creating, however, the associated incoming invoice (incoming_id) can not be changed.

<incoming-item>
    <total>18</total>
</incoming-item>

Delete item

DELETE /api/incoming-items/{id}

Deletes an item