[GET] Påmeldingsdetaljer
AI-oversikt
Beskriver endepunktet som returnerer detaljene for én påmelding for tilbake på lager etter id.
- Kall
GET /shop-api/back-in-stock/get/{submission_id}med et heltall somsubmission_id. - Krever
Authorization-headeren med Bearer; grensen erthrottle:30,1. - Svaret inneholder produkt, variant, kunde, SKU, lager, e-poststatus samt data om avmelding, åpninger og klikk.
contenter en JSON-streng med egendefinerte skjemadata;status1 betyr at påfyllsmeldingen er sendt.- Feil inkluderer "ID is required" og "Back in stock product not found".
Sammendrag laget av AI. Det kan inneholde feil, så sjekk hele veiledningen nedenfor.
* Autentisering
Obligatorisk Authorization: Bearer ••••••••••••••••••••••••••••••••••••
Grense throttle:30,1
Forespørsel
Endepunkt GET - /shop-api/back-in-stock/get/{submission_id}
Banenparameter : submission_id // Påmeldings-ID (heltall)
| Parametere | Type | Obligatorisk |
|---|---|---|
submission_id | integer | ja |
GET /shop-api/back-in-stock/get/1 HTTP/1.1Host: preorder.globo.ioAuthorization: ************const myHeaders = new Headers();myHeaders.append("Authorization", "************");
const requestOptions = { method: "GET", headers: myHeaders, redirect: "follow"};
fetch("https://preorder.globo.io/shop-api/back-in-stock/get/1323", 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/back-in-stock/get/' . $id, 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;Vellykket svar 200
{ "success": true, "message": "", "data": { "id": 12345, // Unique submission ID "product_id": 1234567890, // Shopify product ID (numeric, not include gid://shopify/Product/) "variant_id": 9876543210, // Shopify variant ID (numeric, not include gid://shopify/Variant/) "customer_phone": "+84123456789", // Phone number (nullable) "product_title": "Product Name", // Product name at the time of registration "variant_title": "Size M / Blue", // Variant name (possibly "Default Title") "sku": "SKU-001", // SKU variant (nullable) "inventory_id": "45678901234", // Shopify inventory_item_id, used for inventory matching "status": 0, // 0 => email not sent, 1 => restock email sent "last_sent": "2026-07-03T10:00:00.000000Z", // Last email sent (nullable) "unsubscribe": 0, // 0 => still receiving notifications, 1 => unsubscribed "content": "{\"source\":\"manual\",\"keyLabel\":\"...\"}", // JSON string — Custom form data during signup (nullable) "locale": "default", // Locale use in template email notification "opened": 0, // 0 => email not opened; if opened, it's a datetime string according to the shop timezone. "clicked": 0, // 0 => The link in the email hasn't been clicked yet; if it has been clicked, then it's a datetime string. "note": "VIP customer", // Internal notes (nullable) "created_at": "2026-07-03T10:00:00.000000Z", "updated_at": "2026-07-03T10:00:00.000000Z" }}Mislyktes
// Missing ID{ "success": false, "message": "ID is required"}// Not found{ "success": false, "message": "Back in stock product not found"}// catch{ "success": false, "message": "Something went wrong"}Var dette nyttig?
Takk for tilbakemeldingen! Fortell oss hva som manglet
Rapporter et problem