HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Guides

Allocating payments for subscription invoices

As of 20.3.131, invoice payments can be split up and allocated per a subscription using the payment applications. To get started, follow the steps in Adding, modifying and paying for a subscription to create an invoice and add it to the cart.

To find the invoice line IDs, an invoice can be found doing a GET request like this:

/api/Invoice?InvoiceId=CASH:23373:20220615-1
{
    "$type": "Asi.Soa.Core.DataContracts.PagedResult`1[[Asi.Soa.Commerce.DataContracts.InvoiceData, Asi.Contracts]], Asi.Contracts",
    "Items": {
        "$type": "System.Collections.Generic.List`1[[Asi.Soa.Commerce.DataContracts.InvoiceData, Asi.Contracts]], mscorlib",
        "$values": [
            {
                "$type": "Asi.Soa.Commerce.DataContracts.LegacyInvoiceData, Asi.Contracts",
                "LockedEffectiveDate": "0001-01-01T00:00:00",
                "Lines": {
                    "$type": "Asi.Soa.Commerce.DataContracts.InvoiceLineDataCollection, Asi.Contracts",
                    "$values": [
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.InvoiceLineData, Asi.Contracts",
                            "InvoiceLineId": "23373:23373:ASSOC",
                            "Item": {
                                "$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
                                "Description": "",
                                "ItemClass": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.ItemClassSummaryData, Asi.Contracts",
                                    "ItemClassId": "DUES",
                                    "Name": "Dues"
                                },
                                "ItemCode": "ASSOC",
                                "ItemId": "ASSOC",
                                "Name": "Associate Member Fees"
                            },
                            "ShipToParty": {
                                "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                                "CityName": "City 617bec7d-3968-4",
                                "CountryName": "United States",
                                "CountrySubEntityName": "VA",
                                "Email": "",
                                "Phone": "",
                                "PartyId": "23373",
                                "Id": "23373",
                                "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                                "Status": {
                                    "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                                    "PartyStatusId": "A",
                                    "Name": "Active",
                                    "Description": "Active"
                                },
                                "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                                "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                                "IsMarkedForDelete": false
                            },
                            "Quantity": {
                                "$type": "Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts",
                                "Amount": 1.0
                            },
                            "UnitPrice": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 150.0000,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "ExtendedAmount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 150.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "Balance": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 150.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "PaymentAmount": {
                                "$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
                            },
                            "PendingPaymentAmount": {
                                "$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
                            },
                            "AdjustmentAmount": {
                                "$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
                            },
                            "MonthsPaid": 12,
                            "EffectiveDate": "2022-07-01T00:00:00",
                            "AdditionalAttributes": {
                                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
                                "$values": [
                                    {
                                        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                        "Name": "BillingMemberType",
                                        "Value": "A"
                                    }
                                ]
                            }
                        },
                        {
                            "$type": "Asi.Soa.Commerce.DataContracts.InvoiceLineData, Asi.Contracts",
                            "InvoiceLineId": "23373:23373:PAC",
                            "Item": {
                                "$type": "Asi.Soa.Fundraising.DataContracts.GiftItemData, Asi.Contracts",
                                "Description": "",
                                "ItemClass": {
                                    "$type": "Asi.Soa.Commerce.DataContracts.ItemClassSummaryData, Asi.Contracts",
                                    "ItemClassId": "VOL",
                                    "Name": "Voluntary"
                                },
                                "ItemCode": "PAC",
                                "ItemId": "PAC",
                                "Name": "PAC Contribution"
                            },
                            "ShipToParty": {
                                "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                                "CityName": "City 617bec7d-3968-4",
                                "CountryName": "United States",
                                "CountrySubEntityName": "VA",
                                "Email": "",
                                "Phone": "",
                                "PartyId": "23373",
                                "Id": "23373",
                                "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                                "Status": {
                                    "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                                    "PartyStatusId": "A",
                                    "Name": "Active",
                                    "Description": "Active"
                                },
                                "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                                "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                                "IsMarkedForDelete": false
                            },
                            "Quantity": {
                                "$type": "Asi.Soa.Commerce.DataContracts.QuantityData, Asi.Contracts",
                                "Amount": 1.0
                            },
                            "UnitPrice": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 20.0000,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "ExtendedAmount": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 20.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "Balance": {
                                "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                "Amount": 20.00,
                                "Currency": {
                                    "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                    "CurrencyCode": "USD",
                                    "DecimalPositions": 2
                                },
                                "IsAmountDefined": true
                            },
                            "PaymentAmount": {
                                "$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
                            },
                            "PendingPaymentAmount": {
                                "$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
                            },
                            "AdjustmentAmount": {
                                "$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
                            },
                            "MonthsPaid": 12,
                            "EffectiveDate": "2022-07-01T00:00:00",
                            "AdditionalAttributes": {
                                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
                                "$values": [
                                    {
                                        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                        "Name": "BillingMemberType",
                                        "Value": "A"
                                    }
                                ]
                            }
                        }
                    ]
                },
                "AdditionalCharges": {
                    "$type": "Asi.Soa.Commerce.DataContracts.InvoiceAdditionalChargeDataCollection, Asi.Contracts",
                    "$values": []
                },
                "ScheduledPayments": {
                    "$type": "Asi.Soa.Commerce.DataContracts.ScheduledPaymentDataCollection, Asi.Contracts",
                    "$values": []
                },
                "InvoiceId": "CASH:23373:20220615-1",
                "FinancialEntity": {
                    "$type": "Asi.Soa.Commerce.DataContracts.FinancialEntitySummaryData, Asi.Contracts",
                    "FinancialEntityId": "DEMO",
                    "Name": "iMIS International",
                    "EntityCode": "DEMO",
                    "IsDefault": true
                },
                "InvoiceNumber": "Cash-23373",
                "InvoiceDate": "2022-06-15T00:00:00",
                "BillToParty": {
                    "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                    "CityName": "City 617bec7d-3968-4",
                    "CountryName": "United States",
                    "CountrySubEntityName": "VA",
                    "Email": "",
                    "Phone": "",
                    "PartyId": "23373",
                    "Id": "23373",
                    "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                    "Status": {
                        "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                        "PartyStatusId": "A",
                        "Name": "Active",
                        "Description": "Active"
                    },
                    "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                    "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                    "IsMarkedForDelete": false
                },
                "SoldToParty": {
                    "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                    "CityName": "City 617bec7d-3968-4",
                    "CountryName": "United States",
                    "CountrySubEntityName": "VA",
                    "Email": "",
                    "Phone": "",
                    "PartyId": "23373",
                    "Id": "23373",
                    "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                    "Status": {
                        "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                        "PartyStatusId": "A",
                        "Name": "Active",
                        "Description": "Active"
                    },
                    "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                    "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                    "IsMarkedForDelete": false
                },
                "Description": "New Member Fees",
                "InvoicePurpose": 8,
                "InvoiceAmount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 170.0000,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "OriginalInvoiceAmount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 170.0000,
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "PaymentAmount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "PendingPaymentAmount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "AdjustmentAmount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Currency": {
                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                        "CurrencyCode": "USD",
                        "DecimalPositions": 2
                    },
                    "IsAmountDefined": true
                },
                "Balance": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 170.0000,
                    "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": "BillingMemberType",
                            "Value": "A"
                        },
                        {
                            "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                            "Name": "SourceSystem",
                            "Value": "DUES"
                        }
                    ]
                }
            }
        ]
    },
    "Offset": 0,
    "Limit": 100,
    "Count": 1,
    "TotalCount": 1,
    "NextPageLink": null,
    "HasNext": false,
    "NextOffset": 0
}

