[DELETE] Aanmelding verwijderen
AI-overzicht
Beschrijft het endpoint dat in één verzoek één of meerdere aanmeldingen voor weer op voorraad verwijdert.
- Roep
DELETE /shop-api/back-in-stock/deleteaan met de headerAuthorization. - Stuur een
ids-array mee in de body; deze is verplicht en accepteert maximaal 100 id's. - De limiet is
throttle:30,1. - Een ontbrekende of niet-array
idsgeeft «The ids field is required».
Samenvatting gegenereerd door AI. Deze kan fouten bevatten, dus bekijk de volledige handleiding hieronder.
U kunt een of meerdere aanmeldingen in hetzelfde verzoek verwijderen.
* Authenticatie
Vereist Authorization
Limiet throttle:30,1
Verzoek
Endpoint DELETE - /shop-api/back-in-stock/delete
Payload-body
| Params | Type | Vereist |
|---|---|---|
| ids | array | yes , max:100 |
DELETE /shop-api/back-in-stock/delete HTTP/1.1Host: preorder.globo.ioContent-Type: application/jsonAuthorization: ************Content-Length: 21
{ "ids": [1324]}const myHeaders = new Headers();myHeaders.append("Content-Type", "application/json");myHeaders.append("Authorization", "************");const raw = JSON.stringify({ "ids": [ 1324 ]});const requestOptions = { method: "DELETE", headers: myHeaders, body: raw, redirect: "follow"};fetch("https://preorder.globo.io/shop-api/back-in-stock/delete", 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/delete', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_POSTFIELDS =>'{ "ids": [1324] }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: ************' ),));$response = curl_exec($curl);curl_close($curl);echo $response;Succesvolle respons 200
{ "success": true, "message": "Back in stock products deleted successfully"}Mislukt
// missing ids or ids is not array{ "success": false, "message": "The ids field is required"}// catch{ "success": false, "message": "Something went wrong"}Was dit nuttig?
Bedankt voor je feedback! Vertel ons wat er ontbrak
Probleem melden