[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
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
content: Custom field values. See mapping table below. Any key that doesn't match a fieldidreturned byGET /form(and isn'tsourceorkeyLabel) is silently dropped before saving.
content.keyLabelMap 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 fieldidinstead 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?