Skip to main content

Documentation Portal

Refunds Notifications (from Global‑e)

Introduction

The NotifyOrderRefund API notifies the merchant about Global-e initiated refund issued to the end customer.

API Request Structure

Name

Type

Description

Mandatory

MerchantGUID

String

Unique identifier of the Merchant on Global-e.

Yes

MerchantOrderRefund:

{refund header fields, OrderRefundReason{}, Products[], Components[]}
API Response Structure

Name

Type

Description

Mandatory

Description

String

Optional response description. In case of an error, this property indicates the error message description.

No

ErrorCode

String

Error code to be returned when an error occurs.

No

InternalOrderId

String

Order unique identifier on the Merchant’s site

No*

(Optional in case of error, failure, or if the action is not related to a specific order)

Message

String

Optional response message. In case of an error, this property indicates the error message text.

No

OrderId

String

Order identifier on the Merchant’s site used for display and reporting purposes only. Unlike InternalOrderId, this identifier is not necessarily unique over time, as the Merchant’s site may potentially reuse it (for example after deleting the old order having the same OrderId).

No

PaymentAmount

String

The total payment amount in PaymentCurrency is charged for the order (if payment was processed in the respective API method call).

No

PaymentCurrencyCode

String

3-char ISO currency code for the order (if payment was processed in the respective API method call).

No

Success

Bool

Indicates if the call has succeeded. FALSE denotes an error or failure.

Yes

StatusCode

String

Code denoting the order status on the Merchant’s site (to be mapped on the Global‑e side).

No*

(Optional in case of error or failure)

API Request Sample
{
    "MerchantOrderId": "00708107",
    "MerchantInternalOrderId": "00708107",
    "RefundId": "443847",
    "RMANumber": null,
    "MerchantRMANumber": null,
    "MerchantGUID": "0511dy1d-cuc6-4es6-a5f1-64dc648348a7",
    "Products": [
        {
            "CartItemId": "1",
            "RefundQuantity": "1",
            "OriginalRefundAmount": "31.92",
            "RefundAmount": "135.90",
            "RefundAmountPercent": null,
            "RefundReason": {
                "OrderRefundReasonCode": "Did Not Fit",
                "Name": "Did Not Fit"
            },
            "RefundComments": null,
            "Sku": "412315929486"
        },
        {
            "CartItemId": "2",
            "RefundQuantity": "1",
            "OriginalRefundAmount": "31.92",
            "RefundAmount": "135.90",
            "RefundAmountPercent": null,
            "RefundReason": {
                "OrderRefundReasonCode": "Did Not Fit",
                "Name": "Did Not Fit"
            },
            "RefundComments": null,
            "Sku": "412319741121"
        }
    ],
    "Components": [
        {   
            "Amount": "271.80",
            "OriginalAmount": "63.84",
            "IsChargedToMerchant": "TRUE",
            "ComponentType": "Products"
        }
    ],
    "TotalLoyaltyPointsRefunded": 0,
    "TotalLoyaltyPointsRefundAmount": 0.0,
    "OrderId": "GE10068801664SG",
    "TotalRefundAmount": "271.80",
    "RefundReason": {
        "OrderRefundReasonCode": "Did Not Fit",
        "Name": "Did Not Fit"
    },
    "RefundComments": "Auto Refund due to Return",
    "OriginalTotalRefundAmount": "63.84",
    "ServiceGestureAmount": "",
    "WebStoreCode": null,
    "WebStoreInstanceCode": null,
    "FullRefund": false,
    "TotalMoneyRefundAmount": null,
    "TotalGiftCardsRefundAmount": "0",
    "GiftCardsData": null,
    "TotalGiftCardsRefundAmountinMerchantCurrency": 0.0,
    "RefundAsGiftCard": false
}
API Response Sample

Success Example

 {
    "Success ": "True ",
    "Message": "error message",
    "Description": "error  description"
}

Failure Example

{
     "Success ": "False ",
     "Message": "error message",
     "Description": "error  description"
    
}
Classes