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

[PUT] Transfer submission to other submission

* Authentication

Required Authorization

Limit throttle:30,1

Request

Endpoint [PUT] - /shop-api/back-in-stock/update

Payload body

By default, the submission status will remain unchanged. If pending = true, the submission status will revert to the state before the restock email was sent.

Params
Type
Required

submission_id

integer

yes

new_product_id

number

yes

new_variant_id

number

yes

note

string

no

pending

boolean true false

no

PUT /shop-api/back-in-stock/update HTTP/1.1
Host: globo.preorder.io
Content-Type: application/json
Authorization: ************
Content-Length: 123

{
    "submission_id": 1,
    "new_product_id": 9697898955032,
    "new_variant_id": 49921014628632,
    "note" : "ok"
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "************");

const raw = JSON.stringify({
  "submission_id": 1,
  "new_product_id": 9697898955032,
  "new_variant_id": 49921014628632,
  "note": "ok"
});

const requestOptions = {
  method: "PUT",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("https://preorder.globo.io/shop-api/back-in-stock/update", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Success response 200

Failed

Last updated

Was this helpful?