---
title: "Create a customer address"
method: POST
path: "/customer-addresses"
tags: ["Customer Address"]
---

# Create a customer address

`POST /customer-addresses`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/customer-addresses`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/customer-addresses/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new address for the authenticated customer. Requires Bearer token.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `firstName` string, required
  - `lastName` string, required
  - `companyName` string
  - `vatId` string
  - `email` string, email, required
  - `phone` string, required
  - `address1` string, required
  - `address2` string
  - `city` string, required
  - `state` string, required
  - `postcode` string, required
  - `country` string, required
  - `defaultAddress` boolean: Set as default address

## Response `201`

Address created.

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
