[PUT] Transfer submission to other submission
AI 개요
재입고 알림 신청을 다른 제품과 이형 상품으로 옮기는 엔드포인트를 설명합니다.
PUT /shop-api/back-in-stock/update를 호출합니다. 속도 제한은throttle:30,1입니다.submission_id,new_product_id,new_variant_id는 필수이며,note와pending은 선택 사항입니다.- 상태는 기본적으로 변경되지 않으며,
pending = true로 설정하면 재입고 이메일이 전송되기 전 상태로 되돌립니다. - 제품 제목, 이형 상품 제목, SKU, 재고 ID는 새 Shopify 제품에서 동기화되며, 고객 이메일과 전화번호는 변경되지 않습니다.
AI가 생성한 요약입니다. 오류가 있을 수 있으니 아래 전체 가이드를 확인하세요.
* 인증
필수 Authorization
제한 throttle:30,1
요청
엔드포인트 PUT - /shop-api/back-in-stock/update
페이로드 본문
기본적으로 신청 상태는 변경되지 않습니다.
pending = true인 경우 신청 상태가 재입고 이메일이 발송되기 전 상태로 되돌아갑니다.
| 매개변수 | 유형 | 필수 |
|---|---|---|
| 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.1Host: globo.preorder.ioContent-Type: application/jsonAuthorization: ************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));$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL => 'https://preorder.globo.io/shop-api/back-in-stock/update', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'PUT', CURLOPT_POSTFIELDS =>'{ "submission_id": 1, "new_product_id": 9697898955032, "new_variant_id": 49921014628632, "note" : "ok"}', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: ••••••' ),));
$response = curl_exec($curl);
curl_close($curl);echo $response;성공 응답 200
{ "success": true, "message": "Submission updated successfully", "data": { "id": 12345, "product_id": 7891234567890, // changed to new product_id "variant_id": 43900910010999, // changed to new variant_id "customer_phone": "+84123456789", // Not change "product_title": "Product Name", // Sync new product Shopify "variant_title": "Size L / Red", // Sync new product Shopify "sku": "SKU-002", // Sync new product Shopify "inventory_id": "45678901234", // Sync new product Shopify inventory_item_id "status": 0, // Leave as is if not submitted pending "last_sent": null, // Leave as is if not submitted pending "opened": 0, // Leave as is if not submitted pending "clicked": 0, // Leave as is if not submitted pending "note": "test", // Update if necessary. "created_at": "2026-07-06T10:00:00.000000Z", "updated_at": "2026-07-06T15:00:00.000000Z" }}실패
{ "success": false, "message": "Back in stock product not found" }{ "success": false, "message": "Variant not found" }{ "success": false, "message": "The submission id field is required." }{ "success": false, "message": "Something went wrong" }도움이 되었나요?
의견을 보내 주셔서 감사합니다! 부족한 내용을 알려 주세요
문제 신고