cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batch/customers \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>' \
--data '
{
"body": [
{
"customerId": "<string>",
"email": "<string>",
"mobile": "<string>",
"deviceToken": "<string>",
"osType": "<string>",
"customerAttributes": {
"displayName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"gender": "<string>",
"mobile": "<string>",
"dateOfBirth": "<string>",
"joinDate": "<string>",
"country": "<string>",
"city": "<string>",
"zip": "<string>",
"preferredLanguage": "<string>",
"source": "<string>",
"utms": "<array>",
"devices": "<array>",
"paymentMethods": "<array>",
"totalSpent": 123,
"lastOrderDate": "<string>",
"totalOrders": 123,
"avgOrderAmount": 123,
"custom": {}
},
"referrerCode": "<string>",
"guest": true
}
]
}
'const options = {
method: 'POST',
headers: {
apikey: '<api-key>',
secretkey: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: JSON.stringify([
{
customerId: '<string>',
email: '<string>',
mobile: '<string>',
deviceToken: '<string>',
osType: '<string>',
customerAttributes: {
displayName: '<string>',
firstName: '<string>',
lastName: '<string>',
email: '<string>',
gender: '<string>',
mobile: '<string>',
dateOfBirth: '<string>',
joinDate: '<string>',
country: '<string>',
city: '<string>',
zip: '<string>',
preferredLanguage: '<string>',
source: '<string>',
utms: '<array>',
devices: '<array>',
paymentMethods: '<array>',
totalSpent: 123,
lastOrderDate: '<string>',
totalOrders: 123,
avgOrderAmount: 123,
custom: {}
},
referrerCode: '<string>',
guest: true
}
])
})
};
fetch('https://api.gameball.co/api/v4.0/integrations/batch/customers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/batch/customers"
payload = { "body": [
{
"customerId": "<string>",
"email": "<string>",
"mobile": "<string>",
"deviceToken": "<string>",
"osType": "<string>",
"customerAttributes": {
"displayName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"gender": "<string>",
"mobile": "<string>",
"dateOfBirth": "<string>",
"joinDate": "<string>",
"country": "<string>",
"city": "<string>",
"zip": "<string>",
"preferredLanguage": "<string>",
"source": "<string>",
"utms": "<array>",
"devices": "<array>",
"paymentMethods": "<array>",
"totalSpent": 123,
"lastOrderDate": "<string>",
"totalOrders": 123,
"avgOrderAmount": 123,
"custom": {}
},
"referrerCode": "<string>",
"guest": True
}
] }
headers = {
"apikey": "<api-key>",
"secretkey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/batch/customers");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
request.AddHeader("secretkey", "<api-key>");
request.AddJsonBody("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/batch/customers"
payload := strings.NewReader("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("secretkey", "<api-key>")
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))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/batch/customers",
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([
'body' => [
[
'customerId' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'deviceToken' => '<string>',
'osType' => '<string>',
'customerAttributes' => [
'displayName' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'email' => '<string>',
'gender' => '<string>',
'mobile' => '<string>',
'dateOfBirth' => '<string>',
'joinDate' => '<string>',
'country' => '<string>',
'city' => '<string>',
'zip' => '<string>',
'preferredLanguage' => '<string>',
'source' => '<string>',
'utms' => '<array>',
'devices' => '<array>',
'paymentMethods' => '<array>',
'totalSpent' => 123,
'lastOrderDate' => '<string>',
'totalOrders' => 123,
'avgOrderAmount' => 123,
'custom' => [
]
],
'referrerCode' => '<string>',
'guest' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>",
"secretkey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gameball.co/api/v4.0/integrations/batch/customers")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}")
.asString();{
"jobId": 123
}Create Customers Batch Job
Create or update multiple customer profiles in a single API call for bulk user imports and mass profile updates.
POST
/
api
/
v4.0
/
integrations
/
batch
/
customers
cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batch/customers \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>' \
--data '
{
"body": [
{
"customerId": "<string>",
"email": "<string>",
"mobile": "<string>",
"deviceToken": "<string>",
"osType": "<string>",
"customerAttributes": {
"displayName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"gender": "<string>",
"mobile": "<string>",
"dateOfBirth": "<string>",
"joinDate": "<string>",
"country": "<string>",
"city": "<string>",
"zip": "<string>",
"preferredLanguage": "<string>",
"source": "<string>",
"utms": "<array>",
"devices": "<array>",
"paymentMethods": "<array>",
"totalSpent": 123,
"lastOrderDate": "<string>",
"totalOrders": 123,
"avgOrderAmount": 123,
"custom": {}
},
"referrerCode": "<string>",
"guest": true
}
]
}
'const options = {
method: 'POST',
headers: {
apikey: '<api-key>',
secretkey: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: JSON.stringify([
{
customerId: '<string>',
email: '<string>',
mobile: '<string>',
deviceToken: '<string>',
osType: '<string>',
customerAttributes: {
displayName: '<string>',
firstName: '<string>',
lastName: '<string>',
email: '<string>',
gender: '<string>',
mobile: '<string>',
dateOfBirth: '<string>',
joinDate: '<string>',
country: '<string>',
city: '<string>',
zip: '<string>',
preferredLanguage: '<string>',
source: '<string>',
utms: '<array>',
devices: '<array>',
paymentMethods: '<array>',
totalSpent: 123,
lastOrderDate: '<string>',
totalOrders: 123,
avgOrderAmount: 123,
custom: {}
},
referrerCode: '<string>',
guest: true
}
])
})
};
fetch('https://api.gameball.co/api/v4.0/integrations/batch/customers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gameball.co/api/v4.0/integrations/batch/customers"
payload = { "body": [
{
"customerId": "<string>",
"email": "<string>",
"mobile": "<string>",
"deviceToken": "<string>",
"osType": "<string>",
"customerAttributes": {
"displayName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"gender": "<string>",
"mobile": "<string>",
"dateOfBirth": "<string>",
"joinDate": "<string>",
"country": "<string>",
"city": "<string>",
"zip": "<string>",
"preferredLanguage": "<string>",
"source": "<string>",
"utms": "<array>",
"devices": "<array>",
"paymentMethods": "<array>",
"totalSpent": 123,
"lastOrderDate": "<string>",
"totalOrders": 123,
"avgOrderAmount": 123,
"custom": {}
},
"referrerCode": "<string>",
"guest": True
}
] }
headers = {
"apikey": "<api-key>",
"secretkey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.gameball.co/api/v4.0/integrations/batch/customers");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
request.AddHeader("secretkey", "<api-key>");
request.AddJsonBody("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gameball.co/api/v4.0/integrations/batch/customers"
payload := strings.NewReader("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("secretkey", "<api-key>")
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))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gameball.co/api/v4.0/integrations/batch/customers",
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([
'body' => [
[
'customerId' => '<string>',
'email' => '<string>',
'mobile' => '<string>',
'deviceToken' => '<string>',
'osType' => '<string>',
'customerAttributes' => [
'displayName' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'email' => '<string>',
'gender' => '<string>',
'mobile' => '<string>',
'dateOfBirth' => '<string>',
'joinDate' => '<string>',
'country' => '<string>',
'city' => '<string>',
'zip' => '<string>',
'preferredLanguage' => '<string>',
'source' => '<string>',
'utms' => '<array>',
'devices' => '<array>',
'paymentMethods' => '<array>',
'totalSpent' => 123,
'lastOrderDate' => '<string>',
'totalOrders' => 123,
'avgOrderAmount' => 123,
'custom' => [
]
],
'referrerCode' => '<string>',
'guest' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>",
"secretkey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.gameball.co/api/v4.0/integrations/batch/customers")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"email\": \"<string>\",\n \"mobile\": \"<string>\",\n \"deviceToken\": \"<string>\",\n \"osType\": \"<string>\",\n \"customerAttributes\": {\n \"displayName\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"mobile\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"joinDate\": \"<string>\",\n \"country\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"preferredLanguage\": \"<string>\",\n \"source\": \"<string>\",\n \"utms\": \"<array>\",\n \"devices\": \"<array>\",\n \"paymentMethods\": \"<array>\",\n \"totalSpent\": 123,\n \"lastOrderDate\": \"<string>\",\n \"totalOrders\": 123,\n \"avgOrderAmount\": 123,\n \"custom\": {}\n },\n \"referrerCode\": \"<string>\",\n \"guest\": true\n }\n ]\n}")
.asString();{
"jobId": 123
}Create Customers Batch Job
The Batch Customer API allows clients to create or update multiple customer profiles in a single API call. This is useful for bulk user imports, mass profile updates, and large-scale customer data synchronization while reducing network overhead and improving efficiency.Security: Requires apiKey and secretKey headers.
Body
application/json
Show child attributes
Show child attributes
Response
200 - application/json
Batch customer data processing initiated successfully
The assigned job ID, which is later used for status verification and response retrieval.
Was this page helpful?
⌘I