Now payment applications can be added to the cart that will update the amount paid on the subscription when the cart is paid for. Inside the Payments object add RemittanceData values to the RemittanceDataCollection that will include the applications containing the invoice ID and the invoice line ID the payment will go towards. The payment applications may not be more than the invoice line balance.

The Payments object will look like this:

"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": 160.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",
                        "PaymentMethodIsReadOnly": false
                    },
                    "PaymentMethod": {
                        "$type": "Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts",
                        "PaymentMethodId": "Cash"
                    },
                    "Applications": {
                        "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationDataCollection, Asi.Contracts",
                        "$values": [
                            {
                                "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationData, Asi.Contracts",
                                "ApplicationAmount": {
                                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                    "Amount": 145.00,
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InvoiceId": "CASH:23373:20220615-1",
                                "InvoiceLineId": "23373:23373:ASSOC",
                                "DoNotReceipt": false
                            },
                            {
                                "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationData, Asi.Contracts",
                                "ApplicationAmount": {
                                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                    "Amount": 15.00,
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InvoiceId": "CASH:23373:20220615-1",
                                "InvoiceLineId": "23373:23373:PAC",
                                "DoNotReceipt": false
                            }
                        ]
                    }
                }
            ]
        }

The end cart result will look like this before submitting:

