These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Pending payments

i am struggling with posting payments through the api, my payments are always in pending state, what could be the problem, below is my payload:

{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"Amount": {
"$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
"Amount": 1122,
"Currency": {
"$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
"CurrencyCode": "USD",
"DecimalPositions": 2
},
"IsAmountDefined": true
},
"payorParty": {
"$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
"PartyId": "252333",
"IsMarkedForDelete": false
},
"IsReversible": false,
"BatchId": "220822-1",
"Description": "sampleDescription",
"FinancialEntityId": "IVCXATZ",
"PaymentDate": "2022-08-22T18:44:36.9012878+02:00",
"PaymentId": "20220822184436911",
"PaymentMethodId": "ABCXX 7086",
"PaymentReference": "20220822184436937"
}

and the response that i get is below:

{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"AdjustedAmount": {
"$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
"Currency": {
"$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
"CurrencyCode": "USD",
"DecimalPositions": 2
},
"IsAmountDefined": true
},
"PaymentApplications": {
"$type": "Asi.Soa.Commerce.DataContracts.PaymentApplicationDataCollection, Asi.Contracts",
"$values": []
},
"PaymentId": "46369",
"PaymentDate": "2022-08-22T16:44:36.9012878+00:00",
"BatchId": "220822-1",
"Amount": {
"$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts",
"Amount": 1122,
"Currency": {
"$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts",
"CurrencyCode": "USD",
"DecimalPositions": 2
},
"IsAmountDefined": true
},
"Description": "sampleDescription",
"PaymentMethodId": "ABC 7086",
"FinancialEntityId": "ICAZ",
"PaymentReference": "20220822184436937",
"UpdateInformation": {
"$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts",
"CreatedOn": "2022-08-22T18:46:13.3061321Z",
"UpdatedOn": "2022-08-22T18:46:13.3061321Z"
}
}

what could be the problem with my payload