Skip to content

Accounting (2.0.0)

The 'Accounting' application of the Core API

Languages
Servers
https://{environment}.pigello.io

Articlecategory

Operations

Articleaccountoverride

Operations

Spacecategorydimensionvalue

Operations

Dimensionconfiguration

Operations

Verification

Operations

Bookkeepingexportfile

Operations

Verificationgroup

Operations

Transaction

Operations

Automaticvacancyinvoicingsetting

Operations

Vacancyinvoice

Operations

Vacancyinvoicerow

Operations

Bookkeepingaccountsconfig

Operations

Paymentmethod

Operations

Autogiropayerconnection

Operations

Autogirostatus

Operations

Coinvoicenotation

Operations

Invoicerow

Operations

Bulk write 'Invoicerow'

Request

Security
customer_id and application_id and service_id and service_version_id and client_ct and client_object_id and client_secret
Bodyapplication/jsonArray [
unit_amountnumber(float)required
used_article_accountinteger(int32)[ 1000 .. 9999 ]required
unit_pricenumber(float)required
invoiceobject(Invoice)required
invoice.​idstring(uuid)
titlestring<= 255 charactersrequired
vatinteger(int32)[ -2147483648 .. 2147483647 ]required
Enum025126
period_startstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_end

period_endstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_start

unitstring or null<= 255 characters
custom_idstring or null<= 128 characters
accounted_start_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_end_date

This value must be set together with the following fields: accounted_end_date

originates_from_content_typeobject or null(Contenttype)

Additional Validation Information:

This value must be set together with the following fields: originates_from_object_id

dimensionsArray of objects or null
rot_rut_work_hoursinteger(int32)<= 2147483647
rut_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456789
rot_rut_material_valuenumber(float)
articleobject or null(Article)
rot_rut_work_valuenumber(float)
display_orderinteger or null(int32)[ -2147483648 .. 2147483647 ]
rot_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456
organizationobject or null(Organization)
originates_from_object_idstring or null(uuid)

Additional Validation Information:

This value must be set together with the following fields: originates_from_content_type

accounted_end_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_start_date

This value must be set together with the following fields: accounted_start_date

]
curl -i -X POST \
  https://dev.api.pigello.io/accounting/invoices/invoicerow/list/ \
  -H 'Content-Type: application/json' \
  -H 'X-PIGELLO-APPLICATION-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-CT: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-ENTITY: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-SECRET: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CUSTOMER-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-VERSION-ID: YOUR_API_KEY_HERE' \
  -d '[
    {
      "unit": "string",
      "custom_id": "string",
      "unit_amount": 0.1,
      "used_article_account": 1000,
      "accounted_start_date": "2019-08-24",
      "originates_from_content_type": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      },
      "unit_price": 0.1,
      "dimensions": [
        null
      ],
      "rot_rut_work_hours": 2147483647,
      "invoice": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      },
      "rut_kind": 0,
      "rot_rut_material_value": 0.1,
      "title": "string",
      "vat": 0,
      "article": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      },
      "rot_rut_work_value": 0.1,
      "period_start": "2019-08-24",
      "display_order": -2147483648,
      "rot_kind": 0,
      "period_end": "2019-08-24",
      "organization": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      },
      "originates_from_object_id": "38c62b3a-0e8c-45fc-8177-89a1e595e218",
      "accounted_end_date": "2019-08-24"
    }
  ]'

Responses

Successful bulk create/update

Bodyapplication/jsonArray [
unit_amountnumber(float)required
used_article_accountinteger(int32)[ 1000 .. 9999 ]required
idstring(uuid)read-onlyrequired

Additional Validation Information:

Must be unique

unit_pricenumber(float)required
invoiceobject(Invoice)required
invoice.​idstring(uuid)
titlestring<= 255 charactersrequired
vatinteger(int32)[ -2147483648 .. 2147483647 ]required
Enum025126
period_startstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_end

period_endstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_start

unitstring or null<= 255 characters
custom_idstring or null<= 128 characters
accounted_start_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_end_date

This value must be set together with the following fields: accounted_end_date

originates_from_content_typeobject or null(Contenttype)

Additional Validation Information:

This value must be set together with the following fields: originates_from_object_id

dimensionsArray of objects or null
rot_rut_work_hoursinteger(int32)<= 2147483647
created_atstring(date-time)read-only
rut_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456789
rot_rut_material_valuenumber(float)
articleobject or null(Article)
rot_rut_work_valuenumber(float)
display_orderinteger or null(int32)[ -2147483648 .. 2147483647 ]
rot_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456
organizationobject or null(Organization)
originates_from_object_idstring or null(uuid)

Additional Validation Information:

This value must be set together with the following fields: originates_from_content_type

accounted_end_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_start_date

This value must be set together with the following fields: accounted_start_date

]
Response
application/json
[ { "unit": "string", "custom_id": "string", "unit_amount": 0.1, "used_article_account": 1000, "accounted_start_date": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "originates_from_content_type": {}, "unit_price": 0.1, "dimensions": [], "rot_rut_work_hours": 2147483647, "created_at": "2019-08-24T14:15:22Z", "invoice": {}, "rut_kind": 0, "rot_rut_material_value": 0.1, "title": "string", "vat": 0, "article": {}, "rot_rut_work_value": 0.1, "period_start": "2019-08-24", "display_order": -2147483648, "rot_kind": 0, "period_end": "2019-08-24", "organization": {}, "originates_from_object_id": "38c62b3a-0e8c-45fc-8177-89a1e595e218", "accounted_end_date": "2019-08-24" } ]

