HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

Paying Open Invoice

We are trying to pay an open invoice, specifically for dues. We are currently trying to post to payment API endpoint, example post below. Is this the best endpoint to use? What fields are needed to successfully post a payment to an open invoice?

jQuery.ajax("/api/Payment", {
type: "POST",
headers: {
"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value
},
"dataType": "json",
"contentType": "application/json",

		"body": "{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"IsReversible": true,
"PaymentApplications": {
    "$type": "Asi.Soa.Commerce.DataContracts.PaymentApplicationDataCollection, Asi.Contracts",
    "$values": [{
        "$type": "Asi.Soa.Commerce.DataContracts.LegacyPaymentApplicationData, Asi.Contracts",
        "ApplicationAmount": {
            "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
            "Amount": 20 ,
            "Currency": {
                "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
                "CurrencyCode": "USD",
                "DecimalPositions": 2
            },
            "IsAmountDefined": true
        },
    
        "InvoiceNumber": 2320
       
    }]
},

"PayorParty": {
    "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
    "PartyId": "23216",
    "Id": "23216"
},
"PaymentDate":"11/30/2020" ,

"Amount": {
    "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
    "Amount": 20,
    "Currency": {
        "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
        "CurrencyCode": "USD",
        "DecimalPositions": 2
    },
    "IsAmountDefined": true
},

"Description": "Main Checking Account",
"PaymentMethodId": "CASH",
"FinancialEntityId": "DEMO",

"CashFinancialAccount": {
    "$type": "Asi.Soa.Commerce.DataContracts.FinancialAccountData, Asi.Contracts",
    "GLAccount": {
        "$type": "Asi.Soa.Commerce.DataContracts.GLAccountData, Asi.Contracts",
        "GLAccountId": "1-1100",
        "GLAccountCode": "1-1100"
    }
}

}"
}) ;

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