{
    "$type": "Asi.Soa.Commerce.DataContracts.CartData, Asi.Contracts",
    "CartId": "1d28f203-a432-4021-bd2a-90ea39b5f1b1",
    "UserId": "23373",
    "ComboOrder": {
        "$type": "Asi.Soa.Commerce.DataContracts.ComboOrderData, Asi.Contracts",
        "Currency": {
            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
            "CurrencyCode": "USD",
            "DecimalPositions": 2
        },
        "Order": {
            "$type": "Asi.Soa.Commerce.DataContracts.OrderData, Asi.Contracts",
            "BillToCustomerParty": {
                "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                "PartyId": "23373"
            },
            "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",
                                "AddressId": "13948",
                                "AddressLines": {
                                    "$type": "Asi.Soa.Membership.DataContracts.AddressLineDataCollection, Asi.Contracts",
                                    "$values": [
                                        "933 4dc43fbf-d9d8-4a"
                                    ]
                                },
                                "CityName": "City 617bec7d-3968-4",
                                "CountryCode": "US",
                                "CountryName": "United States",
                                "CountrySubEntityCode": "VA",
                                "CountrySubEntityName": "Virginia",
                                "FullAddress": "933 4dc43fbf-d9d8-4a\rCity 617bec7d-3968-4, VA  21376\rUNITED STATES",
                                "PostalCode": "21376"
                            },
                            "AddresseeText": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4\r\n933 4dc43fbf-d9d8-4a\rCity 617bec7d-3968-4, VA  21376\rUNITED STATES",
                            "AddressPurpose": "Home Address",
                            "CommunicationPreferences": {
                                "$type": "Asi.Soa.Membership.DataContracts.CommunicationPreferenceDataCollection, Asi.Contracts",
                                "$values": [
                                    {
                                        "$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"
                                    }
                                ]
                            },
                            "FullAddressId": "13948",
                            "Salutation": {
                                "$type": "Asi.Soa.Membership.DataContracts.PartySalutationData, Asi.Contracts",
                                "SalutationMethod": {
                                    "$type": "Asi.Soa.Membership.DataContracts.PartySalutationMethodSummaryData, Asi.Contracts",
                                    "PartySalutationMethodId": "main"
                                },
                                "Text": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4"
                            },
                            "DisplayName": "First 9aaf81bc-1a4f-"
                        },
                        "AddressId": "13948",
                        "CustomerParty": {
                            "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                            "PartyId": "23373"
                        },
                        "DeliveryId": "de4466d7-6875-4d20-8fca-7987ca340425"
                    }
                ]
            },
            "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": []
            },
            "LineTotal": {
                "$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
            },
            "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": "2022-06-15T15:19:00.6934708Z",
            "OrderTotal": {
                "$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
            },
            "OriginatorCustomerParty": {
                "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts",
                "PartyId": "23373"
            },
            "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": "23373"
            },
            "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",
                "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": 0.0
                        }
                    }
                ]
            }
        },
        "Invoices": {
            "$type": "Asi.Soa.Commerce.DataContracts.InvoiceSummaryDataCollection, Asi.Contracts",
            "$values": [
                {
                    "$type": "Asi.Soa.Commerce.DataContracts.LegacyInvoiceSummaryData, Asi.Contracts",
                    "LockedEffectiveDate": "0001-01-01T00:00:00",
                    "InvoiceId": "CASH:23373:20220615-1",
                    "FinancialEntity": {
                        "$type": "Asi.Soa.Commerce.DataContracts.FinancialEntitySummaryData, Asi.Contracts",
                        "FinancialEntityId": "DEMO",
                        "Name": "iMIS International",
                        "EntityCode": "DEMO",
                        "IsDefault": true
                    },
                    "InvoiceNumber": "Cash-23373",
                    "InvoiceDate": "2022-06-15T00:00:00",
                    "BillToParty": {
                        "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                        "CityName": "City 617bec7d-3968-4",
                        "CountryName": "United States",
                        "CountrySubEntityName": "VA",
                        "Email": "",
                        "Phone": "",
                        "PartyId": "23373",
                        "Id": "23373",
                        "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                        "Status": {
                            "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                            "PartyStatusId": "A",
                            "Name": "Active",
                            "Description": "Active"
                        },
                        "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                        "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                        "IsMarkedForDelete": false
                    },
                    "SoldToParty": {
                        "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
                        "CityName": "City 617bec7d-3968-4",
                        "CountryName": "United States",
                        "CountrySubEntityName": "VA",
                        "Email": "",
                        "Phone": "",
                        "PartyId": "23373",
                        "Id": "23373",
                        "UniformId": "514526d1-9717-416b-b2ea-da58da65e987",
                        "Status": {
                            "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
                            "PartyStatusId": "A",
                            "Name": "Active",
                            "Description": "Active"
                        },
                        "Name": "First 9aaf81bc-1a4f- Last 5d75c507-c6cd-4",
                        "Sort": "LAST 5D75C507-C6CD-4, FIRST 9AAF81BC-1A4F-",
                        "IsMarkedForDelete": false
                    },
                    "Description": "New Member Fees",
                    "InvoicePurpose": 8,
                    "InvoiceAmount": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Amount": 170.00,
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "OriginalInvoiceAmount": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Amount": 170.00,
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "PaymentAmount": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "PendingPaymentAmount": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "AdjustmentAmount": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Currency": {
                            "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                            "CurrencyCode": "USD",
                            "DecimalPositions": 2
                        },
                        "IsAmountDefined": true
                    },
                    "Balance": {
                        "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                        "Amount": 170.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": "BillingMemberType",
                                "Value": "A"
                            },
                            {
                                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                                "Name": "SourceSystem",
                                "Value": "DUES"
                            }
                        ]
                    }
                }
            ]
        },
        "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": 160.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",
                        "PaymentMethodIsReadOnly": false
                    },
                    "PaymentMethod": {
                        "$type": "Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts",
                        "PaymentMethodId": "Cash"
                    },
                    "Applications": {
                        "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationDataCollection, Asi.Contracts",
                        "$values": [
                            {
                                "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationData, Asi.Contracts",
                                "ApplicationAmount": {
                                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                    "Amount": 145.00,
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InvoiceId": "CASH:23373:20220615-1",
                                "InvoiceLineId": "23373:23373:ASSOC",
                                "DoNotReceipt": false
                            },
                            {
                                "$type": "Asi.Soa.Commerce.DataContracts.RemittanceApplicationData, Asi.Contracts",
                                "ApplicationAmount": {
                                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                                    "Amount": 15.00,
                                    "Currency": {
                                        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                                        "CurrencyCode": "USD",
                                        "DecimalPositions": 2
                                    },
                                    "IsAmountDefined": true
                                },
                                "InvoiceId": "CASH:23373:20220615-1",
                                "InvoiceLineId": "23373:23373:PAC",
                                "DoNotReceipt": false
                            }
                        ]
                    }
                }
            ]
        }
    },
    "UpdateInformation": {
        "$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts",
        "CreatedBy": "23202",
        "CreatedOn": "2022-06-15T20:19:01.017",
        "UpdatedBy": "23202",
        "UpdatedOn": "2022-06-15T20:19:01.017"
    }
}