(GET) Push Checkout Stats

This is an endpoint where you can send your analytics data to our server. If you want to see your metrics , like number of conversions, conversions rate, etc, to be displayed in our dashboard, you have to send the click data to this endpoint. When user checkouts, you have to send both the session ID and the search ID.

GET#

https://api.altoshift.com/statsendpoint/stats/checkout

Header#

FieldTypeDescription
x-forwarded-forStringIP of the user

Request Header Example#

{
"x-forwarded-for": "125.160.114.239"
}

Request Body#

FieldTypeDescription
userAgentStringUser agent of the request
eventStringThe name of event (use 'checkout' for checkout data)
r optionalNumberNumber
engineTokenStringToken of the engine (token from the search layer)
productsObject[]List of object of the products
    searchIdStringSearch id that returned by search engine
    productIdStringProduct id of the specified item
    sessionIdStringSession id of the user that generated by the front end side

Param Example#

/statsendpoint/stats/checkout?event=checkout&products[0][productId]=58938&products[0][searchId]=77dda021cf7329e20a33fa892d6cea54&products[0][sessionId]=eaaezz9k7-248153346jrglw123&userAgent=Mozilla/5.0(Linux; Android 8.1.0; Redmi Note 5 Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile Safari/537.36 Instagram 77.0.0.20.113 Android (27/8.1.0; 440dpi; 1080x2030; Xiaomi/xiaomi; Redmi Note 5; whyred; qcom; in_ID; 139237670)&engineToken=5cd3f3042cd48000372c64fd-1557394180073-88706995

Success 200#

FieldTypeDescription
successBooleanRequest was successful

Success Response Example#

{
"success": true
}