API Documentation

  • Home
  • ChangeLog
  • Terms of use
  • Account
  • Address
  • Analytic
  • BankAccount
  • Contact
  • Country
  • Currency
  • Customer
  • Dashboard
  • Document
  • DocumentNumbering
  • Employee
  • ExchangeRate
  • Inbox
  • IssuedInvoice
  • IssuedInvoicePosting
  • Item
  • Journal
  • JournalType
  • Order
  • Organisation
  • Outbox
  • PaymentMethod
  • PayrollSettings
  • PostalCode
  • ProductGroup
  • PurposeCode
  • ReceivedInvoice
  • ReportTemplate
  • Stock
  • StockEntry
  • User
  • VatAccountingType
  • VatRate
  • Warehouse

Item -> AddItem

Adds a new item.

Request

Relative request path: api/orgs/{organisationId}/items

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
organisationIdorganisation id
itemitem

Request parameters:

  • long organisationId - organisation id
  • Item item - item

    /// Item details.
    public class Item
    {
        // Item id.
        // Mandatory field. Ignored on create request.
        public long ItemId { get; set; }
        // Item name.
        // Mandatory field. Max length: 250
        public string Name { get; set; }
        // Item code.
        // Max length: 30
        public string Code { get; set; }
        // EAN code.
        // Max length: 30
        public string EANCode { get; set; }
        // Item description.
        // Max length: 8000
        public string Description { get; set; }
        // <br />Item type:
        // <ul>
        //     <li>B – Goods,</li>
        //     <li>M – Material,</li>
        //     <li>P - Semifinished product,</li>
        //     <li>I – Product,</li>
        //     <li>S – Services,</li>
        //     <li>A - Advance payment,</li>
        //     <li>AS - Pre payments for services</li>
        // </ul>

        // Mandatory field. Max length: 2
        public string ItemType { get; set; }
        // Defines whether are stocks managed only by quantity.
        // <ul>
        //     <li>N - stocks are managed by quantity and value</li>
        //     <li>D - stocks are managed only by quantity</li>
        // </ul>
        // <br />
        // Default value: N.

        // Max length: 2
        public string StocksManagedOnlyByQuantity { get; set; }
        // Item unit of measurement.
        // Max length: 3
        public string UnitOfMeasurement { get; set; }
        // Mass per unit.
        public Decimal MassPerUnit { get; set; }
        // Item product group.
        public mMApiFkField ProductGroup { get; set; }
        // Item VAT rate.
        public mMApiFkField VatRate { get; set; }
        // Item selling price.
        public Decimal Price { get; set; }
        // Margin percent.
        public Decimal RebatePercent { get; set; }
        // Usage:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public string Usage { get; set; }
        // Selling price currency.
        public mMApiFkField Currency { get; set; }
        // SerialNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public string SerialNumbers { get; set; }
        // BatchNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public string BatchNumbers { get; set; }
        // Domestic market revenue account.
        public mMApiFkField RevenueAccountDomestic { get; set; }
        // Revenue account for EU markets.
        public mMApiFkField RevenueAccountEU { get; set; }
        // Revenue account outside EU markets.
        public mMApiFkField RevenueAccountOutsideEU { get; set; }
        // Stock account.
        public mMApiFkField StocksAccount { get; set; }
        // Article relief by composite when issuing from warehouse:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Ignored on create request. Max length: 1
        public string ReliefByCompositeFromWarehouse { get; set; }
        public DateTime RecordDtModified { get; set; }
        // Row version is used for concurrency check.
        // Mandatory field. Ignored on create request.
        public string RowVersion { get; set; }
    
    }

        /// Link with id, name and url to related data.
        public class mMApiFkField
        {
            // Record id.
            public long? ID { get; set; }
            // Record name.
            public string Name { get; private set; }
            // Url to full record details.
            public string ResourceUrl { get; private set; }
        
        }

