API Documentation

  • Home
  • ChangeLog
  • Terms of use
  • Swagger UI
  • Account
  • Address
  • Analytic
  • BankAccount
  • ClassificationOfProductByActivity
  • 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 -> GetItem

Returns an item.

Request

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

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
organisationIdorganisation id
itemId

Request parameters:

  • long organisationId - organisation id
  • long itemId -

Request parameters:

  • Int64 organisationId - organisation id
  • Int64 itemId -

Request parameters:

  • Long organisationId - organisation id
  • Long itemId -

Response

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
ItemIdItem id.
NameItem name.
CodeItem code.
EANCodeEAN code.
DescriptionItem description.
ItemTypePossible values: (B, M, P, I, S, A, AS).
Item type:
  • B – Goods,
  • M – Material,
  • P - Semifinished product,
  • I – Product,
  • S – Services,
  • A - Advance payment,
  • AS - Pre payments for services
StocksManagedOnlyByQuantityPossible values: (D, N). Defines whether are stocks managed only by quantity.
  • N - stocks are managed by quantity and value
  • D - stocks are managed only by quantity

Default value: N.
CalculationOfConsumptionTaxPossible values: (D, N). Defines whether consumption tax for an item is calculated or not
  • N – consumption tax is not calculated
  • D - consumption tax is calculated

Default value: N.
UnitOfMeasurementItem unit of measurement.
MassPerUnitMass per unit.
ProductGroupclass ProductGroup. Item product group.
ClassificationOfProductByActivityclass ClassificationOfProductByActivity. Classification of product by activity
VatRateclass VatRate. Item VAT rate.
PriceItem selling price.
RebatePercentMargin percent.
UsagePossible values: (D, N). Usage:
  • D – yes,
  • N – no.
Currencyclass Currency. Selling price currency.
SerialNumbersPossible values: (D, N). SerialNumbers:
  • D – yes,
  • N – no.
BatchNumbersPossible values: (D, N). BatchNumbers:
  • D – yes,
  • N – no.
RevenueAccountDomesticclass Account. Domestic market revenue account.
RevenueAccountEUclass Account. Revenue account for EU markets.
RevenueAccountOutsideEUclass Account. Revenue account outside EU markets.
StocksAccountclass Account. Stock account.
ReliefByCompositeFromWarehousePossible values: (D, N). Article relief by composite when issuing from warehouse:
  • D – yes,
  • N – no.
ReliefByCompositeFromIssuedInvoicePossible values: (D, N). Article relief by composite from issued invoice:
  • D – yes,
  • N – no.
CompositeComposite rows. List of ItemComposite.
PackagingDepositReturnQuantityPackaging quantity for deposit return.
RecordDtModified
RowVersionRow version is used for concurrency check.

