Supported Formats

json

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

Supported Formats

json

Params

Param name Description
page
optional

Pagina indien er meer dan 100 verkopen zijn

Validations:

  • Must be a number.


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

Supported Formats

json

Params

Param name Description
id
required

De Cashaca ID van de verkoop

Validations:

  • Must be a number.


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


POST /api/v2/sales.json?token=API_TOKEN
Nieuwe verkoop aanmaken

Supported Formats

json

Params

Param name Description
client
required

Klanteninformatie

Validations:

  • Must be a Hash

client[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, 4.

client[name]
required

Naam

Validations:

  • Must be a String

client[vat_number]
optional

BTW nummer

Validations:

  • Must be a String

sale
required

Informatie verkoop

Validations:

  • Must be a Hash

sale[date]
required

Datum

Validations:

  • Must be a String

sale[amount_at_0]
optional

Bedrag (excl. BTW) aan 0% BTW

Validations:

  • Must be a String

sale[amount_at_6]
optional

Bedrag (excl. BTW) aan 6% BTW

Validations:

  • Must be a String

sale[amount_at_12]
optional

Bedrag (excl. BTW) aan 12% BTW

Validations:

  • Must be a String

sale[amount_at_21]
optional

Bedrag (excl. BTW) aan 21% BTW

Validations:

  • Must be a String

sale[amount_as_royalties]
optional

Waarvan auteursrechten excl. BTW. Dit bedrag moet ook worden opgenomen in de velden amount_at_0..amount_at_21

Validations:

  • Must be a String

sale[withholding_tax_amount]
optional

De roerende voorheffing op het gefactureerde bedrag die afgehouden wordt door de klant

Validations:

  • Must be a String

sale[reallocation_of_vat]
optional

Wordt de BTW verlegd naar Belgische klant? Enkel te gebruiken bij verkopen aan Belgische klanten

Validations:

  • Must be one of: 0, 1.

sale[sales_type_id]
optional

Product type ID => Goederen: 1, Diensten: 2, OSS Diensten: 3, OSS Goederen. Verplicht indien klant buiten Belgiƫ gelegen is

Validations:

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

sale[sales_category_id]
optional

De ID van de verkoopcategorie indien het gebruik van verkoopcategoriƫn is geactiveerd

Validations:

  • Must be a Integer

sale[description]
optional

Omschrijving voor boekhouding

Validations:

  • Must be a String

sale[abc_sale]
optional

Driehoeksverkeer? Enkel in te vullen bij verkoop van goederen naar klant in ander EU land. => Transport van verkoper (=jij) naar klant:0, Transport van jouw leverancier direct naar klant (driehoeksverkeer): 1

Validations:

  • Must be one of: 0, 1.

sale[uploaded_attachment_attributes]
optional

Optionele bijlage die u aan de verkoop toevoegt

Validations:

  • Must be an Array of nested elements

sale[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