Data Model

Overview

The "Refund Status Data Model" is a Data model type used in your webhook endpoint. This model provides information about any RefundStatusChanged event.

Your webhook endpoint will receive a POST request from ECOM that contains an eventType parameter with a value of
"REFUND_STATUS_CHANGED" . It is used to notify your system of the refund status .

Now, we are going to declare the Refund Status Change Data Model properties of your endpoint and its models along with each accepted parameter and possible value.

Request Model

Fields Description

Field NameData TypeDescription
refundIdstringUnique identifier for the refund.
statusstringStatus of the refund. (REFUNDED,REJECTED)
productstringProduct associated with the refund.
amountnumberAmount refunded.
currencystringCurrency of the refunded amount.
paymentMethodstringPayment method used for the original transaction.
refundedAtDateTimestamp when the refund was processed.
originalEcomIdstringOriginal transaction ID associated with the refund.
customerFullNamestringFull name of the customer.
customerPhoneCodestringPhone code of the customer.
customerPhoneNumberstringPhone number of the customer.
paymentIdstringUnique identifier for the payment.
trackingIdstringIdentifier used for tracking the transaction.
referenceIdstringReference ID associated with the transaction.
authorizationIdstringIdentifier for the payment authorization.
orderIdstringUnique identifier for the order associated with the transaction.
transactionIdstringIdentifier for the payment transaction id.