post https://yourorgsite.com/api/Payment/_execute
Executes an operation of Payment
With the Payment service, you can perform the following operations on the execute endpoint:
- Reverse
- Refund
- Unapply
- VoidFailedPayment
- GetAdjustmentWarning
Reverse
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Reverse",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"$value": "payment Value"
},
{
"$type": "System.Nullable`1[[System.DateTime, mscorlib, ]]",
"$value": "reversalDate Value"
},
{
"$type": "System.String",
"$value": "comment Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"System.Nullable`1[[System.DateTime, mscorlib, ]]",
"System.String"
]
},
"UseJson": false
}
Refund
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Refund",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentRefundData, Asi.Contracts",
"$value": "paymentRefundData Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.PaymentRefundData, Asi.Contracts"
]
},
"UseJson": false
}
Unapply
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Unapply",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"$value": "payment Value"
},
{
"$type": "System.Nullable`1[[System.DateTime, mscorlib, ]]",
"$value": "adjustmentDate Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts",
"System.Nullable`1[[System.DateTime, mscorlib, ]]"
]
},
"UseJson": false
}
VoidFailedPayment
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "VoidFailedPayment",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "paymentId Value"
},
{
"$type": "System.String",
"$value": "gatewayReference Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String",
"System.String"
]
},
"UseJson": false
}
GetAdjustmentWarning
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "GetAdjustmentWarning",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "paymentId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String"
]
},
"UseJson": false
}