Request parameters:

  • Int64 organisationId - organisation id
  • Item item - item

    /// Item details.
    class Item
    {
        // Item id.
        // Mandatory field. Ignored on create request.
        public $ItemId;
        // Item name.
        // Mandatory field. Max length: 250
        public $Name;
        // Item code.
        // Max length: 30
        public $Code;
        // EAN code.
        // Max length: 30
        public $EANCode;
        // Item description.
        // Max length: 8000
        public $Description;
        // <br />Item type:
        // <ul>
        //     <li>B – Goods,</li>
        //     <li>M – Material,</li>
        //     <li>P - Semifinished product,</li>
        //     <li>I – Product,</li>
        //     <li>S – Services,</li>
        //     <li>A - Advance payment,</li>
        //     <li>AS - Pre payments for services</li>
        // </ul>

        // Mandatory field. Max length: 2
        public $ItemType;
        // Defines whether are stocks managed only by quantity.
        // <ul>
        //     <li>N - stocks are managed by quantity and value</li>
        //     <li>D - stocks are managed only by quantity</li>
        // </ul>
        // <br />
        // Default value: N.

        // Max length: 2
        public $StocksManagedOnlyByQuantity;
        // Item unit of measurement.
        // Max length: 3
        public $UnitOfMeasurement;
        // Mass per unit.
        public $MassPerUnit;
        // Item product group.
        public $ProductGroup;
        // Item VAT rate.
        public $VatRate;
        // Item selling price.
        public $Price;
        // Margin percent.
        public $RebatePercent;
        // Usage:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public $Usage;
        // Selling price currency.
        public $Currency;
        // SerialNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public $SerialNumbers;
        // BatchNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public $BatchNumbers;
        // Domestic market revenue account.
        public $RevenueAccountDomestic;
        // Revenue account for EU markets.
        public $RevenueAccountEU;
        // Revenue account outside EU markets.
        public $RevenueAccountOutsideEU;
        // Stock account.
        public $StocksAccount;
        // Article relief by composite when issuing from warehouse:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Ignored on create request. Max length: 1
        public $ReliefByCompositeFromWarehouse;
        public $RecordDtModified;
        // Row version is used for concurrency check.
        // Mandatory field. Ignored on create request.
        public $RowVersion;
    
    }

        /// Link with id, name and url to related data.
        class mMApiFkField
        {
            // Record id.
            public $ID;
            // Record name.
            public $Name;
            // Url to full record details.
            public $ResourceUrl;
        
        }

Request parameters:

  • Long organisationId - organisation id
  • Item item - item

    /// Item details.
    public class Item
    {
        // Item id.
        // Mandatory field. Ignored on create request.
        public Long ItemId;
        // Item name.
        // Mandatory field. Max length: 250
        public String Name;
        // Item code.
        // Max length: 30
        public String Code;
        // EAN code.
        // Max length: 30
        public String EANCode;
        // Item description.
        // Max length: 8000
        public String Description;
        // <br />Item type:
        // <ul>
        //     <li>B – Goods,</li>
        //     <li>M – Material,</li>
        //     <li>P - Semifinished product,</li>
        //     <li>I – Product,</li>
        //     <li>S – Services,</li>
        //     <li>A - Advance payment,</li>
        //     <li>AS - Pre payments for services</li>
        // </ul>

        // Mandatory field. Max length: 2
        public String ItemType;
        // Defines whether are stocks managed only by quantity.
        // <ul>
        //     <li>N - stocks are managed by quantity and value</li>
        //     <li>D - stocks are managed only by quantity</li>
        // </ul>
        // <br />
        // Default value: N.

        // Max length: 2
        public String StocksManagedOnlyByQuantity;
        // Item unit of measurement.
        // Max length: 3
        public String UnitOfMeasurement;
        // Mass per unit.
        public Double MassPerUnit;
        // Item product group.
        public mMApiFkField ProductGroup;
        // Item VAT rate.
        public mMApiFkField VatRate;
        // Item selling price.
        public Double Price;
        // Margin percent.
        public Double RebatePercent;
        // Usage:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public String Usage;
        // Selling price currency.
        public mMApiFkField Currency;
        // SerialNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public String SerialNumbers;
        // BatchNumbers:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Max length: 1
        public String BatchNumbers;
        // Domestic market revenue account.
        public mMApiFkField RevenueAccountDomestic;
        // Revenue account for EU markets.
        public mMApiFkField RevenueAccountEU;
        // Revenue account outside EU markets.
        public mMApiFkField RevenueAccountOutsideEU;
        // Stock account.
        public mMApiFkField StocksAccount;
        // Article relief by composite when issuing from warehouse:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        // Ignored on create request. Max length: 1
        public String ReliefByCompositeFromWarehouse;
        public Date RecordDtModified;
        // Row version is used for concurrency check.
        // Mandatory field. Ignored on create request.
        public String RowVersion;
    
    }

        /// Link with id, name and url to related data.
        public class mMApiFkField
        {
            // Record id.
            public Long ID;
            // Record name.
            public String Name;
            // Url to full record details.
            public String ResourceUrl;
        
        }

Response

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
Version
Content
StatusCode
ReasonPhrase
Headers
RequestMessage
IsSuccessStatusCode

This method returns result of type 'HttpResponseMessage'.

This method returns result of type 'HttpResponseMessage'.

This method returns result of type 'HttpResponseMessage'.

 
Authorization endpoint : https://moj.minimax.si/SI/AUT/OAuth20
Token endpoint           : https://moj.minimax.si/SI/AUT/OAuth20/Token
Return url                   : https://moj.minimax.si/SI/API/Help/TestClientDialogsAuth
 
URI parameters
=
Headers | Add custom header
: Delete
Body
Samples:
Status
Headers
            
        
Body