HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

PayPal Express Issues

The issue seems to be that when I send the “token,payorId” pair to iMIS under an api call to execute the cart with a payment type of “PayPal” I get back a message that seems to relate to PayPals token verification system, most specifically here: https://www.paypal.com/us/cshelp/article/why-did-i-get-api-error-code-10410-ts1427

In my research of this issue it can be caused by the token being sent in an improper capitalization, as PayPal says it is case sensitive, if possible I would like to see exactly what kind of call and API payloads iMIS sends to PayPal in this case, because as shown below the token in use here can be found directly in PayPal and should not report back as invalid

{
    "$type": "Asi.Soa.Commerce.DataContracts.CartSubmissionRequest, Asi.Contracts",
    "EntityTypeName": "Cart",
    "OperationName": "Submit",
    "Cart": {
        "$type": "Asi.Soa.Commerce.DataContracts.CartData, Asi.Contracts",
        "CartId": "62d5bf20-9308-453a-8cd0-a9c4cdb15d7a",
        "UserId": "602654",
        "ComboOrder": {
            "$type": "Asi.Soa.Commerce.DataContracts.ComboOrderData, Asi.Contracts",
            "Order": {
                "$type": "Asi.Soa.Commerce.DataContracts.OrderData, Asi.Contracts",
                "BillToCustomerParty": {
                    "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                    "PartyId": "602654"
                },
                "Currency": {
                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                    "CurrencyCode": "USD",
                    "DecimalPositions": 2
                },
                "Delivery": {
                    "$type": "Asi.Soa.Commerce.DataContracts.DeliveryDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.DeliveryData, Asi.Contracts",
                            "Address": {
                                "$type": "Asi.Soa.Membership.DataContracts.FullAddressData, Asi.Contracts",
                                "AdditionalLines": {
                                    "$type": "Asi.Soa.Membership.DataContracts.AddressLineDataCollection, Asi.Contracts",
                                    "$values": []
                                },
                                "Address": {
                                    "$type": "Asi.Soa.Membership.DataContracts.AddressData, Asi.Contracts",
                                    "AddressLines": {
                                        "$type": "Asi.Soa.Membership.DataContracts.AddressLineDataCollection, Asi.Contracts",
                                        "$values": [
                                            "The American Road",
                                            "",
                                            ""
                                        ]
                                    },
                                    "CityName": "Dearborn",
                                    "CountryCode": "US",
                                    "CountrySubEntityCode": "MI",
                                    "CountyCode": "US",
                                    "PostalCode": "48126"
                                },
                                "AddresseeText": "King Candy\r\nThe American Road\rDearborn, MI  48126\rUSA",
                                "AddressPurpose": "Main Address",
                                "CommunicationPreferences": {
                                    "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceDataCollection, Asi.Contracts",
                                    "$values": [
                                        {
                                            "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceData, Asi.Contracts",
                                            "Reason": "default"
                                        },
                                        {
                                            "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceData, Asi.Contracts",
                                            "Reason": "mail"
                                        },
                                        {
                                            "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceData, Asi.Contracts",
                                            "Reason": "bill"
                                        },
                                        {
                                            "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceData, Asi.Contracts",
                                            "Reason": "ship"
                                        }
                                    ]
                                },
                                "Email": "[email protected]",
                                "Fax": "(313) 390-8817",
                                "FullAddressId": "777634",
                                "Phone": "(123) 456-7890",
                                "Salutation": {
                                    "$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
                                    "SalutationMethod": {
                                        "$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
                                        "PartySalutationMethodId": "main"
                                    },
                                    "Text": "King Candy"
                                },
                                "DisplayName": "Candy,King"
                            },
                            "AddressId": "777634",
                            "CustomerParty": {
                                "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                                "PartyId": "602654"
                            },
                            "DeliveryId": "UPSGRD",
                            "DeliveryMethod": {
                                "$type": "Asi.Soa.Commerce.DataContracts.DeliveryMethodData, Asi.Contracts",
                                "Name": "UPS Ground",
                                "DeliveryMethodId": "UPSGRD"
                            }
                        }
                    ]
                },
                "OrderDiscount": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "LineDiscountTotal": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "Lines": {
                    "$type": "Asi.Soa.Commerce.DataContracts.OrderLineDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.OrderLineData, Asi.Contracts",
                            "OrderLineId": "66995625-9842-46a0-99b7-88a74b67b18c",
                            "AdditionalAttributes": {
                                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
                                "$values": [
                                    {
                                        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                        "Name": "Weight",
                                        "Value": {
                                            "$type": "System.Decimal",
                                            "$value": 0.0
                                        }
                                    },
                                    {
                                        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                        "Name": "ItemType",
                                        "Value": "{\"Product\":\"D-30\",\"Code\":null,\"isEdoc\":false,\"isDownload\":true,\"isELearning\":false,\"isWebcast\":false,\"isEvent\":false,\"isVirtualEvent\":false,\"isProgram\":false,\"isVirtualProgram\":false,\"isTraining\":false,\"isCanadaClass\":false,\"isIncognitoTraining\":false}"
                                    },
                                    {
                                        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                        "Name": "OrderStatus",
                                        "Value": "NORMAL"
                                    }
                                ]
                            },
                            "ExtendedAmount": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Amount": 116.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "Item": {
                                "$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
                                "ItemClass": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.ItemClassSummaryData, Asi.Contracts",
                                    "ItemClassId": "SALES-QUALITY"
                                },
                                "ItemCode": "D-30",
                                "ItemId": "D-30",
                                "Name": "D-30 Downloadable File - English"
                            },
                            "QuantityBackordered": {
                                "$type": "System.Nullable`1[[Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts]], mscorlib",
                                "Amount": 1.0
                            },
                            "QuantityOrdered": {
                                "$type": "System.Nullable`1[[Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts]], mscorlib",
                                "Amount": 1.0
                            },
                            "QuantityShipped": {
                                "$type": "System.Nullable`1[[Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts]], mscorlib"
                            },
                            "Tax": {
                                "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxData, Asi.Contracts",
                                "Details": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxDetailDataCollection, Asi.Contracts",
                                    "$values": []
                                },
                                "TaxTotal": {
                                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "TaxableAmountTotal": {
                                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InclusiveTaxTotal": {
                                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "TaxSchedule": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.TaxScheduleSummaryData, Asi.Contracts",
                                    "Name": ""
                                },
                                "TaxCategory": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.TaxCategorySummaryData, Asi.Contracts"
                                }
                            },
                            "UnitPrice": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Amount": 116.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "BaseUnitPrice": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Amount": 116.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "Discount": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "DiscountCode": "",
                            "CanCombine": true
                        }
                    ]
                },
                "LineTotal": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Amount": 116.00,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "MiscellaneousChargesTotal": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "OrderDate": "2023-04-17T16:18:46.9393732Z",
                "OrderState": 1,
                "OrderTotal": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Amount": 116.00,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "OriginatorCustomerParty": {
                    "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                    "PartyId": "602654"
                },
                "ShippingTotal": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "SoldToCustomerParty": {
                    "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                    "PartyId": "602654"
                },
                "AdditionalCharges": {
                    "$type": "Asi.Soa.Commerce.DataContracts.AdditionalChargeDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.AdditionalChargeData, Asi.Contracts",
                            "AdditionalChargeId": "EventCredits",
                            "Description": "Credits",
                            "TotalAmount": {
                                "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "Tax": {
                                "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxData, Asi.Contracts",
                                "Details": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxDetailDataCollection, Asi.Contracts",
                                    "$values": []
                                },
                                "TaxTotal": {
                                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InclusiveTaxTotal": {
                                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                }
                            }
                        }
                    ]
                },
                "TaxInformation": {
                    "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxInformationData, Asi.Contracts",
                    "InclusiveTaxTotal": {
                        "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "TaxTotal": {
                        "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "OrderTaxes": {
                        "$type": "Asi.Soa.Commerce.DataContracts.OrderTaxDataCollection, Asi.Contracts",
                        "$values": []
                    }
                },
                "TotalBasePrice": {
                    "$type": "System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib",
                    "Amount": 116.00,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "AdditionalAttributes": {
                    "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                            "Name": "OrderTotalExcludingCredits",
                            "Value": {
                                "$type": "System.Decimal",
                                "$value": 116.0
                            }
                        }
                    ]
                }
            },
            "Invoices": {
                "$type": "Asi.Soa.Commerce.DataContracts.InvoiceSummaryDataCollection, Asi.Contracts",
                "$values": []
            },
            "Payments": {
                "$type": "Asi.Soa.Commerce.DataContracts.RemittanceDataCollection, Asi.Contracts",
                "$values": [
                    {
                        "$type": "Asi.Soa.Commerce.DataContracts.RemittanceData, Asi.Contracts",
                        "Amount": {
                            "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                            "Amount": 116.00,
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "CurrencyCode": "USD",
                                "DecimalPositions": 2
                            },
                            "IsAmountDefined": true
                        },
                        "PaymentToken": {
                            "$type": "Asi.Soa.Commerce.DataContracts.AutoPayAccountData, Asi.Contracts",
                            "Payer": {
                                "$type": "Asi.Soa.Commerce.DataContracts.AccountPayerInformationData, Asi.Contracts",
                                "PayerId": "MX3RLJC96K4PS"
                            },
                            "PaymentMethodIsReadOnly": false
                        },
                        "PaymentMethod": {
                            "$type": "Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts",
                            "Name": "PayPal",
                            "DisplayName": "PayPal",
                            "PaymentMethodId": "PAYPAL",
                            "PaymentType": "Service",
                            "Currency": {
                                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                "DecimalPositions": 2
                            },
                            "GLAccountId": "1101-0000000",
                            "FinancialEntityId": "AIAG",
                            "Message": "PayPal",
                            "GatewayAccountId": "PAYPALEC"
                        },
                        "PayorParty": {
                            "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                            "Id": "602654",
                            "PartyId": "602654"
                        },
                        "ReferenceNumber": "EC-98X1896269417331J,MX3RLJC96K4PS"
                    }
                ]
            }
        },
        "UpdateInformation": {
            "$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts",
            "CreatedBy": "602654",
            "CreatedOn": "2023-04-17T20:18:01.893",
            "UpdatedBy": "602654",
            "UpdatedOn": "2023-04-17T20:18:01.893"
        }
    }
}
{
    "$type": "Asi.Soa.Core.DataContracts.ValidateResultsData, Asi.Contracts",
    "Entity": {
        "$type": "Asi.Soa.Commerce.DataContracts.CartData, Asi.Contracts",
        "CartId": "62d5bf20-9308-453a-8cd0-a9c4cdb15d7a",
        "UserId": "602654",
        "UpdateInformation": {
            "$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts",
            "CreatedBy": "602654",
            "CreatedOn": "2023-04-17T20:18:01.893",
            "UpdatedBy": "602654",
            "UpdatedOn": "2023-04-17T20:18:01.893"
        }
    },
    "IsValid": false,
    "ValidationResults": {
        "$type": "Asi.Soa.Core.DataContracts.ValidationResultsData, Asi.Contracts",
        "Errors": {
            "$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
            "$values": [
                {
                    "$type": "Asi.Soa.Core.DataContracts.ValidationResultData, Asi.Contracts",
                    "Message": "(10410) Invalid token - Invalid token.\r\n"
                }
            ]
        },
        "Warnings": {
            "$type": "Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts",
            "$values": []
        }
    }
}

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