Skip to content
Fulfillment & ShippingFulfillment

Create location

Creates a fulfillment location with its capabilities, schedules, pickup, and local-delivery settings.

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.ecomiq.pe/api/v1/fulfillment/locations" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>" \  -H "Content-Type: application/json" \  -d '{    "name": "Almacén Lima",    "code": "ALM-LIMA",    "type": "warehouse",    "address": "Av. Argentina 2450",    "city": "Lima",    "state": "Lima",    "country": "PE",    "postalCode": "15081",    "phone": "+5114567890",    "email": "almacen.lima@example.com",    "isDefault": true,    "useForFulfillment": true,    "supportsShipping": true,    "priority": 1  }'
{  "id": "7204558912004325378"}