> This page is for Internet banking (beta).

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://en.docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.docs.api.corpx.com/_mcp/server.

# Set the P2P profile contact

PUT https://client.api.corpx.com/v1/accounts/{accountId}/p2p/profile/contact
Content-Type: application/json

Saves the e-mail and phone used to sign P2P contracts and sends a confirmation code to each channel that is not confirmed yet. Holder only. The body must not include a document: an individual signs with the account document, a company signs with the holder CPF from `X-Acting-Document` (role `owner`) and `representativeName` is that holder's name. Changing a channel clears its confirmation. On a company, a different holder clears both. Requires a username first (`username_required`).

Reference: https://en.docs.api.corpx.com/ib/referencia/p-2-p/put-p-2-p-profile-contact

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `accountId` (string, required) — Account identifier.

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `X-Acting-Document` (string, optional) — CPF of the human performing the operation. Required on cashout routes when the credential enforces a transaction PIN. On a company P2P profile contact, this CPF is the holder who signs; it is not taken from the body.
- `X-Acting-Role` (enum, optional) — `owner` when `X-Acting-Document` is the holder of a company account. Without it, a company holder is refused (`holder_only`). An individual account ignores the role: the acting document must be the account document.
  - Allowed values: `owner`
- `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries).
- `X-Request-Timestamp` (string, required) — Unix seconds. Required on the signed host; tolerance is 300s either way (`403 request_timestamp_skew`).
- `X-Content-SHA256` (string, required) — Lowercase hex SHA-256 of the body. An empty body hashes the empty string, so the header is always present. Mismatch returns `400 body_hash_mismatch`.
- `X-Request-Signature` (string, required) — Detached JWS (`<protected>..<signature>`, ES256 or PS256) over `METHOD\nPATH?QUERY\nTIMESTAMP\nIDEMPOTENCY_KEY_OR_EMPTY\nX_CONTENT_SHA256`.

### Body (application/json)

This endpoint expects an object.

- `email` (string, required)
- `phone` (string, required) — Brazilian mobile, with or without +55.
- `representativeName` (string, optional) — Holder name. Companies only; rejected for individuals.
- `emailVerified` (boolean, optional) — The tenant attests it already verified this e-mail as the user's (for example, the internet banking login e-mail confirmed by code). The channel is saved confirmed (`emailVerifiedBy: tenant`) and no code is sent. Send it only for a value you verified yourself.
- `phoneVerified` (boolean, optional) — Same as `emailVerified`, for the phone.

## Response

### 200

Profile, with masked contact.

- `accountId` (string, optional) — Account.
- `username` (string, optional, nullable) — Username.
- `usernameChangedAt` (datetime, optional, nullable) — Last username change. `null` while the username is the one the profile was created with.
- `usernameNextChangeAt` (datetime, optional, nullable) — From when a new username is accepted (90 days after the last change). `null` when it can change now.
- `advertiserStatus` (enum, optional) — Advertiser status.
  - Allowed values: `none`, `pending`, `approved`, `refused`, `suspended`
- `advertiserNote` (string, optional) — CorpX note on refusal or suspension.
- `level` (string, optional, nullable) — Advertiser level.
- `orderCap` (string, optional, nullable) — Per-order cap for this advertiser.
- `feeBps` (integer, optional) — Fee, in basis points of the order amount, charged to this account on the orders of its own ads: the seller receives the amount minus the fee on a sell ad, the buyer pays the amount plus the fee on a buy ad. Comes from the level; without a level, the lowest level's fee applies. 0 when the market has no levels.
- `memberSince` (datetime, optional, nullable) — Profile creation.
- `reputation` (P2PReputation, optional) — Trading statistics. Values below the tenant's minimum number of orders are `null`.
- `contact` (P2PProfileContact, optional) — E-mail and phone confirmed on the P2P profile, masked. The signer document is never sent by the client: for an individual it is the account document, for a company it is the holder who confirmed the contact.

## Errors

### 400 Bad Request Error

`invalid_payload` (unknown field, including `cpf` or `document`, or `representativeName` on an individual).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 403 Forbidden Error

`feature_disabled` or `holder_only`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 409 Conflict Error

`username_required`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 422 Unprocessable Entity Error

`invalid_payload`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 429 Too Many Requests Error

`contact_code_rate_limited`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 503 Service Unavailable Error

`contact_delivery_failed`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### P2PReputation

Trading statistics. Values below the tenant's minimum number of orders are `null`.

- `tradesTotal` (integer, optional) — Completed orders.
- `completionPercent` (string, optional, nullable) — Completed over taken orders, in percent.
- `deliveryMedianSeconds` (integer, optional, nullable) — Median seconds between both signing and the crypto being sent.
- `deliveryPercentile` (integer, optional, nullable) — Percentile of the delivery time within the market (higher is faster).

### P2PProfileContact

E-mail and phone confirmed on the P2P profile, masked. The signer document is never sent by the client: for an individual it is the account document, for a company it is the holder who confirmed the contact.

- `email` (string, optional, nullable) — Masked e-mail.
- `phone` (string, optional, nullable) — Masked phone.
- `emailVerified` (boolean, optional)
- `phoneVerified` (boolean, optional)
- `emailVerifiedBy` (enum, optional) — `otp`: confirmed by code on the P2P profile. `tenant`: attested by the tenant in `PUT .../contact` (`emailVerified`).
  - Allowed values: `otp`, `tenant`
- `phoneVerifiedBy` (enum, optional) — Same as `emailVerifiedBy`, for the phone.
  - Allowed values: `otp`, `tenant`
- `ready` (boolean, optional) — Both channels confirmed. Required to advertise or trade.

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

## Examples

**Request**

```json
{
  "email": "titular@example.com",
  "phone": "+5511999990000",
  "representativeName": "Titular Silva"
}
```

**Response**

```json
{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "username": "MARIA DA SILVA",
  "advertiserStatus": "none",
  "advertiserNote": "Pagamento pedido #12345",
  "level": "string",
  "orderCap": "string",
  "feeBps": 6,
  "memberSince": "2026-02-20T08:33:39Z",
  "reputation": {
    "tradesTotal": 150,
    "completionPercent": "string",
    "deliveryMedianSeconds": 1,
    "deliveryPercentile": 1
  },
  "contact": {
    "email": "maria.silva@example.com",
    "phone": "+5511999999999",
    "emailVerified": true,
    "phoneVerified": true,
    "ready": true
  }
}
```

**SDK Code**

```python P2P_putP2PProfileContact_example
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact"