Create 'Invoicerow'

Request

Security
customer_id and application_id and service_id and service_version_id and client_ct and client_object_id and client_secret
Bodyapplication/json
unit_amountnumber(float)required
used_article_accountinteger(int32)[ 1000 .. 9999 ]required
unit_pricenumber(float)required
invoiceobject(Invoice)required
invoice.​idstring(uuid)
titlestring<= 255 charactersrequired
vatinteger(int32)[ -2147483648 .. 2147483647 ]required
Enum025126
period_startstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_end

period_endstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_start

unitstring or null<= 255 characters
custom_idstring or null<= 128 characters
accounted_start_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_end_date

This value must be set together with the following fields: accounted_end_date

originates_from_content_typeobject or null(Contenttype)

Additional Validation Information:

This value must be set together with the following fields: originates_from_object_id

dimensionsArray of objects or null
rot_rut_work_hoursinteger(int32)<= 2147483647
rut_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456789
rot_rut_material_valuenumber(float)
articleobject or null(Article)
rot_rut_work_valuenumber(float)
display_orderinteger or null(int32)[ -2147483648 .. 2147483647 ]
rot_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456
organizationobject or null(Organization)
originates_from_object_idstring or null(uuid)

Additional Validation Information:

This value must be set together with the following fields: originates_from_content_type

accounted_end_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_start_date

This value must be set together with the following fields: accounted_start_date

curl -i -X POST \
  https://dev.api.pigello.io/accounting/invoices/invoicerow/ \
  -H 'Content-Type: application/json' \
  -H 'X-PIGELLO-APPLICATION-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-CT: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-ENTITY: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CLIENT-SECRET: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-CUSTOMER-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-ID: YOUR_API_KEY_HERE' \
  -H 'X-PIGELLO-SERVICE-VERSION-ID: YOUR_API_KEY_HERE' \
  -d '{
    "unit": "string",
    "custom_id": "string",
    "unit_amount": 0.1,
    "used_article_account": 1000,
    "accounted_start_date": "2019-08-24",
    "originates_from_content_type": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "unit_price": 0.1,
    "dimensions": [
      null
    ],
    "rot_rut_work_hours": 2147483647,
    "invoice": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "rut_kind": 0,
    "rot_rut_material_value": 0.1,
    "title": "string",
    "vat": 0,
    "article": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "rot_rut_work_value": 0.1,
    "period_start": "2019-08-24",
    "display_order": -2147483648,
    "rot_kind": 0,
    "period_end": "2019-08-24",
    "organization": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    },
    "originates_from_object_id": "38c62b3a-0e8c-45fc-8177-89a1e595e218",
    "accounted_end_date": "2019-08-24"
  }'

Responses

Successful creation

Bodyapplication/json
unit_amountnumber(float)required
used_article_accountinteger(int32)[ 1000 .. 9999 ]required
idstring(uuid)read-onlyrequired

Additional Validation Information:

Must be unique

unit_pricenumber(float)required
invoiceobject(Invoice)required
invoice.​idstring(uuid)
titlestring<= 255 charactersrequired
vatinteger(int32)[ -2147483648 .. 2147483647 ]required
Enum025126
period_startstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_end

period_endstring(date)required

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: period_start

unitstring or null<= 255 characters
custom_idstring or null<= 128 characters
accounted_start_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_end_date

This value must be set together with the following fields: accounted_end_date

originates_from_content_typeobject or null(Contenttype)

Additional Validation Information:

This value must be set together with the following fields: originates_from_object_id

dimensionsArray of objects or null
rot_rut_work_hoursinteger(int32)<= 2147483647
created_atstring(date-time)read-only
rut_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456789
rot_rut_material_valuenumber(float)
articleobject or null(Article)
rot_rut_work_valuenumber(float)
display_orderinteger or null(int32)[ -2147483648 .. 2147483647 ]
rot_kindinteger or null(int32)[ -2147483648 .. 2147483647 ]
Enum0123456
organizationobject or null(Organization)
originates_from_object_idstring or null(uuid)

Additional Validation Information:

This value must be set together with the following fields: originates_from_content_type

accounted_end_datestring or null(date)

Additional Validation Information:

This value must be set in an proper order, in relation to the following fields: accounted_start_date

This value must be set together with the following fields: accounted_start_date

Response
application/json
{ "unit": "string", "custom_id": "string", "unit_amount": 0.1, "used_article_account": 1000, "accounted_start_date": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "originates_from_content_type": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "unit_price": 0.1, "dimensions": [ null ], "rot_rut_work_hours": 2147483647, "created_at": "2019-08-24T14:15:22Z", "invoice": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "rut_kind": 0, "rot_rut_material_value": 0.1, "title": "string", "vat": 0, "article": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "rot_rut_work_value": 0.1, "period_start": "2019-08-24", "display_order": -2147483648, "rot_kind": 0, "period_end": "2019-08-24", "organization": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "originates_from_object_id": "38c62b3a-0e8c-45fc-8177-89a1e595e218", "accounted_end_date": "2019-08-24" }

Invoicerecipient

Operations

Invoicepayment

Operations

Debtinvoiceevent

Operations

Debtinvoice

Operations

Invoicerelatedpdfconfiguration

Operations

Invoicerelatedpdffile

Operations

Invoicecreditationconnection

Operations

Automaticcontractinvoicingsetting

Operations

Contractinvoicecontent

Operations

Paymenttermssetting

Operations