Webhooks

The print button can be configured to send Webhooks

Webhook Payload


interface PrintButtonCallbackPayload {
  /**
   * The partner ID Associated with this sale
   */
  partnerId: string

  /**
   * The Event that triggered this callback
   */
  event: 'ORDER_PLACED' | 'ORDER_CANCELED' | 'ORDER_FULLFILLED'

  /**
   * The Shopify order number
   */
  orderNumber: number

  /**
   * The Blockchain where the token lives
   */
  blockchain: 'eth'| 'flow'| 'matic'| 'xtz'| 'sol'| 'avax'| 'bsc'| 'palm'

  /**
   * The Contract Address
   */
  contractAddress: string

  /**
   * The Token ID
   */
  tokenId: string

  /**
   * The wallet of the owner of the token
   */
  ownerAddress: string

  /**
   * The video print ID associated with this sale
   */
  printId: string

  /**
   * Timestamp of the event
   */
  timestamp: Date
}

Webhook Verification

To verify the hooks come from Infinite Objects, you can use something like the following example on express

Last updated