Get Started
call(action, args)
getDisputeItems(caseId)
getEthocaAPIRequest(disputeItems, disputeType, namedCredential)
Custom Triggers
Custom Validation Rules
DPE and Monitor Workflow Services
API End-of-Life Policy
Previous Versions
getEthocaAPIRequest(disputeItems, disputeType, namedCredential)Prepares the payload used in the dispute flow and sends it to the integration provider, retrying if necessary.
public static HttpRequest getEthocaAPIRequest(List<DisputeItem> disputeItems, String disputeType, String namedCredential)
Type: List<DisputeItem>
Disputed transaction data in the following JSON format:
1[
2 {
3 "transaction_date": "2023-01-01",
4 "transaction_identifier": "1",
5 "transaction_amount": 213.1,
6 "transaction_description": "t1"
7 },
8 {
9 "transaction_date": "2023-01-01",
10 "transaction_identifier": "2",
11 "transaction_amount": 150.94,
12 "transaction_description": "t2"
13 }
14]The keys correspond to DisputeItem object fields.
Type: String
A value of the Dispute object’s DisputeType picklist field:
Type: String
The named credential for accessing the integration provider.
Type: HttpRequest
Returns an HttpRequest that includes the disputed transaction data and sends it to the integration provider, retrying if necessary.