---
api: 'Merchant API'
---

# Create a location

Create a `Location` object. Supports `online` and `physical` location types.

## Endpoint

POST `/api/locations`

## Request body

### Attributes

## Returns

### 201

Location created

#### Response attributes


## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
