API Documentation

  • Home
  • ChangeLog
  • Terms of use
  • Swagger UI
  • 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

Country -> GetCountryByID

Returns a country for its id.

Request

Relative request path: api/orgs/{organisationId}/countries/{countryId}

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
organisationIdorganisation id
countryIdcountry id

Request parameters:

  • long organisationId - organisation id
  • long countryId - country id

Request parameters:

  • Int64 organisationId - organisation id
  • Int64 countryId - country id

Request parameters:

  • Long organisationId - organisation id
  • Long countryId - country id

Response

  • Description
  • CS
  • PHP
  • Java

PropertyDescription
CountryIdCountry id.
CodeCountry code.
NameCountry name.
Currencyclass Currency. Country currency.

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

    /// Country details.
    public class Country
    {
        // Country id.
        // Ignored on create request.
        public long CountryId { get; set; }
        // Country code.
        public string Code { get; set; }
        // Country name.
        public string Name { get; set; }
        // Country currency.
        public mMApiFkField Currency { 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.Country.Country'.

    /// Country details.
    class Country
    {
        // Country id.
        // Ignored on create request.
        public $CountryId;
        // Country code.
        public $Code;
        // Country name.
        public $Name;
        // Country currency.
        public $Currency;
    
    }

        /// 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.Country.Country'.

    /// Country details.
    public class Country
    {
        // Country id.
        // Ignored on create request.
        public Long CountryId;
        // Country code.
        public String Code;
        // Country name.
        public String Name;
        // Country currency.
        public mMApiFkField Currency;
    
    }

        /// 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.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