Supported Formats

json

GET /api/v2/purchases.json?token=API_TOKEN
Een lijst van alle aankopen opvragen (100 aankopen per query)

Supported Formats

json

Params

Param name Description
page
optional

Pagina indien er meer dan 100 aankopen zijn

Validations:

  • Must be a number.


GET /api/v2/purchases/:id.json?token=API_TOKEN
Informatie van specifieke aankoop opvragen

Supported Formats

json

Params

Param name Description
id
required

De Cashaca ID van de aankoop

Validations:

  • Must be a number.


GET /api/v2/purchases/search.json?token=API_TOKEN
Zoek in alle aankopen (100 aankopen per query)


POST /api/v2/purchases.json?token=API_TOKEN
Nieuwe aankoop aanmaken

Supported Formats

json

Params

Param name Description
supplier
required

Leveranciersinformatie

Validations:

  • Must be a Hash

supplier[type_id]
required

Type klant ID => Belgische particulier (of instelling zonder BTW nummer): 0, Belgisch bedrijf: 1, Particulier binnen EU (of instelling zonder BTW nummer): 4, Bedrijf binnen EU:2, Klant buiten EU: 3

Validations:

  • Must be one of: 0, 1, 2, 3.

supplier[name]
required

Naam

Validations:

  • Must be a String

supplier[vat_number]
optional

BTW nummer

Validations:

  • Must be a String

purchase
required

Informatie van aankoop

Validations:

  • Must be a Hash

purchase[date]
required

Datum

Validations:

  • Must be a String

purchase[amount_at_0]
optional

Bedrag (excl. BTW) aan 0% BTW

Validations:

  • Must be a String

purchase[amount_at_6]
optional

Bedrag (excl. BTW) aan 6% BTW

Validations:

  • Must be a String

purchase[amount_at_12]
optional

Bedrag (excl. BTW) aan 12% BTW

Validations:

  • Must be a String

purchase[amount_at_21]
optional

Bedrag (excl. BTW) aan 21% BTW

Validations:

  • Must be a String

purchase[reallocation_of_vat]
optional

Verlegging Belgische BTW van verkoper naar koper?

Validations:

  • Must be one of: 0, 1.

purchase[cost_type_id]
optional

Handelsgoederen, grond- en hulpstoffen: 1, Investeringen:3, Overige goederen:4, Diensten: 5

Validations:

  • Must be one of: 1, 2, 3.

purchase[cost_category_id]
optional

De ID van de kostencategorie

Validations:

  • Must be a Integer

purchase[privat_percentage]
optional

Gedeelte privégebruik

Validations:

  • Must be a Float

purchase[deductable_percentage_tax]
optional

Aftrekbaarheid beroepsgedeelte in winstbelasting

Validations:

  • Must be a Float

purchase[depreciation_term]
optional

Afschrijvingstermijn in jaren indien cost_type_id == 3 == investering

Validations:

  • Must be a Integer

purchase[deductable_percentage_vat]
optional

Aftrekbaarheid BTW op beroepsgedeelte

Validations:

  • Must be a Float

purchase[description]
optional

Omschrijving voor boekhouding

Validations:

  • Must be a String

purchase[uploaded_attachment_attributes]
optional

Optionele bijlage die u aan de aankoop toevoegt

Validations:

  • Must be an Array of nested elements

purchase[uploaded_attachment_attributes][file_base64]
optional

Het bestand als een base64 string in volgend formaat: data:image/jpeg;base64,(base64 encoded data)

Validations:

  • Must be a String