---
title: "Create address"
method: POST
path: "/ecommerce/addresses"
tags: ["🛒 Ecommerce"]
---

# Create address

`POST /ecommerce/addresses`

The API endpoint allows a logged-in user to create a new address in an e-commerce application.

By accessing this endpoint and providing the necessary information, the user can add a new address to their profile for shipping or billing purposes.

This functionality enables users to conveniently manage their address book within the e-commerce app, ensuring accurate and efficient order processing and delivery.

## Request body

- object
  - `addressLine1` string
  - `addressLine2` string
  - `city` string
  - `state` string
  - `pincode` string
  - `country` string

## Response `201`

Create address

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `addressLine1` string
    - `addressLine2` string
    - `city` string
    - `country` string
    - `createdAt` string
    - `owner` string
    - `pincode` string
    - `state` string
    - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
