Track Order
Changed onThe API call is used to track a new order and is specifically designed for e-commerce solutions. It helps capture essential order details, enabling better tracking of customer purchases and order management.
Security: Requires both apikey and secretkey headers.
Channel Merging Available: If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball's channel merging feature helps unify customer profiles. By including the customer's mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.
Request
- Base URL: https://api.gameball.co
- URL: https://api.gameball.co/api/v4.0/integrations/orders
- Auth: API key in header apikey and API key in header secretkey
Request body
Example request
{
"customerId": "cust_123456789",
"email": "john.doe@example.com",
"mobile": "+1234567890",
"orderId": "ORD12345",
"orderDate": "2024-10-16T08:13:29.290Z",
"totalPaid": 250.75,
"totalPrice": 300,
"totalDiscount": 50,
"totalShipping": 10,
"totalTax": 15,
"lineItems": [
{
"productId": "PROD98765",
"quantity": 2,
"price": 100,
"sku": "SKU98765",
"tags": [
"electronics",
"smartphone"
],
"category": [
"mobile phones"
],
"weight": 0.5,
"vendor": "TechVendor",
"collection": [
"latest gadgets"
],
"title": "Smartphone XYZ",
"taxes": 7.5,
"discount": 25,
"extra": {
"subClass": "SUBCLASS123"
}
}
],
"redemption": {
"pointsHoldReference": "HOLD123",
"couponsLockReference": "LOCK123",
"couponCodes": [
"DISCOUNT10"
]
},
"extra": {
"paymentMethod": "CREDIT CARD"
},
"merchant": {
"uniqueId": "MERCH001",
"name": "TechGadgetStore",
"branch": {
"uniqueId": "BRANCH001",
"name": "Downtown Branch"
}
},
"channel": "pos",
"cartId": "CART98765",
"cashbackConfigurations": {
"returnWindow": 7
}
}Response
Order tracked successfully
Example response
{
"customerId": "cust_123456789",
"redeemedPoints": 1000,
"rewardedPoints": 101,
"lineItems": [
{
"productId": "PROD98765",
"quantity": 2,
"decimalPoints": 91.25,
"points": 91
}
]
}Changes
- info
the endpoint scheme security
apiKey AND secretKeywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API - info
the endpoint scheme security
secretKeywas removed from the API
- info
- info
removed the non-success response with the status
- info