curl --request POST \
--url https://{merchant_site_domain}/order-status-update-url \
--header 'Content-Type: application/json' \
--data '
{
"OrderId": "GE10047946955SG",
"StatusCode": "CANCELLED",
"MerchantGUID": "0511db1d-cdc6",
"CartId": "52c615003faea0995",
"MerchantOrderId": "00024345",
"MerchantInternalOrderId": "00024345",
"PriceCoefficientRate": 1,
"CartHash": "ICEzF5/PznED/VyE=",
"WebStoreCode": "shop",
"WebStoreInstanceCode": "www.qa.shop.asia",
"DiscountedShippingPrice": 7.12,
"InternationalDetails": {
"CurrencyCode": "SGD",
"TotalPrice": 29.9,
"TransactionCurrencyCode": "SGD",
"TransactionTotalPrice": 29.9,
"TotalShippingPrice": 4.16,
"SameDayDispatchCost": 0,
"TotalCCFPrice": 0,
"TotalDutiesPrice": 0,
"USSalesTax": 0,
"ShippingMethodCode": "STANDARD_APAC",
"ShippingMethodName": "Ship-GlobalE",
"PaymentMethodCode": "1",
"PaymentMethodName": "Visa",
"CardNumberLastFourDigits": "1111",
"ExpirationDate": "2030-3-31",
"DutiesGuaranteed": false,
"OrderTrackingNumber": null,
"OrderTrackingUrl": "https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%",
"OrderWaybillNumber": null,
"ShippingMethodTypeCode": "Standard",
"ShippingMethodTypeName": "Standard Courier",
"DeliveryDaysFrom": 2,
"DeliveryDaysTo": 3,
"ConsignmentFee": 0,
"SizeOverchargeValue": 0,
"RemoteAreaSurcharge": 0,
"DiscountedShippingPrice": 10,
"CashOnDeliveryFee": 0,
"ParcelsTracking": [],
"TotalVATAmount": 1.95,
"ShippingVATRate": 7,
"ShippingMethodStatusCode": "Undefined",
"ShippingMethodStatusName": "undefined",
"ShipmentStatusUpdateTime": null,
"ShipmentLocation": null
},
"GiftCards": null,
"DeclarativeShippingPriceInCustomerCurrency": null,
"TotalValueForCustoms": null,
"TaxCalculationRule": null
}
'import requests
url = "https://{merchant_site_domain}/order-status-update-url"
payload = {
"OrderId": "GE10047946955SG",
"StatusCode": "CANCELLED",
"MerchantGUID": "0511db1d-cdc6",
"CartId": "52c615003faea0995",
"MerchantOrderId": "00024345",
"MerchantInternalOrderId": "00024345",
"PriceCoefficientRate": 1,
"CartHash": "ICEzF5/PznED/VyE=",
"WebStoreCode": "shop",
"WebStoreInstanceCode": "www.qa.shop.asia",
"DiscountedShippingPrice": 7.12,
"InternationalDetails": {
"CurrencyCode": "SGD",
"TotalPrice": 29.9,
"TransactionCurrencyCode": "SGD",
"TransactionTotalPrice": 29.9,
"TotalShippingPrice": 4.16,
"SameDayDispatchCost": 0,
"TotalCCFPrice": 0,
"TotalDutiesPrice": 0,
"USSalesTax": 0,
"ShippingMethodCode": "STANDARD_APAC",
"ShippingMethodName": "Ship-GlobalE",
"PaymentMethodCode": "1",
"PaymentMethodName": "Visa",
"CardNumberLastFourDigits": "1111",
"ExpirationDate": "2030-3-31",
"DutiesGuaranteed": False,
"OrderTrackingNumber": None,
"OrderTrackingUrl": "https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%",
"OrderWaybillNumber": None,
"ShippingMethodTypeCode": "Standard",
"ShippingMethodTypeName": "Standard Courier",
"DeliveryDaysFrom": 2,
"DeliveryDaysTo": 3,
"ConsignmentFee": 0,
"SizeOverchargeValue": 0,
"RemoteAreaSurcharge": 0,
"DiscountedShippingPrice": 10,
"CashOnDeliveryFee": 0,
"ParcelsTracking": [],
"TotalVATAmount": 1.95,
"ShippingVATRate": 7,
"ShippingMethodStatusCode": "Undefined",
"ShippingMethodStatusName": "undefined",
"ShipmentStatusUpdateTime": None,
"ShipmentLocation": None
},
"GiftCards": None,
"DeclarativeShippingPriceInCustomerCurrency": None,
"TotalValueForCustoms": None,
"TaxCalculationRule": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
OrderId: 'GE10047946955SG',
StatusCode: 'CANCELLED',
MerchantGUID: '0511db1d-cdc6',
CartId: '52c615003faea0995',
MerchantOrderId: '00024345',
MerchantInternalOrderId: '00024345',
PriceCoefficientRate: 1,
CartHash: 'ICEzF5/PznED/VyE=',
WebStoreCode: 'shop',
WebStoreInstanceCode: 'www.qa.shop.asia',
DiscountedShippingPrice: 7.12,
InternationalDetails: {
CurrencyCode: 'SGD',
TotalPrice: 29.9,
TransactionCurrencyCode: 'SGD',
TransactionTotalPrice: 29.9,
TotalShippingPrice: 4.16,
SameDayDispatchCost: 0,
TotalCCFPrice: 0,
TotalDutiesPrice: 0,
USSalesTax: 0,
ShippingMethodCode: 'STANDARD_APAC',
ShippingMethodName: 'Ship-GlobalE',
PaymentMethodCode: '1',
PaymentMethodName: 'Visa',
CardNumberLastFourDigits: '1111',
ExpirationDate: '2030-3-31',
DutiesGuaranteed: false,
OrderTrackingNumber: null,
OrderTrackingUrl: 'https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%',
OrderWaybillNumber: null,
ShippingMethodTypeCode: 'Standard',
ShippingMethodTypeName: 'Standard Courier',
DeliveryDaysFrom: 2,
DeliveryDaysTo: 3,
ConsignmentFee: 0,
SizeOverchargeValue: 0,
RemoteAreaSurcharge: 0,
DiscountedShippingPrice: 10,
CashOnDeliveryFee: 0,
ParcelsTracking: [],
TotalVATAmount: 1.95,
ShippingVATRate: 7,
ShippingMethodStatusCode: 'Undefined',
ShippingMethodStatusName: 'undefined',
ShipmentStatusUpdateTime: null,
ShipmentLocation: null
},
GiftCards: null,
DeclarativeShippingPriceInCustomerCurrency: null,
TotalValueForCustoms: null,
TaxCalculationRule: null
})
};
fetch('https://{merchant_site_domain}/order-status-update-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{merchant_site_domain}/order-status-update-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'OrderId' => 'GE10047946955SG',
'StatusCode' => 'CANCELLED',
'MerchantGUID' => '0511db1d-cdc6',
'CartId' => '52c615003faea0995',
'MerchantOrderId' => '00024345',
'MerchantInternalOrderId' => '00024345',
'PriceCoefficientRate' => 1,
'CartHash' => 'ICEzF5/PznED/VyE=',
'WebStoreCode' => 'shop',
'WebStoreInstanceCode' => 'www.qa.shop.asia',
'DiscountedShippingPrice' => 7.12,
'InternationalDetails' => [
'CurrencyCode' => 'SGD',
'TotalPrice' => 29.9,
'TransactionCurrencyCode' => 'SGD',
'TransactionTotalPrice' => 29.9,
'TotalShippingPrice' => 4.16,
'SameDayDispatchCost' => 0,
'TotalCCFPrice' => 0,
'TotalDutiesPrice' => 0,
'USSalesTax' => 0,
'ShippingMethodCode' => 'STANDARD_APAC',
'ShippingMethodName' => 'Ship-GlobalE',
'PaymentMethodCode' => '1',
'PaymentMethodName' => 'Visa',
'CardNumberLastFourDigits' => '1111',
'ExpirationDate' => '2030-3-31',
'DutiesGuaranteed' => false,
'OrderTrackingNumber' => null,
'OrderTrackingUrl' => 'https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%',
'OrderWaybillNumber' => null,
'ShippingMethodTypeCode' => 'Standard',
'ShippingMethodTypeName' => 'Standard Courier',
'DeliveryDaysFrom' => 2,
'DeliveryDaysTo' => 3,
'ConsignmentFee' => 0,
'SizeOverchargeValue' => 0,
'RemoteAreaSurcharge' => 0,
'DiscountedShippingPrice' => 10,
'CashOnDeliveryFee' => 0,
'ParcelsTracking' => [
],
'TotalVATAmount' => 1.95,
'ShippingVATRate' => 7,
'ShippingMethodStatusCode' => 'Undefined',
'ShippingMethodStatusName' => 'undefined',
'ShipmentStatusUpdateTime' => null,
'ShipmentLocation' => null
],
'GiftCards' => null,
'DeclarativeShippingPriceInCustomerCurrency' => null,
'TotalValueForCustoms' => null,
'TaxCalculationRule' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{merchant_site_domain}/order-status-update-url"
payload := strings.NewReader("{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{merchant_site_domain}/order-status-update-url")
.header("Content-Type", "application/json")
.body("{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{merchant_site_domain}/order-status-update-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}"
response = http.request(request)
puts response.read_body{
"action": "Globale-OrderUpdateStatus",
"queryString": "",
"locale": "en_SG",
"InternalOrderId": "00024345",
"OrderId": "00024345",
"Success": true,
"ErrorCode": null,
"Message": null,
"Description": null
}Update Order Status (from Global-e)
Global-e posts the order status to a merchant-hosted endpoint via the UpdateOrderStatus (Global-e to Merchant) API.
curl --request POST \
--url https://{merchant_site_domain}/order-status-update-url \
--header 'Content-Type: application/json' \
--data '
{
"OrderId": "GE10047946955SG",
"StatusCode": "CANCELLED",
"MerchantGUID": "0511db1d-cdc6",
"CartId": "52c615003faea0995",
"MerchantOrderId": "00024345",
"MerchantInternalOrderId": "00024345",
"PriceCoefficientRate": 1,
"CartHash": "ICEzF5/PznED/VyE=",
"WebStoreCode": "shop",
"WebStoreInstanceCode": "www.qa.shop.asia",
"DiscountedShippingPrice": 7.12,
"InternationalDetails": {
"CurrencyCode": "SGD",
"TotalPrice": 29.9,
"TransactionCurrencyCode": "SGD",
"TransactionTotalPrice": 29.9,
"TotalShippingPrice": 4.16,
"SameDayDispatchCost": 0,
"TotalCCFPrice": 0,
"TotalDutiesPrice": 0,
"USSalesTax": 0,
"ShippingMethodCode": "STANDARD_APAC",
"ShippingMethodName": "Ship-GlobalE",
"PaymentMethodCode": "1",
"PaymentMethodName": "Visa",
"CardNumberLastFourDigits": "1111",
"ExpirationDate": "2030-3-31",
"DutiesGuaranteed": false,
"OrderTrackingNumber": null,
"OrderTrackingUrl": "https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%",
"OrderWaybillNumber": null,
"ShippingMethodTypeCode": "Standard",
"ShippingMethodTypeName": "Standard Courier",
"DeliveryDaysFrom": 2,
"DeliveryDaysTo": 3,
"ConsignmentFee": 0,
"SizeOverchargeValue": 0,
"RemoteAreaSurcharge": 0,
"DiscountedShippingPrice": 10,
"CashOnDeliveryFee": 0,
"ParcelsTracking": [],
"TotalVATAmount": 1.95,
"ShippingVATRate": 7,
"ShippingMethodStatusCode": "Undefined",
"ShippingMethodStatusName": "undefined",
"ShipmentStatusUpdateTime": null,
"ShipmentLocation": null
},
"GiftCards": null,
"DeclarativeShippingPriceInCustomerCurrency": null,
"TotalValueForCustoms": null,
"TaxCalculationRule": null
}
'import requests
url = "https://{merchant_site_domain}/order-status-update-url"
payload = {
"OrderId": "GE10047946955SG",
"StatusCode": "CANCELLED",
"MerchantGUID": "0511db1d-cdc6",
"CartId": "52c615003faea0995",
"MerchantOrderId": "00024345",
"MerchantInternalOrderId": "00024345",
"PriceCoefficientRate": 1,
"CartHash": "ICEzF5/PznED/VyE=",
"WebStoreCode": "shop",
"WebStoreInstanceCode": "www.qa.shop.asia",
"DiscountedShippingPrice": 7.12,
"InternationalDetails": {
"CurrencyCode": "SGD",
"TotalPrice": 29.9,
"TransactionCurrencyCode": "SGD",
"TransactionTotalPrice": 29.9,
"TotalShippingPrice": 4.16,
"SameDayDispatchCost": 0,
"TotalCCFPrice": 0,
"TotalDutiesPrice": 0,
"USSalesTax": 0,
"ShippingMethodCode": "STANDARD_APAC",
"ShippingMethodName": "Ship-GlobalE",
"PaymentMethodCode": "1",
"PaymentMethodName": "Visa",
"CardNumberLastFourDigits": "1111",
"ExpirationDate": "2030-3-31",
"DutiesGuaranteed": False,
"OrderTrackingNumber": None,
"OrderTrackingUrl": "https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%",
"OrderWaybillNumber": None,
"ShippingMethodTypeCode": "Standard",
"ShippingMethodTypeName": "Standard Courier",
"DeliveryDaysFrom": 2,
"DeliveryDaysTo": 3,
"ConsignmentFee": 0,
"SizeOverchargeValue": 0,
"RemoteAreaSurcharge": 0,
"DiscountedShippingPrice": 10,
"CashOnDeliveryFee": 0,
"ParcelsTracking": [],
"TotalVATAmount": 1.95,
"ShippingVATRate": 7,
"ShippingMethodStatusCode": "Undefined",
"ShippingMethodStatusName": "undefined",
"ShipmentStatusUpdateTime": None,
"ShipmentLocation": None
},
"GiftCards": None,
"DeclarativeShippingPriceInCustomerCurrency": None,
"TotalValueForCustoms": None,
"TaxCalculationRule": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
OrderId: 'GE10047946955SG',
StatusCode: 'CANCELLED',
MerchantGUID: '0511db1d-cdc6',
CartId: '52c615003faea0995',
MerchantOrderId: '00024345',
MerchantInternalOrderId: '00024345',
PriceCoefficientRate: 1,
CartHash: 'ICEzF5/PznED/VyE=',
WebStoreCode: 'shop',
WebStoreInstanceCode: 'www.qa.shop.asia',
DiscountedShippingPrice: 7.12,
InternationalDetails: {
CurrencyCode: 'SGD',
TotalPrice: 29.9,
TransactionCurrencyCode: 'SGD',
TransactionTotalPrice: 29.9,
TotalShippingPrice: 4.16,
SameDayDispatchCost: 0,
TotalCCFPrice: 0,
TotalDutiesPrice: 0,
USSalesTax: 0,
ShippingMethodCode: 'STANDARD_APAC',
ShippingMethodName: 'Ship-GlobalE',
PaymentMethodCode: '1',
PaymentMethodName: 'Visa',
CardNumberLastFourDigits: '1111',
ExpirationDate: '2030-3-31',
DutiesGuaranteed: false,
OrderTrackingNumber: null,
OrderTrackingUrl: 'https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%',
OrderWaybillNumber: null,
ShippingMethodTypeCode: 'Standard',
ShippingMethodTypeName: 'Standard Courier',
DeliveryDaysFrom: 2,
DeliveryDaysTo: 3,
ConsignmentFee: 0,
SizeOverchargeValue: 0,
RemoteAreaSurcharge: 0,
DiscountedShippingPrice: 10,
CashOnDeliveryFee: 0,
ParcelsTracking: [],
TotalVATAmount: 1.95,
ShippingVATRate: 7,
ShippingMethodStatusCode: 'Undefined',
ShippingMethodStatusName: 'undefined',
ShipmentStatusUpdateTime: null,
ShipmentLocation: null
},
GiftCards: null,
DeclarativeShippingPriceInCustomerCurrency: null,
TotalValueForCustoms: null,
TaxCalculationRule: null
})
};
fetch('https://{merchant_site_domain}/order-status-update-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{merchant_site_domain}/order-status-update-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'OrderId' => 'GE10047946955SG',
'StatusCode' => 'CANCELLED',
'MerchantGUID' => '0511db1d-cdc6',
'CartId' => '52c615003faea0995',
'MerchantOrderId' => '00024345',
'MerchantInternalOrderId' => '00024345',
'PriceCoefficientRate' => 1,
'CartHash' => 'ICEzF5/PznED/VyE=',
'WebStoreCode' => 'shop',
'WebStoreInstanceCode' => 'www.qa.shop.asia',
'DiscountedShippingPrice' => 7.12,
'InternationalDetails' => [
'CurrencyCode' => 'SGD',
'TotalPrice' => 29.9,
'TransactionCurrencyCode' => 'SGD',
'TransactionTotalPrice' => 29.9,
'TotalShippingPrice' => 4.16,
'SameDayDispatchCost' => 0,
'TotalCCFPrice' => 0,
'TotalDutiesPrice' => 0,
'USSalesTax' => 0,
'ShippingMethodCode' => 'STANDARD_APAC',
'ShippingMethodName' => 'Ship-GlobalE',
'PaymentMethodCode' => '1',
'PaymentMethodName' => 'Visa',
'CardNumberLastFourDigits' => '1111',
'ExpirationDate' => '2030-3-31',
'DutiesGuaranteed' => false,
'OrderTrackingNumber' => null,
'OrderTrackingUrl' => 'https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%',
'OrderWaybillNumber' => null,
'ShippingMethodTypeCode' => 'Standard',
'ShippingMethodTypeName' => 'Standard Courier',
'DeliveryDaysFrom' => 2,
'DeliveryDaysTo' => 3,
'ConsignmentFee' => 0,
'SizeOverchargeValue' => 0,
'RemoteAreaSurcharge' => 0,
'DiscountedShippingPrice' => 10,
'CashOnDeliveryFee' => 0,
'ParcelsTracking' => [
],
'TotalVATAmount' => 1.95,
'ShippingVATRate' => 7,
'ShippingMethodStatusCode' => 'Undefined',
'ShippingMethodStatusName' => 'undefined',
'ShipmentStatusUpdateTime' => null,
'ShipmentLocation' => null
],
'GiftCards' => null,
'DeclarativeShippingPriceInCustomerCurrency' => null,
'TotalValueForCustoms' => null,
'TaxCalculationRule' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{merchant_site_domain}/order-status-update-url"
payload := strings.NewReader("{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{merchant_site_domain}/order-status-update-url")
.header("Content-Type", "application/json")
.body("{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{merchant_site_domain}/order-status-update-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"OrderId\": \"GE10047946955SG\",\n \"StatusCode\": \"CANCELLED\",\n \"MerchantGUID\": \"0511db1d-cdc6\",\n \"CartId\": \"52c615003faea0995\",\n \"MerchantOrderId\": \"00024345\",\n \"MerchantInternalOrderId\": \"00024345\",\n \"PriceCoefficientRate\": 1,\n \"CartHash\": \"ICEzF5/PznED/VyE=\",\n \"WebStoreCode\": \"shop\",\n \"WebStoreInstanceCode\": \"www.qa.shop.asia\",\n \"DiscountedShippingPrice\": 7.12,\n \"InternationalDetails\": {\n \"CurrencyCode\": \"SGD\",\n \"TotalPrice\": 29.9,\n \"TransactionCurrencyCode\": \"SGD\",\n \"TransactionTotalPrice\": 29.9,\n \"TotalShippingPrice\": 4.16,\n \"SameDayDispatchCost\": 0,\n \"TotalCCFPrice\": 0,\n \"TotalDutiesPrice\": 0,\n \"USSalesTax\": 0,\n \"ShippingMethodCode\": \"STANDARD_APAC\",\n \"ShippingMethodName\": \"Ship-GlobalE\",\n \"PaymentMethodCode\": \"1\",\n \"PaymentMethodName\": \"Visa\",\n \"CardNumberLastFourDigits\": \"1111\",\n \"ExpirationDate\": \"2030-3-31\",\n \"DutiesGuaranteed\": false,\n \"OrderTrackingNumber\": null,\n \"OrderTrackingUrl\": \"https%3a%2f%2fwww2.bglobale.com%2fOrder%2fTrack%2fmZVW%3fOrderId%3dGE10047946955SG%\",\n \"OrderWaybillNumber\": null,\n \"ShippingMethodTypeCode\": \"Standard\",\n \"ShippingMethodTypeName\": \"Standard Courier\",\n \"DeliveryDaysFrom\": 2,\n \"DeliveryDaysTo\": 3,\n \"ConsignmentFee\": 0,\n \"SizeOverchargeValue\": 0,\n \"RemoteAreaSurcharge\": 0,\n \"DiscountedShippingPrice\": 10,\n \"CashOnDeliveryFee\": 0,\n \"ParcelsTracking\": [],\n \"TotalVATAmount\": 1.95,\n \"ShippingVATRate\": 7,\n \"ShippingMethodStatusCode\": \"Undefined\",\n \"ShippingMethodStatusName\": \"undefined\",\n \"ShipmentStatusUpdateTime\": null,\n \"ShipmentLocation\": null\n },\n \"GiftCards\": null,\n \"DeclarativeShippingPriceInCustomerCurrency\": null,\n \"TotalValueForCustoms\": null,\n \"TaxCalculationRule\": null\n}"
response = http.request(request)
puts response.read_body{
"action": "Globale-OrderUpdateStatus",
"queryString": "",
"locale": "en_SG",
"InternalOrderId": "00024345",
"OrderId": "00024345",
"Success": true,
"ErrorCode": null,
"Message": null,
"Description": null
}Body
Provides full details for the merchant order. Only OrderId and StatusCode are mandatory; requests can contain more parameters than listed.
Global‑e order unique identifier.
Code denoting the order status. Only OrderId and StatusCode are mandatory for this method.
Merchant's unique identifier (present in the worked example).
International order details. Inferred entirely from the worked example (no field table on the page); types inferred from the example values. See review §2.
Show child attributes
Show child attributes
Null in the worked example; element shape not documented.
Response
Success or failure. Check the Success field to distinguish. On failure, Message and Description carry the error text.
Provides details regarding the API call response.
The action name (present in the worked success example).
Query string echoed back (present in the worked success example).
Locale of the order (present in the worked success example).
Order unique identifier on the Merchant's site.
Order identifier on the Merchant's site.
Indicates if the call has succeeded. TRUE - Call succeeded. FALSE - Denotes an error or failure.
Error code to be returned when an error occurs.
Optional response message. In case of an error, this property indicates the error message text.
Optional response description. In case of an error, this property indicates the error message description.

