Discussions

Ask a Question
Back to all

Payment API - Refund & Batch Question

I developed a custom component for a client, there is one scenario where I need to do a refund, I'm using the iMIS Payment API for that, is it possible to set an specific batch instead of having the refund transaction wrote back in staff Autobatch?

Here are the details of the API call including endpoint and payload, everything is entered correctly in iMIS except I do not see a way to tell iMIS I want to use "x" batch :

/api/Payment/_execute

{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Refund",
"Parameters": {
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentRefundData, Asi.Contracts",
"OriginalPayment": { payment },
"RefundComments": "Comments",
"RefundPaymentMethodId": "CASH",
"RefundPaymentType": null,
"RefundGatewayReference": null,
"RefundPaymentMethodDescription": null,
"RefundDate": "7/21/2025",
"Refunds": {
"$type": "Asi.Soa.Commerce.DataContracts.PaymentApplicationDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.LegacyPaymentApplicationData, Asi.Contracts",
"SoldToPartyId": "1234",
"InvoiceReferenceNumber": "1234",
"ApplicationAmount": {
"Amount": "100",
"Currency": {
"CurrencyCode": "USD",
"DecimalPositions": 2
},
"IsAmountDefined": true
},
"InvoiceId": "1234",
"InvoiceNumber": "1234"
}
]
},
"RefundType": 1
}
]
}
}

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