post https://yourorgsite.com/api/AutoPayAccount/_execute
Executes an operation of AutoPayAccount
With the AutoPayAccount service, you can perform the following operations on the execute endpoint:
- Cancel
- Disable
- UpdatePaymentToken
- GetInvoicesUsingRemittanceRestriction
Cancel
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Cancel",
"EntityTypeName": "AutoPayAccount",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "autoPayAccountId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String"
]
},
"UseJson": false
}
Disable
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Disable",
"EntityTypeName": "AutoPayAccount",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "autoPayAccountId Value"
},
{
"$type": "Asi.Soa.Commerce.DataContracts.ApplicationRestrictionData, Asi.Contracts",
"$value": "restrictionToRemove Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String",
"Asi.Soa.Commerce.DataContracts.ApplicationRestrictionData, Asi.Contracts"
]
},
"UseJson": false
}
UpdatePaymentToken
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "UpdatePaymentToken",
"EntityTypeName": "AutoPayAccount",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.AutoPayAccountData, Asi.Contracts",
"$value": "autoPayAccount Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.AutoPayAccountData, Asi.Contracts"
]
},
"UseJson": false
}
GetInvoicesUsingRemittanceRestriction
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "GetInvoicesUsingRemittanceRestriction",
"EntityTypeName": "AutoPayAccount",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.Guid",
"$value": "autoPayAccountId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.Guid"
]
},
"UseJson": false
}