Product Docs Help

articles

/articles GET

GET method/articles

List all articles

Responses

[ { "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" } ]

/articles POST

POST method/articles

Create a new article

Request parameters

{ "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" }

Responses

{ "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" }

Delete multiple articles

DELETE method/articles

Remove more than one article

Request parameters

[ 10000, 10000 ]

Responses

{ "result": "Removed", "count": 2 }

/articles/count GET

GET method/articles/count

Count articles

Responses

{ "count": 7 }

/articles/{id} GET

GET method/articles/{id}

Get the article for the given id

Request parameters

Responses

{ "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" }

/articles/{id} DELETE

DELETE method/articles/{id}

Delete an article

Request parameters

Responses

{ "status": "DELETED", "query_id": 1000 }

/articles/{id} PATCH

PATCH method/articles/{id}

Update an article

Request parameters

{ "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" }

Responses

{ "mexcParamvaluesetsid": "123456", "date": "2022-12-21T12:00Z", "articlenr": "abc123", "articlename": "Basic article", "articlegroup": "Basic", "price": 123.45, "vat": "25", "unit": "st", "currency": "SEK", "mexcModulesid": 12345, "mm3servicesid": 12345, "changedate": "2022-12-21T12:00Z", "status": "ACTIVE", "name2": "Additional name", "workcostenabled": "example", "stock": 123, "pricelist": "example" }
Last modified: 13 September 2024