Discussions

Ask a Question
Back to all

Event Price gets double charged at Order/_execute endpoint

When I POST this JSON to Order/_execute endpoint, the OrderTotal includes Event Price twice:

Can you please advise what is wrong with this request?

{
    "$type": "Asi.Soa.Commerce.DataContracts.OrderPriceUpdateRequest, Asi.Contracts",
    "EntityTypeName": "Order",
    "OperationName": "UpdatePricing",
    "Order": {
        "Currency": { "CurrencyCode": "CAD", "DecimalPositions": 2 },
        "Delivery": {
            "$values": [
                {
                    "CustomerParty": {
                        "PartyId": "3622024"
                    },
                    "DeliveryId": "6869ff29-e624-4a5b-95dc-1e827e715fc7",
                    "DeliveryMethod": {
                        "DeliveryMethodId": "CP"
                    }
                },
                {
                    "CustomerParty": {
                        "PartyId": "3622024"
                    },
                    "DeliveryId": "6869ff29-e624-4a5b-95dc-1e827e715fc8"
                }
            ]
        },
        "Lines": {
            "$values": [
                {
                    "LineNumber": 1,
                    "OrderLineId": "94cca784-9a66-447c-b4cd-69a4bf3e9beb",
                    "Item": {
                        "ItemCode": "314"
                    },
                    "QuantityOrdered": {
                        "Amount": 2
                    },
                    "DeliveryId": "6869ff29-e624-4a5b-95dc-1e827e715fc7"
                },
                {
                    "LineNumber": 2,
                    "OrderLineId": "94cca784-9a66-447c-b4cd-69a4bf3e9bea",
                    "Item": {
                        "ItemId": "EVENT-6000044049",
                        "ItemCode": "EVENT-6000044049"
                    },
                    "QuantityOrdered": {
                        "Amount": 1
                    },
                    "DeliveryId": "6869ff29-e624-4a5b-95dc-1e827e715fc8",
                    "Event": {
                        "EventId": "6000044049"
                    },
                    "ChildOrderLines": [
                        {
                            "Item": {
                                "ItemCode": "6000044049/MAIN",
                                "ItemId": "6000044049/MAIN"
                            },
                            "QuantityOrdered": {
                                "Amount": 1
                            },
                            "CanCombine": true         
                        }
                    ]
                }
            ]
        },
        "SoldToCustomerParty": {
            "PartyId": "3622024"
        }
    }
}

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