Discussions

Ask a Question
Back to all

Adding a description field to a prepayment generated from an combo order.

Hi,

Through the UI, it is possible to be able to enter a description to a prepayment which ends up in the invoice. I have an example in the image below:

https://postimg.cc/ThbB4KT5

(The editor won't let me add images, and when I use the /image, it just errors out)

This is the payload that I am attempting to send:

{
    "$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": "194494" },
        "Note": "Transfer From: 633462 + Vivien Chan Wong, MD"
    },
    "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",
                "ReferenceNumber": "TRANSFER",
                "Amount": {
                    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
                    "Amount": 4,
                    "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2 },
                    "IsAmountDefined": true
                },
                "PaymentMethod": { "$type": "Asi.Soa.Commerce.DataContracts.PaymentMethodData, Asi.Contracts", "Message": "CASH", "Name": "Main Checking Account", "PaymentMethodId": "CASH", "PaymentType": "CASH" },
                "PayorParty": { "$type": "Asi.Soa.Commerce.DataContracts.CustomerPartyData, Asi.Contracts", "PartyId": "194494" }
            }
        ]
    }
}

I tried to add the Note to the Order, but it does not seem to apply to the end result. Is there a place I should be putting it?


Thanks,

Andrew Tang

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