---
title: "Update a customer"
method: POST
path: "/customers/{id}"
---

# Update a customer

`POST /customers/{id}`

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `email` string, required
    - `phone` string
    - `name` string
    - `company_name` string
    - `metadata` object
    - `address` object
      - `country` string
      - `state` string
      - `city` string
      - `postal_code` string
      - `address_line1` string
      - `address_line2` string
    - `billing` object
      - `country` string
      - `state` string
      - `city` string
      - `postal_code` string
      - `address_line1` string
      - `address_line2` string
  - object
    - `email` string
    - `phone` string, required
    - `name` string
    - `company_name` string
    - `metadata` object
    - `address` object
      - `country` string
      - `state` string
      - `city` string
      - `postal_code` string
      - `address_line1` string
      - `address_line2` string
    - `billing` object
      - `country` string
      - `state` string
      - `city` string
      - `postal_code` string
      - `address_line1` string
      - `address_line2` string

## Response `202`

Customer updated

- object
  - `code` integer, required
  - `status` string, required
  - `message` string, required

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity

---

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