Access Endpoint URL:https://rest.everyware.com/api/Default/CreateRefund [POST]
Use the CreateRefund method to void a pending preauthorization, or to refund a transaction that has already settled.
Inbound Parameters
Parameters should be passed in a single JSON-body object.
|
Parameter Name
|
Description
|
Optional/Required
|
|---|
|
RefundType
|
Accepts either “Full” or “Partial”, based on whether the full amount is to be refunded or only a fraction. Full is the default value.
|
Optional
|
|
Amount
|
Amount to be refunded.
|
Required
|
|
OrderNumber
|
The number associated with the order in the Everyware system.
Either the OrderNumber or InvoiceID must be provided in the request.
</td><td>
* Required
</td></tr><tr><td>
InvoiceID
</td><td>
This is the unique value returned from the processor gateway that identifies a transaction in Everyware.
Either the OrderNumber or InvoiceID must be provided in the request.
</td><td>
* Required
</td></tr><tr><td>
CaptureTransactionID
</td><td>
Some gateways have one ID that is used when a transaction is initiated and another that is assigned when it is captured. This refers to the latter.
</td><td>
Optional
</td></tr></tbody></table>
Gateway-Specific Parameters
Whether the following parameters are required depends on the gateway being used. Ask your Everyware representative for more details.
| Parameter Name |
Description |
| AccountType |
The type of bank account being used. |
| RoutingNumber |
The routing number of the bank account. |
| AccountNumber |
The account number of the bank account. |
| FirstName |
The first name associated with the bank account. |
| LastName |
The last name associated with the bank account. |
| Merchant |
The name of the merchant providing the refund. |
| PaymentType |
"PaymentType.CreditCard" or "PaymentType.ACH". |
Code Sample
{
"RefundType": "full",
"Amount": "1.00",
"OrderNumber": "",
"InvoiceID": "ew_3JN25fAawEMtODxF3OEtn7Q1",
"CaptureTransactionID": "",
"Parialrefunded": ""
}
curl --location 'https://rest.everyware.com/api/Default/CreateRefund' \
--header 'Authorization: Basic [xxx]' \
--header 'Content-Type: application/json' \
--data-raw ' {
"RefundType": "full",
"Amount": "1.00",
"OrderNumber": "",
"InvoiceID": "ew_3JN25fAawEMtODxF3OEtn7Q1"
}
{
"IsSuccess": true,
"Message": "The refund has been processed.",
"Data": null,
"OrderNumber": null
}
|