W3Block Docs
  • 🚀Start here
    • Welcome to the Docs
    • Integrated Blockchains
  • 👨‍💻Dev Docs
    • API
      • Getting Started
      • Authentication
      • Commerce API services
        • Company Administration
          • Companies (Admin)
          • Assets (Admin)
          • Tags (Admin)
          • Products (Admin)
            • Order Rules (Admin)
          • Orders (Admin)
          • Faq (Admin)
          • Webhooks (Admin)
        • Products
        • Orders
        • Webhooks
        • Faq
        • Globals
      • Key API Services
        • Authentication
        • Companies
        • Tokens
          • Contracts
            • External Contacts
            • Royalty Eligible
          • Categories
            • Subcategories
          • Token Collections
            • Token Editions
          • Metadata
        • Blockchain
        • Cloudinary
        • Integration
          • Ecommerce
            • Associate Tokens
            • Hooks
        • Users
        • Vouchers
  • 📘Knowledge Base
    • First Steps
    • FAQ
    • Glossary
Powered by GitBook
On this page
  1. Dev Docs
  2. API
  3. Key API Services
  4. Tokens
  5. Contracts

External Contacts

External Contacts are wallets with no user inside the system

PreviousContractsNextRoyalty Eligible

Last updated 2 years ago

If you have a wallet that you want to be used in the system to receive royalties for example, but they do not have any user you can simply register their wallet as an External Contact.

Create a External contact

List External Contacts for your company

Get a External Contact

Edit a External Contact

👨‍💻
get

List external contacts by company id

Authorizations
Path parameters
companyIdstringRequired
Query parameters
pagenumberOptionalDefault: 1
limitnumberOptionalDefault: 10
searchstringOptional
sortBystringOptional
orderBystring · enumOptionalDefault: DESCPossible values:
idstring[]Optional
userIdsstring[]Optional
minDatestringOptionalExample: 2022-02-15T10:30:05-03:00
maxDatestringOptionalExample: 2022-02-15T10:30:05-03:00
Responses
200Success
application/json
401
Need user with one of these roles: superAdmin, admin
get
GET /{companyId}/external-contacts HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Accept: */*
{
  "meta": {
    "itemCount": 1,
    "totalItems": 1,
    "itemsPerPage": 1,
    "totalPages": 1,
    "currentPage": 1
  },
  "links": {
    "first": "http://example.com?page=1",
    "prev": "http://example.com?page=1",
    "next": "http://example.com?page=2",
    "last": "http://example.com?page=3"
  },
  "items": [
    {
      "id": "text",
      "companyId": "text",
      "active": true,
      "name": "text",
      "userId": "text",
      "walletAddress": "text",
      "email": "text",
      "description": "text",
      "method": "import",
      "address": "text",
      "phone": "text",
      "deletedAt": "2025-06-01T14:49:32.664Z",
      "createdAt": "2025-06-01T14:49:32.664Z",
      "updatedAt": "2025-06-01T14:49:32.664Z"
    }
  ]
}
get

Get a external contact by id

Authorizations
Path parameters
companyIdstringRequired
idstringRequired
Responses
200Success
application/json
401
Need user with one of these roles: superAdmin, admin
get
GET /{companyId}/external-contacts/{id} HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "companyId": "text",
  "active": true,
  "name": "text",
  "userId": "text",
  "walletAddress": "text",
  "email": "text",
  "description": "text",
  "method": "import",
  "address": "text",
  "phone": "text",
  "deletedAt": "2025-06-01T14:49:32.664Z",
  "createdAt": "2025-06-01T14:49:32.664Z",
  "updatedAt": "2025-06-01T14:49:32.664Z"
}
  • Create a External contact
  • POST/{companyId}/external-contacts/import
  • List External Contacts for your company
  • GET/{companyId}/external-contacts
  • Get a External Contact
  • GET/{companyId}/external-contacts/{id}
  • Edit a External Contact
  • PATCH/{companyId}/external-contacts/{id}
post

Create a new external contact

Authorizations
Path parameters
companyIdstringRequired
Body
namestringRequired
emailstringOptional
phonestringOptional
walletAddressstringRequired
royaltyEligiblebooleanRequired
Responses
201Success
application/json
401
Need user with one of these roles: superAdmin, admin
post
POST /{companyId}/external-contacts/import HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 91

{
  "name": "text",
  "email": "text",
  "phone": "text",
  "walletAddress": "text",
  "royaltyEligible": true
}
{
  "id": "text",
  "companyId": "text",
  "active": true,
  "name": "text",
  "userId": "text",
  "walletAddress": "text",
  "email": "text",
  "description": "text",
  "method": "import",
  "address": "text",
  "phone": "text",
  "deletedAt": "2025-06-01T14:49:32.664Z",
  "createdAt": "2025-06-01T14:49:32.664Z",
  "updatedAt": "2025-06-01T14:49:32.664Z"
}
patch

Update a external contact by id

Authorizations
Path parameters
companyIdstringRequired
idstringRequired
Body
namestringOptional
emailstringOptional
phonestringOptional
walletAddressstringOptional
Responses
200Success
application/json
401
Need user with one of these roles: superAdmin, admin
patch
PATCH /{companyId}/external-contacts/{id} HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "name": "text",
  "email": "text",
  "phone": "text",
  "walletAddress": "text"
}
{
  "id": "text",
  "companyId": "text",
  "active": true,
  "name": "text",
  "userId": "text",
  "walletAddress": "text",
  "email": "text",
  "description": "text",
  "method": "import",
  "address": "text",
  "phone": "text",
  "deletedAt": "2025-06-01T14:49:32.664Z",
  "createdAt": "2025-06-01T14:49:32.664Z",
  "updatedAt": "2025-06-01T14:49:32.664Z"
}