LogoLogo
Back to AppHelp Center
  • Getting Started
    • Welcome
  • OrdinalsBot API
    • Overview
    • Libraries
    • Template-App
    • Signet
    • Testnet
    • Fractal
    • Getting Prices
      • Getting Prices (Legacy)
    • Create a Direct Inscription Order
    • Create a Managed Inscription Order
    • Get Order Status
    • Create a Collection
    • Create a Collection Order
    • Create Text Inscription Order
    • Search Inscriptions
    • Check Rare Sats Inventory
    • Referral Scheme
    • Transaction Accelerator
    • Burning Assets
    • Webhooks
    • Order States
    • Order Types
  • Runes
    • Etch
    • Mint
    • Direct Mint
      • 1. Generate Direct Mint PSBT
      • 2. Direct Rune Mint Process PSBT
    • Launchpad
      • Create
      • Mint
      • Get Launchpad
    • Airdrop
  • Token Pay
    • What is TokenPay?
    • API Docs
      • API reference
        • Order
        • Create payment psbt
        • Create burn rune psbt
        • Validate burn rune tx
        • Create burn inscription psbt
        • Utils
          • Checktx
          • Submittx
          • Finalize psbt
        • User
          • Withdrawal
          • Order
            • Rune
          • Account
            • Withdraw
            • Balance
      • Specification
  • Marketplace
    • User Guide: Pre-Inscribed Launchpad API
    • API Docs
    • Editions Launchpad
  • Launchpad API
    • Create Marketplace
    • Create a new Launchpad
    • Retrieve Launch PSBT
    • Confirm Launch
    • Check Allocation
    • Check for Padding Outputs
    • Setup Padding Outputs
    • Create buy offer
    • Confirm buy offer
    • Get Launch Info
  • Sat Scanner API
    • Find Special Ranges
    • Find Special Ranges UTXO
    • Supported Satributes
  • Sat Extractor
    • Extract
  • BRC20 / BRC2.0PROG
    • OPI API
    • Bitcoin Remix
  • SNS API
    • SNS API
  • Mempool API
    • Mempool API
  • TAP PROTOCOL
    • Tap Reader API
  • UTXO
    • Split
  • User Guide
    • Inscribe your first Ordinal
    • Receiving Payments
  • Knowledge Base
    • Ordinals
      • What is an Ordinal?
      • Satoshi Rarity
      • What are BRC-20 Tokens?
      • Image Optimisation
      • Pixel Art
    • Bitcoin
      • Unspent Transaction Output (UTXO)
  • Official Links
    • Twitter
    • Discord
Powered by GitBook
On this page
  1. OrdinalsBot API

Create a Collection Order

Use this endpoint to create an inscription order that will inscribe a file from an existing collection.

PreviousCreate a CollectionNextCreate Text Inscription Order

Last updated 25 days ago

You need an API KEY to create collection orders. You can reach out to us via to get one.

API KEYs are separate for testnet and mainnet.

  • The /collectionorder endpoint has a rate limit of maximum 2 requests every 10 seconds.

  • If pricing of the collection is in runes then charge will be null. Instead, tokenPayCharge will be available. User needs to send tokenPayCharge.feeCharge.amount of BTC to tokenPayCharge.feeCharge.address and tokenPayCharge.tokenCharge.amount of tokens to tokenPayCharge.tokenCharge.address

Create Collection Order

POST https://api.ordinalsbot.com/collectionorder

Headers

Name
Type
Description

x-api-key*

String

API Key

Required if no turnstile token is present.

Request Body

Name
Type
Description

collection*

Object

Object including

id: Collection slug to be inscribed

count: number of inscriptions being ordered.

receiveAddress

String

Bitcoin address to receive the inscriptions for the whole order

token*

String

Cloudflare turnstile token

Required if no x-api-key header is present.

rareSats

String

One of following options:

block9 | block78 | pizza | uncommon | black | vintage | random

Check /inventory endpoint for all available options and their current availability.

fee*

Number

Mining fee to be paid for this collection inscription (sats/vB)

additionalFee

Number

Amount of satoshis to charge extra for this order that will be added to "referral" account.

Needs to be used together with "referral" parameter.

Note: additionalFee is added PER FILE!

referral

String

Referral code to earn up to %15 of the order service fee.

timeout

Number

Order timeout in minutes. Must be a multiple of 10.

Generated payment invoice will be valid for this duration only. Payments that are sent after this will not be processed.

(default=4320)

webhookUrl

String

webhook url to receive a POST payload for order updates

{
    status: 'ok',
    ..., // input parameters
    charge: {
        ...
        "id": "815xxx-xxx-xxx-xxx79",
        "address": "3P...Vu",
        "amount": 1218725,
        "lightning_invoice": {
            "expires_at": 1675786558,
            "payreq": "lnbc1218...7qz9v"
        },
        "created_at": 1677176476,
    },
    paylink: {
        "id": "66xxx16", // visit https://app.hel.io/pay/66xxx16 to pay
    },
    chainFee: 718725 // in satoshis
    serviceFee: 100000, // in satoshis
    orderType: 'bulk',
    createdAt: 1675785959855, // timestamp in ms,
}
{
    status: 'error',
    error: 'error reason'
}

Refrain from using too short timeout values and instead use

Refer to for format of the webhook payload

discord
Webhooks
#cancel-an-order