Skip to main content
POST
/
2023-11
/
admin
/
warehouses
Create
curl --request POST \
  --url https://api-staging.genuka.com/2023-11/admin/warehouses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "company_id": "01hqydxwtxdj3kmzp3bz7jk73g",
  "description": "C'est la boutique de Douala",
  "metadata": {
    "genukaId": "id"
  },
  "name": "Test warehouse"
}
EOF
{
  "address": null,
  "company_id": "01hqydxwtxdj3kmzp3bz7jk73g",
  "created_at": "2025-10-10T15:10:35.000000Z",
  "description": "C'est la boutique de Douala",
  "id": "01k77arzp50nrp5d0xnenkpy36",
  "logo": null,
  "logoUrl": null,
  "name": "Test warehouse",
  "shops": [],
  "updated_at": "2025-10-10T15:10:35.000000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-company
string
Example:

"{{companyId}}"

Body

application/json
company_id
string
Example:

"01hqydxwtxdj3kmzp3bz7jk73g"

description
string
Example:

"C'est la boutique de Douala"

metadata
object
name
string
Example:

"Test warehouse"

Response

200 - application/json

200

address
unknown
company_id
string
Example:

"01hqydxwtxdj3kmzp3bz7jk73g"

created_at
string
Example:

"2025-10-10T15:10:35.000000Z"

description
string
Example:

"C'est la boutique de Douala"

id
string
Example:

"01k77arzp50nrp5d0xnenkpy36"

logoUrl
unknown
name
string
Example:

"Test warehouse"

shops
any[]
Example:
[]
updated_at
string
Example:

"2025-10-10T15:10:35.000000Z"