For the complete documentation index, see llms.txt. This page is also available as Markdown.

[POST] Create submission

* Authentication

Required Authorization

Limit throttle:30,1

Request

Endpoint [POST] - /shop-api/back-in-stock/create

POST /shop-api/back-in-stock/create HTTP/1.1
Host: preorder.globo.io
Content-Type: application/json
Authorization: ************
Content-Length: 84
{
"product_id":123456789,
"variant_id":123456789,
"customer_email": "example@gmail.com"
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "••••••");

const raw = JSON.stringify({
  "product_id": 1,
  "variant_id": 1,
  "customer_email": "example@gmail.com"
});
const requestOptions = {  
    method: "POST",  
    headers: myHeaders,  
    body: raw,
    redirect: "follow"
};
fetch("https://preorder.globo.io/shop-api/back-in-stock/create", requestOptions)
    .then((response) => response.text())
    .then((result) => console.log(result))
    .catch((error) => console.error(error));

Payload body

Params
Type
Required

customer_email

email

yes

product_id

number

yes

variant_id

number

yes

customer_phone

phone +9123456789

no

locale

string en

no

note

string

no

content

object

no

content.keyLabel

object

no

  1. content : Custom field values. See mapping table below. Any key that doesn't match a field id returned by GET /form (and isn't source or keyLabel) is silently dropped before saving.

  2. content.keyLabel Map of { fieldId: label } for the custom fields you're sending. Strongly recommended — without it, the merchant's admin UI and CSV exports will show the raw field id instead of a readable label.

Learn more about the content needed to generate subscribers using full-field forms.


Success response 200

Failed

Last updated

Was this helpful?