Creating a Refund
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. | *Required |
InvoiceID | 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. | *Required |
CaptureTransactionID | 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. | Optional |
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
}
Updated 7 months ago