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

Royalty Eligible

Anyone who is eligible for royalties

PreviousExternal ContactsNextCategories

Last updated 2 years ago

This module is not essential for your use, but with it you can list any user or external contact on your company as being eligible for your contract's royalties. This does not makes him receive anything, just helps you administer who you want to be listed when you are selecting someone to receive a royalty in any of your contracts

Create a Royalty Eligible

List Royalty Eligibles for your company

Activate or deactivate a RoyaltyEligible

When you do not want a contact to be eligible for royalties anymore you can deactivate it so it does not interfere with any contracts they were already used for.

Get a royalty eligible by id

👨‍💻
get

Get all royalty eligibles by company

Authorizations
Path parameters
companyIdstringRequired
Query parameters
pagenumberOptionalDefault: 1
limitnumberOptionalDefault: 10
searchstringOptional
sortBystringOptional
orderBystring · enumOptionalDefault: DESCPossible values:
minDatestringOptionalExample: 2022-02-15T10:30:05-03:00
maxDatestringOptionalExample: 2022-02-15T10:30:05-03:00
idstring[]Optional
userIdsstring[]Optional
externalContactIdsstring[]Optional
walletsbooleanOptional
Responses
200Success
application/json
401
Need user with one of these roles: superAdmin, admin
get
GET /{companyId}/contracts/royalty-eligible 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,
      "displayName": "text",
      "userId": "text",
      "externalContact": {
        "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:38:36.308Z",
        "createdAt": "2025-06-01T14:38:36.308Z",
        "updatedAt": "2025-06-01T14:38:36.308Z"
      },
      "externalContactId": "text",
      "deletedAt": "2025-06-01T14:38:36.308Z",
      "createdAt": "2025-06-01T14:38:36.308Z",
      "updatedAt": "2025-06-01T14:38:36.308Z",
      "walletAddress": "text"
    }
  ]
}
get

Get a royalty eligible by id

Authorizations
Path parameters
companyIdstringRequired
idstringRequired
Responses
200Success
application/json
401
Need user with one of these roles: superAdmin, admin
get
GET /{companyId}/contracts/royalty-eligible/{id} HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "companyId": "text",
  "active": true,
  "displayName": "text",
  "userId": "text",
  "externalContact": {
    "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:38:36.308Z",
    "createdAt": "2025-06-01T14:38:36.308Z",
    "updatedAt": "2025-06-01T14:38:36.308Z"
  },
  "externalContactId": "text",
  "deletedAt": "2025-06-01T14:38:36.308Z",
  "createdAt": "2025-06-01T14:38:36.308Z",
  "updatedAt": "2025-06-01T14:38:36.308Z"
}
  • Create a Royalty Eligible
  • POST/{companyId}/contracts/royalty-eligible/create
  • List Royalty Eligibles for your company
  • GET/{companyId}/contracts/royalty-eligible
  • Activate or deactivate a RoyaltyEligible
  • PATCH/{companyId}/contracts/royalty-eligible
  • Get a royalty eligible by id
  • GET/{companyId}/contracts/royalty-eligible/{id}
post

Create a royalty eligible entity (makes a contact eligible for royalties in contracts)

Authorizations
Path parameters
companyIdstringRequired
Body
activebooleanRequired
displayNamestringRequired
userIdstringOptional
externalContactIdstringOptional
Responses
201Success
application/json
401
Need user with one of these roles: superAdmin, admin
post
POST /{companyId}/contracts/royalty-eligible/create HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "active": true,
  "displayName": "text",
  "userId": "text",
  "externalContactId": "text"
}
{
  "id": "text",
  "companyId": "text",
  "active": true,
  "displayName": "text",
  "userId": "text",
  "externalContact": {
    "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:38:36.308Z",
    "createdAt": "2025-06-01T14:38:36.308Z",
    "updatedAt": "2025-06-01T14:38:36.308Z"
  },
  "externalContactId": "text",
  "deletedAt": "2025-06-01T14:38:36.308Z",
  "createdAt": "2025-06-01T14:38:36.308Z",
  "updatedAt": "2025-06-01T14:38:36.308Z"
}
patch

Activate or deactivate a royalty eligible

Authorizations
Path parameters
companyIdstringRequired
Body
activebooleanRequired
userIdstringOptional
externalContactIdstringOptional
Responses
200Success
401
Need user with one of these roles: superAdmin, admin
patch
PATCH /{companyId}/contracts/royalty-eligible HTTP/1.1
Host: 
x-w3block-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "active": true,
  "userId": "text",
  "externalContactId": "text"
}

No content