Jump to content

carvic

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by carvic

  1. I managed to get all Ids now by doing alot of manual work.

    I set the currency to all different currencies, one at a time, for an account. Then got the Id from the account data using the API:.

    Here is the list if anyone needs it:

    [
            { id: 3, code: "ALL", name: "Albanua Lel" },
            { id: 5, code: "ARS", name: "Argentina Peso" },
            { id: 117, code: "AFL", name: "Aruban Florin" },
            { id: 7, code: "AUD", name: "Australia Dollar" },
            { id: 8, code: "AZN", name: "Azerbaijan New Manat" },
            { id: 127, code: "BHD", name: "Bahraini Dinar" },
            { id: 11, code: "BYR", name: "Belarus Ruble" },
            { id: 12, code: "BZD", name: "Belize Dollar" },
            { id: 2, code: "BOB", name: "Bolivia Boliviano" },
            { id: 17, code: "BRL", name: "Brazil Real" },
            { id: 18, code: "BND", name: "Brunei Darussalam Dollar" },
            { id: 16, code: "BGN", name: "Bulgaria Lev" },
            { id: 20, code: "CAD", name: "Canadian Dollar" },
            { id: 22, code: "CLP", name: "Chile Peso" },
            { id: 23, code: "CNY", name: "China Yuan Renminbi" },
            { id: 24, code: "COP", name: "Colombia Peso" },
            { id: 25, code: "CRC", name: "Costa Rica Colon" },
            { id: 26, code: "HRK", name: "Croatia Kuna" },
            { id: 28, code: "CZK", name: "Czech Republic Koruna" },
            { id: 29, code: "DKK", name: "Denmark Krone" },
            { id: 30, code: "DOP", name: "Dominican Republic Peso" },
            { id: 31, code: "XCD", name: "East Caribbean Dollar" },
            { id: 32, code: "EGP", name: "Egypt Pound" },
            { id: 33, code: "SVC", name: "El Salvador Colon" },
            { id: 34, code: "EEK", name: "Estonia Kroon" },
            { id: 35, code: "EUR", name: "Euro (€ 1,234.56)" },
            { id: 116, code: "EUR", name: "Euro (€ 1.234,56)" },
            { id: 40, code: "GTQ", name: "Guatemala Quetzal" },
            { id: 43, code: "NHL", name: "Honduras Lempira" },
            { id: 44, code: "HKD", name: "Hong Kong Dollar" },
            { id: 45, code: "HUF", name: "Hungary Forint" },
            { id: 46, code: "ISK", name: "Iceland Krona" },
            { id: 47, code: "INR", name: "India Rupee" },
            { id: 48, code: "IDR", name: "Indonesia Rupiah" },
            { id: 49, code: "IRR", name: "Iran Rial" },
            { id: 51, code: "ILS", name: "Israel Shekel" },
            { id: 52, code: "JMD", name: "Jamaica Dollar" },
            { id: 55, code: "JPY", name: "Japan Yen" },
            { id: 54, code: "KZT", name: "Kazakhstan Tenge" },
            { id: 115, code: "KES", name: "Kenyan Shilling" },
            { id: 56, code: "KPW", name: "Korea (North) Won" },
            { id: 57, code: "KRW", name: "Korea (South) Won" },
            { id: 60, code: "LVL", name: "Latvia Lat" },
            { id: 61, code: "LBP", name: "Lebanon Pound" },
            { id: 63, code: "LTL", name: "Lithuania Litas" },
            { id: 64, code: "MKD", name: "Macedonia Denar" },
            { id: 65, code: "MYR", name: "Malaysia Ringgit" },
            { id: 67, code: "MXN", name: "Mexico Peso" },
            { id: 68, code: "MNT", name: "Mongolia Tughrik" },
            { id: 120, code: "MFE", name: "Morisyen (Mauritius)" },
            { id: 72, code: "ANG", name: "Netherlands Antilles Guilder" },
            { id: 73, code: "NZD", name: "New Zealand Dollar" },
            { id: 74, code: "NIO", name: "Nicaragua Cordoba" },
            { id: 119, code: "NGN", name: "Nigerian Naira" },
            { id: 76, code: "NOK", name: "Norway Krone" },
            { id: 77, code: "OMR", name: "Oman Rial" },
            { id: 78, code: "PKR", name: "Pakistan Rupee" },
            { id: 79, code: "PAB", name: "Panama Balboa" },
            { id: 80, code: "PYG", name: "Paraguay Guarani" },
            { id: 81, code: "PEN", name: "Peru Nuevo Sol" },
            { id: 82, code: "PHP", name: "Philippines Peso" },
            { id: 83, code: "PLN", name: "Poland Zloty" },
            { id: 84, code: "QAR", name: "Qatar Riyal" },
            { id: 85, code: "RON", name: "Romania New Leu" },
            { id: 86, code: "RUB", name: "Russian Ruble" },
            { id: 88, code: "SAR", name: "Saudi Arabia Riyal" },
            { id: 89, code: "RSD", name: "Serbia Dinar" },
            { id: 91, code: "SGD", name: "Singapore Dollar" },
            { id: 94, code: "ZAR", name: "South Africa Rand" },
            { id: 96, code: "SEK", name: "Sweden Krona" },
            { id: 97, code: "CHF", name: "Switzerland Franc" },
            { id: 99, code: "SYP", name: "Syria Pound" },
            { id: 100, code: "TWD", name: "Taiwan New Dollar" },
            { id: 101, code: "THB", name: "Thailand Baht" },
            { id: 102, code: "TTD", name: "Trinidad and Tobago Dollar" },
            { id: 103, code: "TRY", name: "Turkey Lira" },
            { id: 114, code: "AED", name: "UAE" },
            { id: 106, code: "UAH", name: "Ukraine Hryvnia" },
            { id: 107, code: "GBP", name: "United Kingdom Pound" },
            { id: 108, code: "UYU", name: "Uruguay Peso" },
            { id: 1, code: "USD", name: "US Dollar" },
            { id: 109, code: "UZA", name: "Uzbekistan Ssom" },
            { id: 110, code: "VEF", name: "Venezuela Bolivar" },
            { id: 111, code: "VND", name: "Viet Nam Dong" },
            { id: 112, code: "YER", name: "Yemen Rial" },
            { id: 113, code: "ZWD", name: "Zimbabwe Dollar" }
        ]
  2. Hi,

    I'm importing inventory products using the API. You can set product cost from each supplier and also your sell price (Pricing level).

    But i can't find any way to set the Cost variable that is used as the actual purchase price:

    image.png.2b4f262b4e5160ddafc81fa03b3b7248.png

     

    You can put in the prices for each supplier, but how do i use that as the cost for the product?

    image.png.4df7b7fe90ee764666a962ac2f8d5f43.png

     

    The rest of the values can be set when adding or updating a product using the API Url: "https://server_name/api/inventory/products/"

    You can GET the Cost by using the API Url: "/v2/inventory/products/{productIndexId}/defaultcost". But i can't find any Url to post and update the cost.

  3. Hi,

    I'm looking for a way to retrive the Ids for the PSA currencies using the API.

    I want to use the currencyId when posting a new account to set it's currency. But i can't find any documentation on how to get the ids.

    I found the documentation on how to get countries. I guess there must be a simliar thing for currencies:

    GET https://server_name/api/system/countries

  4. Hi,

    I found another small bug in the api v2.

    When using POST /system/tenantlookup/ProductManufacturer the response data contains the wrong id for the newly created entry.

    But if you afterwards use GET /system/tenantlookup/ProductManufacturer you will get the correct id.

×
×
  • Create New...