For the complete documentation index, see llms.txt. This page is also available as Markdown.

Adicionar endereços a um cliente

Bind multiple addresses to customer

post

Batch bind imported addresses to a customer.

Autorizações
API-KeystringObrigatório
Parâmetros de rota
customer_idstringObrigatório

Customer ID in your system.

Example: Customer123
Corpo
Respostas
200

Response. A non-zero code indicates a business error even when the HTTP status is 200.

application/json
codeintegerOpcional

The status code of this request. For all possible codes and corresponding errors/messages, see https://docs.compliance.phalcon.blocksec.com/api-documentation/introduction/error-messages.

msgstringOpcional

The message of this request. For all possible codes and corresponding errors/messages, see https://docs.compliance.phalcon.blocksec.com/api-documentation/introduction/error-messages.

post/customers/{customer_id}/addresses
POST /phalcon/compliance/v2/customers/{customer_id}/addresses HTTP/1.1
Host: api.blocksec.com
API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "addresses": [
    {
      "address": "0x9851152f99b98a19ad1871dc5a80fe6bf83a7b83",
      "chainId": 1
    }
  ]
}
{
  "code": 0,
  "msg": "Success",
  "data": {
    "customerId": "Blacklist",
    "addressCount": 1,
    "addedAddresses": [
      {
        "chainId": 1,
        "txHash": "0x9851152f99b98a19ad1871dc5a80fe6bf83a7b83"
      }
    ]
  }
}

Atualizado