Locations
Warehouses, shops and pickup points. Every example sets SOOQUNA_TOKEN from the environment; see authentication. Responses are from a test store, cut to two items per list.
| Endpoint | Method | Path |
|---|---|---|
| Create a location | POST | /locations |
| List locations | GET | /locations |
| Get a location | GET | /locations/{id} |
| Update a location | PATCH | /locations/{id} |
| Deactivate a location | POST | /locations/{id}/deactivate |
| Activate a location | POST | /locations/{id}/activate |
| Delete a location | DELETE | /locations/{id} |
Create a location
Section titled “Create a location”POST /locations · Scope: write_locations
curl -X POST "https://api.sooquna.com/admin/api/2026-10/locations" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "West Bay shop", "address": { "address1": "Diplomatic Street, Tower 2", "city": "Doha", "country_code": "QA", "phone": "+97444001100" }, "fulfils_online_orders": true, "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h"}'const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations", { method: "POST", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ "name": "West Bay shop", "address": { "address1": "Diplomatic Street, Tower 2", "city": "Doha", "country_code": "QA", "phone": "+97444001100" }, "fulfils_online_orders": true, "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h" }),});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.post( "https://api.sooquna.com/admin/api/2026-10/locations", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], }, json={ "name": "West Bay shop", "address": { "address1": "Diplomatic Street, Tower 2", "city": "Doha", "country_code": "QA", "phone": "+97444001100", }, "fulfils_online_orders": True, "pickup_enabled": True, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h", },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), 'Content-Type: application/json', ], CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => json_encode([ 'name' => 'West Bay shop', 'address' => [ 'address1' => 'Diplomatic Street, Tower 2', 'city' => 'Doha', 'country_code' => 'QA', 'phone' => '+97444001100', ], 'fulfils_online_orders' => true, 'pickup_enabled' => true, 'pickup_instructions' => 'Ask at the counter.', 'pickup_ready_time' => '1h', ], JSON_UNESCAPED_UNICODE),]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os" "strings")
func main() { body := `{ "name": "West Bay shop", "address": { "address1": "Diplomatic Street, Tower 2", "city": "Doha", "country_code": "QA", "phone": "+97444001100" }, "fulfils_online_orders": true, "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h"}` req, err := http.NewRequest("POST", "https://api.sooquna.com/admin/api/2026-10/locations", strings.NewReader(body)) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) req.Header.Set("Content-Type", "application/json") res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Post, "https://api.sooquna.com/admin/api/2026-10/locations");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));req.Content = new StringContent("""{ "name": "West Bay shop", "address": { "address1": "Diplomatic Street, Tower 2", "city": "Doha", "country_code": "QA", "phone": "+97444001100" }, "fulfils_online_orders": true, "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h"}""", Encoding.UTF8, "application/json");var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 201
{ "address": { "address1": "Diplomatic Street, Tower 2", "address2": "", "city": "Doha", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": true, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000023", "is_active": true, "name": "West Bay shop", "on_hand": 0, "phone": "", "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h", "position": 1, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 1}List locations
Section titled “List locations”GET /locations · Scope: read_locations
curl -X GET "https://api.sooquna.com/admin/api/2026-10/locations" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations", { method: "GET", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, },});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.get( "https://api.sooquna.com/admin/api/2026-10/locations", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), ], CURLOPT_RETURNTRANSFER => true,]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os")
func main() { req, err := http.NewRequest("GET", "https://api.sooquna.com/admin/api/2026-10/locations", nil) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Get, "https://api.sooquna.com/admin/api/2026-10/locations");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 200
{ "data": [ { "address": { "address1": "Diplomatic Street, Tower 2", "address2": "", "city": "Doha", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": true, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000023", "is_active": true, "name": "West Bay shop", "on_hand": 0, "phone": "", "pickup_enabled": true, "pickup_instructions": "Ask at the counter.", "pickup_ready_time": "1h", "position": 1, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 1 } ]}Get a location
Section titled “Get a location”GET /locations/{id} · Scope: read_locations
| Parameter | In | Description |
|---|---|---|
id |
path | The resource’s ID. |
curl -X GET "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", { method: "GET", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, },});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.get( "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), ], CURLOPT_RETURNTRANSFER => true,]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os")
func main() { req, err := http.NewRequest("GET", "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", nil) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Get, "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 200
{ "address": { "address1": "Street 220, Building 14", "address2": "", "city": "Al Wakrah", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": true, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000021", "is_active": true, "name": "Al Wakrah warehouse", "on_hand": 0, "phone": "", "pickup_enabled": true, "pickup_instructions": "Collect from the side gate, 9am–9pm.", "pickup_ready_time": "2h", "position": 2, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 1}Update a location
Section titled “Update a location”PATCH /locations/{id} · Scope: write_locations
| Parameter | In | Description |
|---|---|---|
id |
path | The resource’s ID. |
curl -X PATCH "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Al Wakrah warehouse", "pickup_enabled": false, "version": 1}'const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", { method: "PATCH", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({"name": "Al Wakrah warehouse", "pickup_enabled": false, "version": 1}),});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.patch( "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], }, json={ "name": "Al Wakrah warehouse", "pickup_enabled": False, "version": 1, },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'PATCH', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), 'Content-Type: application/json', ], CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => json_encode([ 'name' => 'Al Wakrah warehouse', 'pickup_enabled' => false, 'version' => 1, ], JSON_UNESCAPED_UNICODE),]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os" "strings")
func main() { body := `{"name": "Al Wakrah warehouse", "pickup_enabled": false, "version": 1}` req, err := http.NewRequest("PATCH", "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", strings.NewReader(body)) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) req.Header.Set("Content-Type", "application/json") res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Patch, "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));req.Content = new StringContent("""{"name": "Al Wakrah warehouse", "pickup_enabled": false, "version": 1}""", Encoding.UTF8, "application/json");var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 200
{ "address": { "address1": "", "address2": "", "city": "", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": false, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000021", "is_active": true, "name": "Al Wakrah warehouse", "on_hand": 0, "phone": "", "pickup_enabled": false, "pickup_instructions": "", "pickup_ready_time": "1h", "position": 2, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 2}Deactivate a location
Section titled “Deactivate a location”POST /locations/{id}/deactivate · Scope: write_locations
| Parameter | In | Description |
|---|---|---|
id |
path | The resource’s ID. |
curl -X POST "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate", { method: "POST", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, },});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.post( "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), ], CURLOPT_RETURNTRANSFER => true,]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os")
func main() { req, err := http.NewRequest("POST", "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate", nil) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Post, "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/deactivate");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 200
{ "address": { "address1": "", "address2": "", "city": "", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": false, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000021", "is_active": false, "name": "Al Wakrah warehouse", "on_hand": 0, "phone": "", "pickup_enabled": false, "pickup_instructions": "", "pickup_ready_time": "1h", "position": 2, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 3}Activate a location
Section titled “Activate a location”POST /locations/{id}/activate · Scope: write_locations
| Parameter | In | Description |
|---|---|---|
id |
path | The resource’s ID. |
curl -X POST "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate", { method: "POST", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, },});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.post( "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), ], CURLOPT_RETURNTRANSFER => true,]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os")
func main() { req, err := http.NewRequest("POST", "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate", nil) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Post, "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849/activate");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Response 200
{ "address": { "address1": "", "address2": "", "city": "", "company": "", "country_code": "QA", "extra": {}, "first_name": "", "last_name": "", "latitude": null, "longitude": null, "phone": "", "province_code": "", "zip": "" }, "fulfils_online_orders": false, "id": "0193a1b2-c3d4-7e5f-8a6b-000000000021", "is_active": true, "name": "Al Wakrah warehouse", "on_hand": 0, "phone": "", "pickup_enabled": false, "pickup_instructions": "", "pickup_ready_time": "1h", "position": 2, "stocked_items": 0, "updated_at": "2026-10-18T09:30:00Z", "version": 4}Delete a location
Section titled “Delete a location”DELETE /locations/{id} · Scope: write_locations
| Parameter | In | Description |
|---|---|---|
id |
path | The resource’s ID. |
curl -X DELETE "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849" \ -H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"const res = await fetch("https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", { method: "DELETE", headers: { "X-Sooquna-Access-Token": process.env.SOOQUNA_TOKEN, },});if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);const data = await res.json();console.log(data);import osimport requests
res = requests.delete( "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", headers={ "X-Sooquna-Access-Token": os.environ["SOOQUNA_TOKEN"], },)res.raise_for_status()print(res.json())<?php$ch = curl_init('https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_HTTPHEADER => [ 'X-Sooquna-Access-Token: ' . getenv('SOOQUNA_TOKEN'), ], CURLOPT_RETURNTRANSFER => true,]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);if ($status >= 300) { throw new RuntimeException("$status: $response");}$data = json_decode($response, true);print_r($data);package main
import ( "fmt" "io" "net/http" "os")
func main() { req, err := http.NewRequest("DELETE", "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849", nil) if err != nil { panic(err) } req.Header.Set("X-Sooquna-Access-Token", os.Getenv("SOOQUNA_TOKEN")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() if res.StatusCode >= 300 { data, _ := io.ReadAll(res.Body) panic(fmt.Sprintf("%d: %s", res.StatusCode, data)) } data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}using System.Text;
using var client = new HttpClient();var req = new HttpRequestMessage(HttpMethod.Delete, "https://api.sooquna.com/admin/api/2026-10/locations/0193a1b2-c810-7698-8039-998bb6c1a849");req.Headers.Add("X-Sooquna-Access-Token", Environment.GetEnvironmentVariable("SOOQUNA_TOKEN"));var res = await client.SendAsync(req);if (!res.IsSuccessStatusCode) throw new Exception($"{(int)res.StatusCode}: {await res.Content.ReadAsStringAsync()}");Console.WriteLine(await res.Content.ReadAsStringAsync());Was this page helpful?

