Salta ai contenuti
Installa l’app
Italiano

[GET] Elenco delle regole

Panoramica AI

Documenta l'endpoint che restituisce le regole In arrivo del negozio con paginazione.

  • Invii una richiesta GET con un parametro page facoltativo e l'intestazione Authorization; il limite di frequenza è throttle:30,1.
  • Ogni regola include nome, date di inizio e fine, show_countdown, status e timestamp.
  • apply_to è all, product, variant o collection, con i corrispondenti ID di prodotto, ID di variante o ID di collezione.
  • La risposta include i totali della paginazione e i numeri di pagina.

Riepilogo generato dall’AI. Può contenere errori, quindi controlla la guida completa qui sotto.

* Authentication

Obbligatorio Authorization

Limite throttle:30,1

Richiesta

Recupera l’elenco delle iscrizioni Back In Stock (BIS) del negozio, con paginazione.

Endpoint GET - /shop-api/back-in-stock/list?page=1

Parametri Tipo Obbligatorio
page number no
GET /shop-api/coming-soon/list?page=1 HTTP/1.1
Host: preorder.globo.io
Authorization: ************
const myHeaders = new Headers();
myHeaders.append("Authorization", "************");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://preorder.globo.io/shop-api/coming-soon/list?page=1", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://preorder.globo.io/shop-api/coming-soon/list?page=1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: ************'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Risposta di successo 200

{
"success": true,
"data": [
{
"id": 1, // Unique coming soon rule ID
"name": "Summer Launch", // Name rule coming soon
"start_date": "2026-07-01T00:00:00.000000Z", // Start date (nullable)
"end_date": "2026-08-01T00:00:00.000000Z", // End date (nullable)
"show_countdown": true, // true | false => show countdown timer
"apply_to": "variant", // "all" | "product" | "variant" | "collection" — rule apply to
"product_ids": [1234567890], // Array Shopify product IDs when apply_to="product" (nullable)
"variant_ids": [9876543210], // Array Shopify variant IDs when apply_to="variant" (nullable)
"collection_id": null, // Shopify collection ID when apply_to="collection" (nullable)
"status": true, // true => active, false => inactive
"created_at": "2026-07-01T10:00:00.000000Z",
"updated_at": "2026-07-03T10:00:00.000000Z"
}
],
"pagination": {
"total": 25,
"per_page": 10,
"current_page": 1,
"last_page": 3,
"from": 1,
"to": 10
}
}

Errore

{
"success" => false,
"message" => "Something went wrong"
}

Questa pagina ti è stata utile?

Segnala un problema