MMelo Developers
Api reference

Create a warehouse

POST
/warehouses

Creates a pickup warehouse for the authenticated merchant.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token returned by POST /auth/token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/warehouses" \  -H "Content-Type: application/json" \  -d '{    "name": "Central warehouse",    "nameInt": "central-warehouse",    "status": "ACTIVE",    "address": "12 Rustaveli Avenue, Tbilisi",    "contactPhone": "+995555123456",    "contactEmail": "operations@example.com",    "locationMetadata": {      "display_name": "12 Rustaveli Avenue, Tbilisi",      "lat": 41.7151,      "lng": 44.8271,      "city": "Tbilisi",      "country": "Georgia",      "country_code": "ge"    }  }'
{  "name": "string",  "nameInt": "string",  "status": "ACTIVE",  "address": "string",  "contactPhone": "string",  "contactEmail": "user@example.com",  "locationMetadata": {    "display_name": "string",    "lat": 0,    "lng": 0,    "house_number": "string",    "road": "string",    "neighbourhood": "string",    "suburb": "string",    "city": "string",    "postcode": "string",    "country": "string",    "country_code": "string"  },  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",  "location": {    "type": "Point",    "coordinates": [      0,      0    ]  },  "type": "POINT",  "commersantId": "97b065cf-8938-4c6b-b2b8-a091ef3210cc",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}