cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batch/orders \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>' \
--data '
{
"body": [
{
"customerId": "<string>",
"orderId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"totalPaid": 123
}
]
}
'const options = {
method: 'POST',
headers: {
apikey: '<api-key>',
secretkey: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: JSON.stringify([
{
customerId: '<string>',
orderId: '<string>',
orderDate: '2023-11-07T05:31:56Z',
totalPaid: 123
}
])
})
};
fetch('https://api.gameball.co/api/v4.0/integrations/batch/orders', 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/orders"
payload = { "body": [
{
"customerId": "<string>",
"orderId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"totalPaid": 123
}
] }
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/orders");
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 \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\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/orders"
payload := strings.NewReader("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\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/orders",
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>',
'orderId' => '<string>',
'orderDate' => '2023-11-07T05:31:56Z',
'totalPaid' => 123
]
]
]),
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/orders")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\n }\n ]\n}")
.asString();{
"jobId": 123
}Track Orders Batch Job
Register multiple orders for single or multiple customers in a single API call for efficient order management and tracking.
POST
/
api
/
v4.0
/
integrations
/
batch
/
orders
cURL
curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/batch/orders \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--header 'secretkey: <api-key>' \
--data '
{
"body": [
{
"customerId": "<string>",
"orderId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"totalPaid": 123
}
]
}
'const options = {
method: 'POST',
headers: {
apikey: '<api-key>',
secretkey: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: JSON.stringify([
{
customerId: '<string>',
orderId: '<string>',
orderDate: '2023-11-07T05:31:56Z',
totalPaid: 123
}
])
})
};
fetch('https://api.gameball.co/api/v4.0/integrations/batch/orders', 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/orders"
payload = { "body": [
{
"customerId": "<string>",
"orderId": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"totalPaid": 123
}
] }
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/orders");
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 \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\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/orders"
payload := strings.NewReader("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\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/orders",
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>',
'orderId' => '<string>',
'orderDate' => '2023-11-07T05:31:56Z',
'totalPaid' => 123
]
]
]),
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/orders")
.header("apikey", "<api-key>")
.header("secretkey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"body\": [\n {\n \"customerId\": \"<string>\",\n \"orderId\": \"<string>\",\n \"orderDate\": \"2023-11-07T05:31:56Z\",\n \"totalPaid\": 123\n }\n ]\n}")
.asString();{
"jobId": 123
}Track Orders Batch Job
Bulk order processing for efficient order management and tracking. This endpoint allows you to register multiple orders for single or multiple customers in a single API call, improving performance and reducing network overhead.Security: Requires apiKey and secretKey headers.
Body
application/json
Show child attributes
Show child attributes
Response
200 - application/json
Batch order processing initiated successfully
The assigned job ID, which is later used for status verification and response retrieval.
Was this page helpful?
⌘I