Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- Bill Lines
- Bookings
- Booking Proposals
- Contacts
- Customers
- Dimensions
- Expenses
- Files
- Invoices
- Invoice Lines
- Items
- Journals
- Journal Entries
- Offers
- Offer Lines
- Payments
- Payment Terms
- Projects
- Sales Orders
- Sales Order Lines
- Suppliers
- Tax Rates
- Transactions
- Vendor Credits
- Authentication
- Tenant Management
- User
Items
Patch item
PATCH
/
accounting
/
items
/
{itemId}
curl --request PATCH \
--url https://api.maesn.dev/accounting/items/{itemId} \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"name": "Item name",
"itemNumber": "12345-A",
"stockCount": "11",
"type": "PRODUCT",
"taxCode": "TAX19",
"taxRatePercentage": "19",
"unitName": "PIECE",
"unitPurchasePrice": "10",
"unitSalesPrice": "20.5",
"priceIncludesTax": false,
"incomeAccountRef": "123",
"expenseAccountRef": "123",
"inventoryStartDate": "2021-01-01",
"assetAccountRef": "123"
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "Item id",
"name": "Item name",
"itemNumber": "12345-A",
"stockCount": "11",
"type": "PRODUCT",
"taxCode": "TAX19",
"taxRatePercentage": "19",
"unitName": "PIECE",
"unitPurchasePrice": "10",
"unitSalesPrice": "20.5",
"priceIncludesTax": true
}
}
Field support per integration
If you’re not using the Interactive Authentication Flow, make sure the query parameters environmentName
and companyId
are correctly populated.
You can obtain these values by using the GET Environments
and GET Companies
endpoints available under the Authentication section.
Supported Request Parameters:
Available options: PRODUCT
, SERVICE
Path Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.maesn.dev/accounting/items/{itemId} \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"name": "Item name",
"itemNumber": "12345-A",
"stockCount": "11",
"type": "PRODUCT",
"taxCode": "TAX19",
"taxRatePercentage": "19",
"unitName": "PIECE",
"unitPurchasePrice": "10",
"unitSalesPrice": "20.5",
"priceIncludesTax": false,
"incomeAccountRef": "123",
"expenseAccountRef": "123",
"inventoryStartDate": "2021-01-01",
"assetAccountRef": "123"
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "Item id",
"name": "Item name",
"itemNumber": "12345-A",
"stockCount": "11",
"type": "PRODUCT",
"taxCode": "TAX19",
"taxRatePercentage": "19",
"unitName": "PIECE",
"unitPurchasePrice": "10",
"unitSalesPrice": "20.5",
"priceIncludesTax": true
}
}