VismaBouwsoftAPICalls.v1_POST_PurchaseInvoiceProjects Method
v1_POST_PurchaseInvoiceProjects() as String

This API call is used to add a(n) PurchaseInvoiceProject

General Description

HTTP method API version
POST v1

Don’t forget to put the Authorization field in the header

API Path: /PurchaseInvoiceProjects
or

Fields

The following fields are available:

Field Name Type
id Number
purchaseinvoice_id Number
purchaseinvoice_nr Number
purchaseinvoice_nr_supplier String
address_supplier_id Number
address_supplier_name String
project_id Number
project_pnr Number
project_unr Number
project_name String
project_yourreference String
actualcostitem_id Number
actualcostitem_nr String
actualcostitem_name String
job_id Number
job_code String
job_name String
amount Number
type String
type_localized String
type_id Number
note String
purchaseinvoice_linkedinvoice_id Number
purchaseinvoice_linkedinvoice_nr Number
purchaseinvoice_linkedinvoice_nr_supplier String

/PurchaseInvoiceProjects

API Path: /PurchaseInvoiceProjects/

If everything succeeds the HTTP response status is 201
(201 CREATED)

If you forget to send the Authorization, the response status and code is 401
(401 Unauthorized)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/PurchaseInvoiceProjects

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: PbffWxfDbmzSftlbtfzRqkDVfGGGfGObflAkzOfOUfmGtAVAbl

Query Parameters :
ParameterName: columns, ParameterValue: purchaseinvoice_id=884,project_pnr=2013086,amount=80.55

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 487,
    "purchaseinvoice_id": 884,
    "purchaseinvoice_nr": 202000122,
    "purchaseinvoice_nr_supplier": "",
    "address_supplier_id": 328892,
    "address_supplier_name": "DirkAPISupp",
    "project_id": 3149,
    "project_pnr": 2013086,
    "project_unr": 1275,
    "project_name": "Schilderen van API blokjes",
    "project_yourreference": "",
    "actualcostitem_id": 2576,
    "actualcostitem_nr": "",
    "actualcostitem_name": "Volledig Project",
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "amount": 80.549999999999997,
    "type": "subcontractor",
    "type_localized": "Sub-contractor",
    "type_id": 0,
    "note": "",
    "purchaseinvoice_linkedinvoice_id": 0,
    "purchaseinvoice_linkedinvoice_nr": 0,
    "purchaseinvoice_linkedinvoice_nr_supplier": ""
  }
]
}