[POST] Send mail restock
You can send mail restock for single or multiple submissions within the same request.
* Authentication
Required Authorization
Limit throttle:30,1
Request
Endpoint [POST] - /shop-api/back-in-stock/send-notify-restock
Payload body
When allow_resend is true, submissions that have already been emailed for restock in the list ID will be resent.
Params
Type
Required
ids
array
yes
allow_resend
sometimes|boolean
option
POST /shop-api/back-in-stock/send-notify-restock HTTP/1.1
Host: preorder.globo.io
Content-Type: application/json
Authorization: ************
Content-Length: 49
{
"ids": [1,2,3],
"allow_resend": false
}const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "************");
const raw = JSON.stringify({
"ids": [1,2,3],
"allow_resend": false
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://preorder.globo.io/shop-api/back-in-stock/send-notify-restock", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Success response 200
Failed
Last updated
Was this helpful?