Create item
documentedInsert an inventory item.
POST /ItemItemsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.saasu.com/Item?FileId={{SAASU_FILE_ID}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Code": "{{$code}}", "Description": "{{$description}}", "Type": "I", "IsActive": true, "IsInventoried": {{$is_inventoried}}, "AssetAccountId": {{$asset_account_id}}, "IsSold": {{$is_sold}}, "SaleIncomeAccountId": {{$sale_income_account_id}}, "SaleTaxCodeId": {{$sale_tax_code_id}}, "SaleCoSAccountId": {{$sale_cos_account_id}}, "IsBought": {{$is_bought}}, "PurchaseExpenseAccountId": {{$purchase_expense_account_id}}, "PurchaseTaxCodeId": {{$purchase_tax_code_id}}, "MinimumStockLevel": {{$minimum_stock_level}}, "SellingPrice": {{$selling_price}}, "IsSellingPriceIncTax": {{$is_selling_price_inc_tax}}, "PrimarySupplierContactId": {{$primary_supplier_contact_id}}, "PrimarySupplierItemCode": "{{$primary_supplier_item_code}}"}'