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

Adressen zu einem Kunden hinzufügen

Bind multiple addresses to customer

post

Batch bind imported addresses to a customer.

Autorisierungen
API-KeystringErforderlich
Pfadparameter
customer_idstringErforderlich

Customer ID in your system.

Example: Customer123
Body
Antworten
200

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

application/json
codeintegerOptional

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.

msgstringOptional

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"
      }
    ]
  }
}

Zuletzt aktualisiert