---
title: "Edit Customer Profile"
method: POST
path: "/api/valor-vault/editcustomer/{vault_id}"
---

# Edit Customer Profile

`POST /api/valor-vault/editcustomer/{vault_id}`

## Path parameters

- `vault_id` string, required

## Headers

- `Valor-App-ID` string, required
- `Valor-App-Key` string, required

## Request body

- object
  - `company_name` string — Vault Customer Name - Alphabet (Max length of max 25 chars)
  - `customer_phone` string — Vault Customer Phone number - 10 digit Numeric (Ex: 5247896523)
  - `customer_email` string — Vault Customer email address - Varchar (Ex: test@domain.com, Max length of 50 chars)
  - `address_details` object[]
    - `address_id` integer, required — Address ID optional, If address id specified will update existing address else add a new address. (Numeric - length of chars 11)
    - `address_label` string, required — Customer address Label - Alphanumeric (Max length of 25 chars)
    - `billing_customer_name` string — Billing customer Name - Alphabet (Max length of 25 chars)
    - `billing_street_no` string — Billing street number - Numeric (Max length of 15 chars)
    - `billing_street_name` string — Billing street Name - Alphanumeric (Max length of 25 chars)
    - `billing_unit` string — Billing Unit, Ex. block no, apartment no (Max length of 25 chars)
    - `billing_zip` string — Billing address zip should be 5 digits (Numeric - Ex: 10001, 90002)
    - `billing_city` string — Billing city should be allowed max 50 chars of string (Ex: New York, San Francisco)
    - `billing_state` string — Billing state 2 chars of capital (Ex: New York - NY, California - CA)
    - `shipping_customer_name` string — Shipping Customer Name -Alphabet (Max length of 25 chars)
    - `shipping_street_no` string — Shipping street number - Numeric (Max length of 15 chars)
    - `shipping_street_name` string — Shipping street name - Alphanumeric (Max length of 25 chars)
    - `shipping_unit` string — Shipping Unit, Ex. block no, apartment no (Max length of 25 chars)
    - `shipping_zip` string — Shipping address zip should be 5 digits (Numeric - Ex: 10001, 90002)
    - `shipping_city` string — Shipping city should be allowed max 50 chars of string (Ex: New York, San Francisco)
    - `shipping_state` string — Shipping state 2 chars of capital (Ex: New York - NY, California - CA)

## Response `200`

200

- object
  - `code` integer
  - `status` string
  - `vault_customer_id` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/valorpaytech/apis/ecommerce-api.md) · [All operations](https://skmtc.net/valorpaytech/apis/ecommerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/valorpaytech/ecommerce-api/versions/c6468b606325/schema)
