Collections
Create a Collection

Knit API Documentation

Create A Collection

Endpoint

POST

{{baseUrl}}/api/v1/collections
Supported Networks
  • BITCOIN_MAINNET: For operations on the Bitcoin main network.
  • ETHEREUM_MAINNET: For activities on the Ethereum main network.
  • MATIC_MAINNET: For activities on the Polygon main network
  • TRON_MAINNET: For activities on the Tron main network
Headers
  • X-API-KEY: Your API key for authentication.
  • Accept: Set to application/json to receive responses in JSON format.
Request Body
json
{
  "network": "MATIC_MAINNET",
  "token": "USDT",
  "tokenAmount": 2500,
  "confirmationThreshold": 10,
  "merchantRedirectUrl": "https://example.com/test",
  "merchantCallbackUrl": "https://webhook.site/34b47e03-38ac-4040-a6fc-3dcb44a922e9"
}
Sample Request
Sample Request
curl --location -g '{{baseUrl}}/api/v1/collections' \
--header 'X-API-KEY: {{apiKey}}' \
--header 'Accept: application/json' \
--data '{
    "network": "POLYGON_MAINNET",
    "token": "USDT",
    "tokenAmount": 0.1,
    "merchantRedirectUrl": "https://example.com",
    "merchantCallbackUrl": "https://example.com"
}'
Sample Response
Sample Response
{
  "success": true,
  "message": "Collection created successfully",
  "status": 201,
  "data": {
    "network": "MATIC_MAINNET",
    "token": "USDT",
    "address": "0x3761f3504104f4faa8959963a5d8dce89989d45b",
    "status": "PENDING",
    "tokenToUsd": 1,
    "feeInUsd": 0,
    "feeByToken": 0,
    "expiresAt": "2024-08-27T14:02:10.000000Z",
    "tokenAmountRequested": 2500,
    "tokenAmount": 2500,
    "confirmationThreshold": 10,
    "merchantCallbackUrl": "https://example.com",
    "id": "9cddd3ad-c2a8-463c-a703-158b900beea8",
    "updatedAt": "2024-08-27T13:32:10.000000Z",
    "createdAt": "2024-08-27T13:32:10.000000Z",
    "paymentLinkUrl": "https://checkout-dev.collection.useknit.io/9cddd3ad-c2a8-463c-a703-158b900beea8"
  }
}

Contact

business@useknit.io

Knit Business Financial Services Ltd.
3080 Yonge St
Toronto ON, M4N 3N1, Canada

Subscribe to our newsletter

A monthly digest of the latest news, articles, and resources.

Knit logo

© KNIT BUSINESS FINANCIAL SERVICES LIMITED is duly registered by the Financial Transactions and Reports Analysis Centre of Canada (FINTRAC) as a Money Service Business (C100000256)