payload = {
    "email": "titular@example.com",
    "phone": "+5511999990000",
    "representativeName": "Titular Silva"
}
headers = {
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript P2P_putP2PProfileContact_example
const url = 'https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact';
const options = {
  method: 'PUT',
  headers: {
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"email":"titular@example.com","phone":"+5511999990000","representativeName":"Titular Silva"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go P2P_putP2PProfileContact_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact"

	payload := strings.NewReader("{\n  \"email\": \"titular@example.com\",\n  \"phone\": \"+5511999990000\",\n  \"representativeName\": \"Titular Silva\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby P2P_putP2PProfileContact_example
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"email\": \"titular@example.com\",\n  \"phone\": \"+5511999990000\",\n  \"representativeName\": \"Titular Silva\"\n}"

response = http.request(request)
puts response.read_body
```

```java P2P_putP2PProfileContact_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"email\": \"titular@example.com\",\n  \"phone\": \"+5511999990000\",\n  \"representativeName\": \"Titular Silva\"\n}")
  .asString();
```

```php P2P_putP2PProfileContact_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact', [
  'body' => '{
  "email": "titular@example.com",
  "phone": "+5511999990000",
  "representativeName": "Titular Silva"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp P2P_putP2PProfileContact_example
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact");
var request = new RestRequest(Method.PUT);
request.AddHeader("X-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"email\": \"titular@example.com\",\n  \"phone\": \"+5511999990000\",\n  \"representativeName\": \"Titular Silva\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift P2P_putP2PProfileContact_example
import Foundation

let headers = [
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "email": "titular@example.com",
  "phone": "+5511999990000",
  "representativeName": "Titular Silva"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/p2p/profile/contact")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```