Skip to main content

Documentation Portal

Authenticating the Checkout Page

The authentication will be done on the platform side and a token will be sent via SendCart when the checkout loads.

Upon confirmation on the checkout page, the merchant/platform sends Global-e the purchase data, in SendCart, for further processing.

The merchant sends his JWT token for Global-e to validate the message.

Two parameters are added to the calls:

  • AuthToken

  • SessionId

The parameter contains the session token received from the authentication against the merchant’s platform.

Examples

Add the parameters to the API body parameters of the SendCart object:

SendCart

{ 

    "CartToken": null, 

    "SessionId": "123456", 

    "AuthToken": "34sdfdg43erfg43234fwsedfsdf423" 

    "ClientIP": "2a02:c7f:b57e:8400:51f:5fa6:3151:95a7", 

    "CountryCode": "GB", 

    "Culture": { 

        "CultureCode": "en-GB", 

        "InputDataCultureCode": null, 

        "PreferedCultureCode": null 

    }, 

    "Currency": { 

        "CurrencyCode": "GBP", 

        "OriginalCurrencyCode": "USD" 

    }, 

    "Discounts": [], 

    "FreeShipping": null, 

    "HubId": null, 

    "LocalShippingOptions": [{ 

Request

{ 
"MerchantGUID":"b1124f0c-0422-49b2-a356-7934eb58a54b", 

"ShippingCountryCode":"GB", 
"CardFields":{ 
"CardId":"64E3E449D5GD8G29" 
}, 
"MerchantCartToken":"11492df0a8bfe29f5a748c4a1db80cff", 
"CustomerId":null, 
"CustomerEmail":"test@gmail.com", 
"WebStoreCode":"Official Ripndip - Apparel, Accessories, Skate, & Lord Nermal ", 
"WebStoreInstanceCode":"GlobalEDefaultStoreInstance", 
"CartToken":"9d14ef15-d463-4480-82c2-806d1ec7b559" 
“AuthToken”:”34sdfdg43erfg43234fwsedfsdf423”, 

“SessionId”:”12345”, 
} 

Response

{ 
"IsValid":true, 

"Balance":"42.21", 
"CurrencyCode":"USD", 
"IsGlobalEGiftCard":false, 
"ErrorCode":null, 
"Message":"Success", 
"Description":null, 
"Success":true, 
"ErrorText":null 
} 

Note

This authentication is currently supported only for SFCC.