POST
/
accounting
/
items
curl --request POST \
  --url https://api.maesn.dev/accounting/items \
  --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",
  "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",
    "unitName": "PIECE",
    "unitPurchasePrice": "10",
    "unitSalesPrice": "20.5",
    "priceIncludesTax": true
  }
}

Test Api token:

663222ee

Test Account token:

85b30b51

Field support per integration

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Query Parameters

environmentName
string

Environment Name

companyId
string

Company Id

Body

application/json
name
string
required
itemNumber
string
stockCount
number
type
enum<string>
Available options:
PRODUCT,
SERVICE
unitName
enum<string>
Available options:
PIECE,
HOUR,
KILOGRAM
unitPurchasePrice
number
unitSalesPrice
number
priceIncludesTax
boolean
incomeAccountRef
string
expenseAccountRef
string
inventoryStartDate
string
assetAccountRef
string

Response

200 - application/json
meta
object
data
object