Skip to content

Creates or modifies a manual pick up for an store.

PATCH
/api/stores/{storeId}/pickups/{pickupDate}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

storeId*

ID of store

Typeinteger
Required
pickupDate*

Pickup timestamp

Typestring
Required

Request Body

JSON
{
"totalSlots": "string",
"description": "string"
}

Responses

Created new pickup was successful
Authorization
api_key
Variables
Key
Value
storeId*
pickupDate*
cURL
curl -X PATCH \
'http://localhost/api/stores/{storeId}/pickups/{pickupDate}' \
 --data '{
  "totalSlots": "string",
  "description": "string"
}'

Samples

cURL
curl -X PATCH http://localhost/api/stores/{storeId}/pickups/{pickupDate}
JavaScript
fetch("http://localhost/api/stores/{storeId}/pickups/{pickupDate}", { method: "PATCH" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/stores/{storeId}/pickups/{pickupDate}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("http://localhost/api/stores/{storeId}/pickups/{pickupDate}")
print(response.json())