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

# Modify a customer

`POST /v1/customers/{id}`

Update an existing customer's details.

## Path parameters

- `id` string, required

## Headers

- `x-user-secret-key` string, required
- `Content-Type` string, required

## Request body

- object
  - `reference` string — A manually defined reference for the modification request
  - `first_name` string — The customer's first name
  - `last_name` string — The customer's last name
  - `email` string — The customer's email
  - `phone` string — The customer's phone
  - `payment_source` object
    - `gateway_id` string — The gateway ID of the gateway being used for this transaction. I.e. The PowerBoard gatewayID of mastercard service
    - `vault_token` string — The vault token of a customer
    - `vault_token_reference` string
    - `card_name` string — The name of the cardholder
    - `card_number` string — The card number of the card being used in the charge
    - `expire_month` string — The expiry month of the card
    - `expire_year` string — The expiry year of the card
    - `card_ccv` string — The CCV of the card
    - `address_line1` string — Customer's address line1
    - `address_line2` string — Customer's address line2
    - `state` string — Customer's address state
    - `country` string — Customer's address country
    - `city` string — Customer's address city
    - `postcode` string — Customer's address postcode

## Response `200`

200

- object
  - `status` integer
  - `error` unknown
  - `resource` object
    - `type` string
    - `data` object
      - `first_name` string
      - `_id` string
      - `created_at` string
      - `updated_at` string
      - `status` string
      - `default_source` string
      - `__v` integer
      - `payment_destinations` object[]
      - `payment_sources` object[]
        - `updated_at` string
        - `gateway_id` string
        - `vault_token` string
        - `card_name` string
        - `expire_month` integer
        - `expire_year` integer
        - `card_number_last4` string
        - `card_number_bin` string
        - `card_scheme` string
        - `ref_token` string
        - `status` string
        - `created_at` string
        - `_id` string
        - `type` string
      - `statistics` object
        - `total_collected_amount` integer
        - `successful_transactions` integer
      - `_service` object
        - `default_gateway_id` string

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/commbank/apis/powerboard-api.md) · [All operations](https://skmtc.dev/commbank/apis/powerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commbank/powerboard-api/revisions/2ef3ed32f8c2/schema)
