curl --request PATCH \
--url https://api.sandbox.usenash.com/v1/store_locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"externalId": "40123",
"operatingHours": {
"friday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"monday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"saturday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"sunday": {
"active": true,
"shifts": [
[
"11:00",
"18:00"
]
]
},
"thursday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"tuesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"wednesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
}
},
"prepTimeMinutes": 123,
"blackoutDates": [
"2024-01-01",
"2024-01-02"
],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!",
"name": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressComponents": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": null,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581
},
"tags": "['service:rapid', 'service:express', 'franchise_location']",
"zoneIds": [
"zone_01234567890123456789",
"zone_01234567890123456789"
],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"zone_id": "zone_01234567890123456789"
}
]
}
EOFimport requests
url = "https://api.sandbox.usenash.com/v1/store_locations/{id}"
payload = {
"externalId": "40123",
"operatingHours": {
"friday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"monday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"saturday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"sunday": {
"active": True,
"shifts": [["11:00", "18:00"]]
},
"thursday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"tuesday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"wednesday": {
"active": True,
"shifts": [["10:00", "19:00"]]
}
},
"prepTimeMinutes": 123,
"blackoutDates": ["2024-01-01", "2024-01-02"],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!",
"name": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressComponents": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": None,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581
},
"tags": "['service:rapid', 'service:express', 'franchise_location']",
"zoneIds": ["zone_01234567890123456789", "zone_01234567890123456789"],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"zone_id": "zone_01234567890123456789"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '40123',
operatingHours: {
friday: {active: true, shifts: [['10:00', '19:00']]},
monday: {active: true, shifts: [['10:00', '19:00']]},
saturday: {active: true, shifts: [['10:00', '19:00']]},
sunday: {active: true, shifts: [['11:00', '18:00']]},
thursday: {active: true, shifts: [['10:00', '19:00']]},
tuesday: {active: true, shifts: [['10:00', '19:00']]},
wednesday: {active: true, shifts: [['10:00', '19:00']]}
},
prepTimeMinutes: 123,
blackoutDates: ['2024-01-01', '2024-01-02'],
firstName: 'Taylor',
lastName: 'Swift',
email: 'taylor@swift.com',
pickupInstructions: 'Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they\'ll be happy to help you!',
name: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressComponents: {
street: 'Pennsylvania Avenue NW',
city: 'Washington',
country: 'US',
number: '1600',
secondaryNumber: null,
county: 'Washington',
state: 'DC',
postalCode: '20500',
latitude: 38.8948949,
longitude: -77.0371581
},
tags: '[\'service:rapid\', \'service:express\', \'franchise_location\']',
zoneIds: ['zone_01234567890123456789', 'zone_01234567890123456789'],
zoneAssociations: [
{
end_date: '2025-01-01',
start_date: '2024-01-01',
zone_id: 'zone_01234567890123456789'
}
]
})
};
fetch('https://api.sandbox.usenash.com/v1/store_locations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.usenash.com/v1/store_locations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'externalId' => '40123',
'operatingHours' => [
'friday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'monday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'saturday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'sunday' => [
'active' => true,
'shifts' => [
[
'11:00',
'18:00'
]
]
],
'thursday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'tuesday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'wednesday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
]
],
'prepTimeMinutes' => 123,
'blackoutDates' => [
'2024-01-01',
'2024-01-02'
],
'firstName' => 'Taylor',
'lastName' => 'Swift',
'email' => 'taylor@swift.com',
'pickupInstructions' => 'Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they\'ll be happy to help you!',
'name' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressComponents' => [
'street' => 'Pennsylvania Avenue NW',
'city' => 'Washington',
'country' => 'US',
'number' => '1600',
'secondaryNumber' => null,
'county' => 'Washington',
'state' => 'DC',
'postalCode' => '20500',
'latitude' => 38.8948949,
'longitude' => -77.0371581
],
'tags' => '[\'service:rapid\', \'service:express\', \'franchise_location\']',
'zoneIds' => [
'zone_01234567890123456789',
'zone_01234567890123456789'
],
'zoneAssociations' => [
[
'end_date' => '2025-01-01',
'start_date' => '2024-01-01',
'zone_id' => 'zone_01234567890123456789'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.usenash.com/v1/store_locations/{id}"
payload := strings.NewReader("{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.sandbox.usenash.com/v1/store_locations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.usenash.com/v1/store_locations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "stl_01234567890123456789",
"name": "White House",
"phoneNumber": "+1234567890",
"location": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": null,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581,
"timezoneId": "<string>"
},
"zoneIds": [
"zone_01234567890123456789",
"zone_01234567890123456789"
],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"store_location_id": "stl_01234567890123456789",
"zone_id": "zone_01234567890123456789"
}
],
"tags": "['service:rapid', 'franchise_location']",
"integrationMetadata": {
"integration_name": "ABC"
},
"externalId": "40123",
"operatingHours": {
"friday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"monday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"saturday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"sunday": {
"active": true,
"shifts": [
[
"11:00",
"18:00"
]
]
},
"thursday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"tuesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"wednesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
}
},
"prepTimeMinutes": 123,
"blackoutDates": [
"2024-01-01",
"2024-01-02"
],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!"
}[
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"response_status": "<string>",
"RequestID": "<string>"
}
]Update Store Location
Update a store location by ID.
curl --request PATCH \
--url https://api.sandbox.usenash.com/v1/store_locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"externalId": "40123",
"operatingHours": {
"friday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"monday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"saturday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"sunday": {
"active": true,
"shifts": [
[
"11:00",
"18:00"
]
]
},
"thursday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"tuesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"wednesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
}
},
"prepTimeMinutes": 123,
"blackoutDates": [
"2024-01-01",
"2024-01-02"
],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!",
"name": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressComponents": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": null,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581
},
"tags": "['service:rapid', 'service:express', 'franchise_location']",
"zoneIds": [
"zone_01234567890123456789",
"zone_01234567890123456789"
],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"zone_id": "zone_01234567890123456789"
}
]
}
EOFimport requests
url = "https://api.sandbox.usenash.com/v1/store_locations/{id}"
payload = {
"externalId": "40123",
"operatingHours": {
"friday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"monday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"saturday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"sunday": {
"active": True,
"shifts": [["11:00", "18:00"]]
},
"thursday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"tuesday": {
"active": True,
"shifts": [["10:00", "19:00"]]
},
"wednesday": {
"active": True,
"shifts": [["10:00", "19:00"]]
}
},
"prepTimeMinutes": 123,
"blackoutDates": ["2024-01-01", "2024-01-02"],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!",
"name": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressComponents": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": None,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581
},
"tags": "['service:rapid', 'service:express', 'franchise_location']",
"zoneIds": ["zone_01234567890123456789", "zone_01234567890123456789"],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"zone_id": "zone_01234567890123456789"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '40123',
operatingHours: {
friday: {active: true, shifts: [['10:00', '19:00']]},
monday: {active: true, shifts: [['10:00', '19:00']]},
saturday: {active: true, shifts: [['10:00', '19:00']]},
sunday: {active: true, shifts: [['11:00', '18:00']]},
thursday: {active: true, shifts: [['10:00', '19:00']]},
tuesday: {active: true, shifts: [['10:00', '19:00']]},
wednesday: {active: true, shifts: [['10:00', '19:00']]}
},
prepTimeMinutes: 123,
blackoutDates: ['2024-01-01', '2024-01-02'],
firstName: 'Taylor',
lastName: 'Swift',
email: 'taylor@swift.com',
pickupInstructions: 'Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they\'ll be happy to help you!',
name: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressComponents: {
street: 'Pennsylvania Avenue NW',
city: 'Washington',
country: 'US',
number: '1600',
secondaryNumber: null,
county: 'Washington',
state: 'DC',
postalCode: '20500',
latitude: 38.8948949,
longitude: -77.0371581
},
tags: '[\'service:rapid\', \'service:express\', \'franchise_location\']',
zoneIds: ['zone_01234567890123456789', 'zone_01234567890123456789'],
zoneAssociations: [
{
end_date: '2025-01-01',
start_date: '2024-01-01',
zone_id: 'zone_01234567890123456789'
}
]
})
};
fetch('https://api.sandbox.usenash.com/v1/store_locations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.usenash.com/v1/store_locations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'externalId' => '40123',
'operatingHours' => [
'friday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'monday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'saturday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'sunday' => [
'active' => true,
'shifts' => [
[
'11:00',
'18:00'
]
]
],
'thursday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'tuesday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
],
'wednesday' => [
'active' => true,
'shifts' => [
[
'10:00',
'19:00'
]
]
]
],
'prepTimeMinutes' => 123,
'blackoutDates' => [
'2024-01-01',
'2024-01-02'
],
'firstName' => 'Taylor',
'lastName' => 'Swift',
'email' => 'taylor@swift.com',
'pickupInstructions' => 'Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they\'ll be happy to help you!',
'name' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressComponents' => [
'street' => 'Pennsylvania Avenue NW',
'city' => 'Washington',
'country' => 'US',
'number' => '1600',
'secondaryNumber' => null,
'county' => 'Washington',
'state' => 'DC',
'postalCode' => '20500',
'latitude' => 38.8948949,
'longitude' => -77.0371581
],
'tags' => '[\'service:rapid\', \'service:express\', \'franchise_location\']',
'zoneIds' => [
'zone_01234567890123456789',
'zone_01234567890123456789'
],
'zoneAssociations' => [
[
'end_date' => '2025-01-01',
'start_date' => '2024-01-01',
'zone_id' => 'zone_01234567890123456789'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.usenash.com/v1/store_locations/{id}"
payload := strings.NewReader("{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.sandbox.usenash.com/v1/store_locations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.usenash.com/v1/store_locations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"40123\",\n \"operatingHours\": {\n \"friday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"monday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"saturday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"sunday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"11:00\",\n \"18:00\"\n ]\n ]\n },\n \"thursday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"tuesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n },\n \"wednesday\": {\n \"active\": true,\n \"shifts\": [\n [\n \"10:00\",\n \"19:00\"\n ]\n ]\n }\n },\n \"prepTimeMinutes\": 123,\n \"blackoutDates\": [\n \"2024-01-01\",\n \"2024-01-02\"\n ],\n \"firstName\": \"Taylor\",\n \"lastName\": \"Swift\",\n \"email\": \"taylor@swift.com\",\n \"pickupInstructions\": \"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!\",\n \"name\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressComponents\": {\n \"street\": \"Pennsylvania Avenue NW\",\n \"city\": \"Washington\",\n \"country\": \"US\",\n \"number\": \"1600\",\n \"secondaryNumber\": null,\n \"county\": \"Washington\",\n \"state\": \"DC\",\n \"postalCode\": \"20500\",\n \"latitude\": 38.8948949,\n \"longitude\": -77.0371581\n },\n \"tags\": \"['service:rapid', 'service:express', 'franchise_location']\",\n \"zoneIds\": [\n \"zone_01234567890123456789\",\n \"zone_01234567890123456789\"\n ],\n \"zoneAssociations\": [\n {\n \"end_date\": \"2025-01-01\",\n \"start_date\": \"2024-01-01\",\n \"zone_id\": \"zone_01234567890123456789\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "stl_01234567890123456789",
"name": "White House",
"phoneNumber": "+1234567890",
"location": {
"street": "Pennsylvania Avenue NW",
"city": "Washington",
"country": "US",
"number": "1600",
"secondaryNumber": null,
"county": "Washington",
"state": "DC",
"postalCode": "20500",
"latitude": 38.8948949,
"longitude": -77.0371581,
"timezoneId": "<string>"
},
"zoneIds": [
"zone_01234567890123456789",
"zone_01234567890123456789"
],
"zoneAssociations": [
{
"end_date": "2025-01-01",
"start_date": "2024-01-01",
"store_location_id": "stl_01234567890123456789",
"zone_id": "zone_01234567890123456789"
}
],
"tags": "['service:rapid', 'franchise_location']",
"integrationMetadata": {
"integration_name": "ABC"
},
"externalId": "40123",
"operatingHours": {
"friday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"monday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"saturday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"sunday": {
"active": true,
"shifts": [
[
"11:00",
"18:00"
]
]
},
"thursday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"tuesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
},
"wednesday": {
"active": true,
"shifts": [
[
"10:00",
"19:00"
]
]
}
},
"prepTimeMinutes": 123,
"blackoutDates": [
"2024-01-01",
"2024-01-02"
],
"firstName": "Taylor",
"lastName": "Swift",
"email": "taylor@swift.com",
"pickupInstructions": "Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!"
}[
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"response_status": "<string>",
"RequestID": "<string>"
}
]Authorizations
Body
Expected input payload for updating a store location.
[Integration Specific]: An object with keys that correspond to days of week (monday, tuesday, etc) and their corresponding operating hours / delivery windows.
{
"friday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"monday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"saturday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"sunday": {
"active": true,
"shifts": [["11:00", "18:00"]]
},
"thursday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"tuesday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"wednesday": {
"active": true,
"shifts": [["10:00", "19:00"]]
}
}
The pickup instructions of the store location. Limited to 280 characters. Nash Recommended Input: Order [insert order number] for [insert customer name] from [business name]
"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!"
The full address in one line for the store location for this package within the Job. Address format: [Number] [Street], [second line], [city], [state] [zip code]. All address fields are required except 'second line'. Second line should include Apt/Suite/Unit/# appended to the number of the unit.
Response
OK
Response for store location.
[Integration Specific]: An object with keys that correspond to days of week (monday, tuesday, etc) and their corresponding operating hours / delivery windows.
{
"friday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"monday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"saturday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"sunday": {
"active": true,
"shifts": [["11:00", "18:00"]]
},
"thursday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"tuesday": {
"active": true,
"shifts": [["10:00", "19:00"]]
},
"wednesday": {
"active": true,
"shifts": [["10:00", "19:00"]]
}
}
The pickup instructions of the store location. Limited to 280 characters. Nash Recommended Input: Order [insert order number] for [insert customer name] from [business name]
"Once you arrive at the store, please click above to let us know you are here. Then, go ahead and find a sales associate inside - they'll be happy to help you!"
Was this page helpful?