This method returns result of type 'SAOP.API.Models.Item.Item'.

    /// Item details.
    public class Item
    {
        // Item id.
        // Ignored on create request.
        public long ItemId { get; set; }
        // Item name.
        public string Name { get; set; }
        // Item code.
        public string Code { get; set; }
        // EAN code.
        public string EANCode { get; set; }
        // Item description.
        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>

        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.

        public string StocksManagedOnlyByQuantity { get; set; }
        // Defines whether consumption tax for an item is calculated or not
        // <ul>
        //     <li>N – consumption tax is not calculated</li>
        //     <li>D - consumption tax is calculated</li>
        // </ul>
        // <br />
        // Default value: N.

        public string CalculationOfConsumptionTax { get; set; }
        // Item unit of measurement.
        public string UnitOfMeasurement { get; set; }
        // Mass per unit.
        public Decimal MassPerUnit { get; set; }
        // Item product group.
        public mMApiFkField ProductGroup { get; set; }
        // Classification of product by activity
        public mMApiFkField ClassificationOfProductByActivity { 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>

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

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

        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>

        public string ReliefByCompositeFromWarehouse { get; set; }
        // Article relief by composite from issued invoice:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        public string ReliefByCompositeFromIssuedInvoice { get; set; }
        // Composite rows.
        public List<ItemComposite> Composite { get; set; }
        // Packaging quantity for deposit return.
        public int PackagingDepositReturnQuantity { get; set; }
        public DateTime RecordDtModified { get; set; }
        // Row version is used for concurrency check.
        // 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; }
        
        }
        /// Returns items title, code, price and unit of measurement for the given item
        public class ItemComposite
        {
            // Item id.
            public mMApiFkField Item { get; set; }
            // Quantity.
            public Decimal Quantity { 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; }
            
            }

This method returns result of type 'SAOP.API.Models.Item.Item'.

    /// Item details.
    class Item
    {
        // Item id.
        // Ignored on create request.
        public $ItemId;
        // Item name.
        public $Name;
        // Item code.
        public $Code;
        // EAN code.
        public $EANCode;
        // Item description.
        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>

        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.

        public $StocksManagedOnlyByQuantity;
        // Defines whether consumption tax for an item is calculated or not
        // <ul>
        //     <li>N – consumption tax is not calculated</li>
        //     <li>D - consumption tax is calculated</li>
        // </ul>
        // <br />
        // Default value: N.

        public $CalculationOfConsumptionTax;
        // Item unit of measurement.
        public $UnitOfMeasurement;
        // Mass per unit.
        public $MassPerUnit;
        // Item product group.
        public $ProductGroup;
        // Classification of product by activity
        public $ClassificationOfProductByActivity;
        // 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>

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

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

        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>

        public $ReliefByCompositeFromWarehouse;
        // Article relief by composite from issued invoice:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        public $ReliefByCompositeFromIssuedInvoice;
        // Composite rows.
        public $Composite;
        // Packaging quantity for deposit return.
        public $PackagingDepositReturnQuantity;
        public $RecordDtModified;
        // Row version is used for concurrency check.
        // 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;
        
        }
        /// Returns items title, code, price and unit of measurement for the given item
        class ItemComposite
        {
            // Item id.
            public $Item;
            // Quantity.
            public $Quantity;
        
        }

            /// 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;
            
            }

This method returns result of type 'SAOP.API.Models.Item.Item'.

    /// Item details.
    public class Item
    {
        // Item id.
        // Ignored on create request.
        public Long ItemId;
        // Item name.
        public String Name;
        // Item code.
        public String Code;
        // EAN code.
        public String EANCode;
        // Item description.
        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>

        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.

        public String StocksManagedOnlyByQuantity;
        // Defines whether consumption tax for an item is calculated or not
        // <ul>
        //     <li>N – consumption tax is not calculated</li>
        //     <li>D - consumption tax is calculated</li>
        // </ul>
        // <br />
        // Default value: N.

        public String CalculationOfConsumptionTax;
        // Item unit of measurement.
        public String UnitOfMeasurement;
        // Mass per unit.
        public Double MassPerUnit;
        // Item product group.
        public mMApiFkField ProductGroup;
        // Classification of product by activity
        public mMApiFkField ClassificationOfProductByActivity;
        // 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>

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

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

        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>

        public String ReliefByCompositeFromWarehouse;
        // Article relief by composite from issued invoice:
        // <ul>
        //     <li>D – yes,</li>
        //     <li>N – no.</li>
        // </ul>

        public String ReliefByCompositeFromIssuedInvoice;
        // Composite rows.
        public List<ItemComposite> Composite;
        // Packaging quantity for deposit return.
        public Integer PackagingDepositReturnQuantity;
        public Date RecordDtModified;
        // Row version is used for concurrency check.
        // 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;
        
        }
        /// Returns items title, code, price and unit of measurement for the given item
        public class ItemComposite
        {
            // Item id.
            public mMApiFkField Item;
            // Quantity.
            public Double Quantity;
        
        }

            /// 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;
            
            }

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