Skip to content
Guides
API reference
stablesettings:update

Set default location

Returns the store's default location, creating it if none exists. Useful when bootstrapping a store.

PUT/v1/fulfillment/locations/default

Returns the store's default location, creating it if none exists. Useful when bootstrapping a store.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/v1/fulfillment/locations/default"
{  "id": "string",  "name": "string",  "code": "string",  "address": null,  "city": null,  "state": null,  "country": null,  "postalCode": null,  "latitude": null,  "longitude": null,  "phone": null,  "email": null,  "isDefault": true,  "isActive": true,  "isPhysicalStore": true,  "supportsPos": true,  "supportsShipping": true,  "supportsPickup": true,  "supportsLocalDelivery": true,  "priority": 0,  "pickupInstructions": null,  "pickupLeadTimeInMinutes": null,  "pickupSlotInMinutes": null,  "pickupDailyCapacity": null,  "localDeliveryInstructions": null,  "localDeliveryLeadTimeInMinutes": null,  "localDeliverySlotInMinutes": null,  "localDeliveryDailyCapacity": null,  "localDeliveryFee": null,  "localDeliveryFreeFromAmount": null,  "localDeliveryMinHours": null,  "localDeliveryMaxHours": null,  "localDeliveryPostalCodes": [    "string"  ],  "localDeliveryZones": [    {      "name": "string",      "postalCodes": [        "string"      ],      "radiusKm": null,      "fee": null,      "freeFromAmount": null,      "minHours": null,      "maxHours": null    }  ],  "pickupSchedule": [    {      "dayOfWeek": "monday",      "openTime": "14:15:22Z",      "closeTime": "14:15:22Z",      "isOpen": true    }  ],  "deliverySchedule": [    {      "dayOfWeek": "monday",      "openTime": "14:15:22Z",      "closeTime": "14:15:22Z",      "isOpen": true    }  ]}