HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

PUT /api/ItemPrice/{ItemPriceId} results in error

If I do a get call on the endpoint I receive the following.

{
                "$type": "Asi.Soa.Commerce.DataContracts.ItemPriceData, Asi.Contracts",
                "ItemPriceId": "CHAPEV75/REG:Standard:00000000-0000-0000-0000-000000000000:USD",
                "Item": {
                    "$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
                    "ItemId": "CHAPEV75/REG"
                },
                "PriceSheet": {
                    "$type": "Asi.Soa.Commerce.DataContracts.PriceSheetSummaryData, Asi.Contracts",
                    "Description": "",
                    "Name": "",
                    "PriceSheetId": "Standard"
                },
                "Currency": {
                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                    "CurrencyCode": "USD",
                    "DecimalPositions": 2
                },
                "SalesUom": {
                    "$type": "Asi.Soa.Commerce.DataContracts.UomSummaryData, Asi.Contracts",
                    "UomId": "00000000-0000-0000-0000-000000000000",
                    "Name": "",
                    "Description": ""
                },
                "DefaultPrice": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 99.0000,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    }
                },
                "IncomeAccount": {
                    "$type": "Asi.Soa.Commerce.DataContracts.FinancialAccountData, Asi.Contracts",
                    "GLAccount": {
                        "$type": "Asi.Soa.Commerce.DataContracts.GLAccountData, Asi.Contracts",
                        "GLAccountCode": ""
                    }
                },
                "SpecialPriceRules": {
                    "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleData, Asi.Contracts",
                            "SpecialPriceRuleId": "NM:EarlyFee",
                            "Name": "NM:EarlyFee",
                            "Description": "Non-Member",
                            "EndDate": "0001-01-01T00:00:00",
                            "Amount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                }
                            }
                        },
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.SpecialPriceRuleData, Asi.Contracts",
                            "SpecialPriceRuleId": "NM:LateFee",
                            "Name": "NM:LateFee",
                            "Description": "Non-Member",
                            "EndDate": "0001-01-01T00:00:00",
                            "Amount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                }
                            }
                        },
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.Pricing.LegacyPriceRuleData, Asi.Contracts",
                            "RuleCustomerType": "NM"
                        }
                    ]
                }
            }

When I copy the result to the body, update the call to a PUT, change the default price amount, add the ItemPriceId at the end of the url reguardless if it is url encoded I get a 500 error.

Contact us
Copyright © Advanced Solutions International, All rights reserved.