---
title: "aid_customers_cid_verify_post"
method: POST
path: "/accounts/{aid}/customers/users/{customer_id}/communication/{operation}/{field}"
tags: ["communication"]
---

# aid_customers_cid_verify_post

`POST /accounts/{aid}/customers/users/{customer_id}/communication/{operation}/{field}`

## Request

- Base URL: `https://api.dintero.com/v1`
- URL: `https://api.dintero.com/v1/accounts/{aid}/customers/users/{customer_id}/communication/{operation}/{field}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/dintero/apis/account-management-api/docs/accounts/:aid/customers/users/:customer_id/communication/:operation/:field/post.ts> (a function with typed inputs; its response is checked against the schema)

Verify customer email/phone_number field. Consist of
to steps:
  - send verification code to the customer (sms or email)
  - verify the email/phone_number by posting verification code sent to customer
scopes:
- admin:customers
- write:customers
- user:customers

## Path parameters

- `aid` string, ^[PT]{1}\d{8}$, required
- `customer_id` string, required
- `field` 'email' | 'phone_number', required
- `operation` 'send-verification-code' | 'confirm-verification-code', required

## Request body

- object
  - `code` string: Verification code sent to customer

## Response `204`

No content

## Other responses

- `400`: Bad / Invalid request
- `401`: Access forbidden, invalid JWT token was used
- `403`: Forbidden
- `404`: Resource was not found
- `500`: Unexpected Error

---

[API](https://skmtc.dev/dintero/apis/account-management-api.md) - [All operations](https://skmtc.dev/dintero/apis/account-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dintero/apis/account-management-api/revisions/9b83a4199008?raw)
