Skip to main content

Purchase intents

Purchase intents power Buy links: share a product offer and let Inttegro handle the customer-facing checkout. Use this API to create the link, change its quantity or availability, and stop it.

The API returns a sale_... ID. Append it to https://pages.inttegro.com/buy/ to create the customer-facing URL. For the complete sales flow, see the Purchase intents product guide.

The purchase intent object

A purchase intent contains the offer shown at checkout: its product, price, quantity limits, availability, and usage policy. Its status changes automatically when the link expires, is canceled, or uses its single allowed purchase.

Properties​

TypeScript SDK responsePurchaseIntentv12.0.0
  • Name
    allowVariants
    Type
    boolean
    Required
    required
    Description

    Whether the offer uses a variant set. When variantSet is present, checkout can offer its active, available variants.

  • Name
    createdAt
    Type
    Date
    Required
    required
    Description

    When the purchase intent was created.

  • Name
    expiresAt
    Type
    Date
    Description

    Optional timestamp after which the Buy link stops accepting new purchases. Expiry is effective at the timestamp itself.

  • Name
    id
    Type
    string
    Required
    required
    Description

    Unique purchase intent identifier with the sale_ prefix.

  • Name
    inactiveAt
    Type
    Date
    Description

    When the merchant explicitly inactivated the Buy link. When this is set, the intent is unavailable even if expiresAt is still in the future.

  • merchantPurchaseIntentMerchantBusiness identity shown in the hosted checkout. Individual fields are omitted when unavailable.Click or tap to expand
    • Name
      appName
      Type
      string
      Description
      Human-readable application name.
    • Name
      organizationId
      Type
      string
      Description
      Organization that owns the application.
    • Name
      organizationName
      Type
      string
      Description
      Human-readable organization name.
  • pricePurchaseIntentPriceResolved price used for the offer. Amounts use integer minor units.Click or tap to expand
    • Name
      active
      Type
      boolean
      Required
      required
      Description
      Whether the resolved price can be used.
    • Name
      id
      Type
      string
      Description
      Catalog price identifier when the offer uses a stored price.
    • Name
      label
      Type
      string
      Description
      Catalog price label when available.
    • Name
      nominal
      Type
      Amount
      Required
      required
      View nominal attributesClick or tap to expand
      Amount the customer pays.
      • Name
        currency
        Type
        Currency
        Required
        required
        Description
        Lowercase currency code.
      • Name
        value
        Type
        number
        Required
        required
        Description
        Amount in the currency's smallest unit.
    • Name
      original
      Type
      PurchaseIntentOriginalPrice
      View original attributesClick or tap to expand
      Optional comparison price shown alongside the amount charged.
      • Name
        active
        Type
        boolean
        Required
        required
        Description
        Whether the resolved comparison price is active.
      • Name
        id
        Type
        string
        Description
        Catalog price identifier when the comparison price is stored.
      • Name
        label
        Type
        string
        Description
        Comparison-price label when available.
      • Name
        nominal
        Type
        Amount
        Required
        required
        View nominal attributesClick or tap to expand
        Comparison amount.
        • Name
          currency
          Type
          Currency
          Required
          required
          Description
          Lowercase currency code.
        • Name
          value
          Type
          number
          Required
          required
          Description
          Amount in the currency's smallest unit.
  • presentationPurchaseIntentPresentationMerchant-authored Buy-page copy. Omitted fields continue to use product-aware defaults.Click or tap to expand
    • Name
      buyPage
      Type
      { … }
      View buy_page attributesClick or tap to expand
      Presentation overrides for the hosted Buy page.
      • Name
        text
        Type
        Record<string, unknown>
        View text attributesClick or tap to expand
        Plain-text labels that differ from the defaults.
        • Name
          amountFieldLabel
          Type
          string
          Description
          Label above a customer-selected amount input.
        • Name
          checkoutSectionTitle
          Type
          string
          Description
          Heading above the Buy-page form.
        • Name
          primaryActionLabel
          Type
          string
          Description
          Ready-state primary action label.
  • productPurchaseIntentProductCurrent catalog product rendered by the hosted checkout.Click or tap to expand
    • Name
      about
      Type
      string
      Description
      Full product description.
    • Name
      active
      Type
      boolean
      Required
      required
      Description
      Whether the product is published and available.
    • Name
      archivedAt
      Type
      Date | null
      Description
      When the product was archived.
    • Name
      attributes
      Type
      ProductAttribute[] | null
      View attributes attributesClick or tap to expand
      Product attributes.
      • Name
        name
        Type
        string
        Required
        required
        Description
        Attribute name.
      • Name
        value
        Type
        string
        Required
        required
        Description
        Attribute value.
    • Name
      category
      Type
      string
      Description
      Product category.
    • Name
      createdAt
      Type
      Date
      Required
      required
      Description
      When the product was created.
    • Name
      customData
      Type
      Readonly<Record<string, string>>
      View custom_data detailsClick or tap to expand
      Product metadata, returned as string values.
    • Name
      description
      Type
      string
      Description
      Short product description.
    • Name
      dimensions
      Type
      ProductDimensions | null
      View dimensions attributesClick or tap to expand
      Physical, digital, or custom size information.
      • Name
        custom
        Type
        ProductCustomDimensions
        View custom attributesClick or tap to expand
        Custom dimension details.
        • Name
          details
          Type
          ProductDimensionDetails
          View details detailsClick or tap to expand
          Custom dimension values.
        • Name
          size
          Type
          number
          Description
          Custom size.
        • Name
          sizeUnit
          Type
          string
          Description
          Unit used for custom size.
      • Name
        digital
        Type
        ProductDigitalDimensions
        View digital attributesClick or tap to expand
        Digital file size.
        • Name
          bytes
          Type
          number
          Description
          File size in bytes.
        • Name
          size
          Type
          number
          Description
          File size expressed in the accompanying unit.
        • Name
          sizeUnit
          Type
          string
          Description
          Unit used for digital size.
      • Name
        physical
        Type
        ProductPhysicalDimensions
        View physical attributesClick or tap to expand
        Physical measurements.
        • Name
          height
          Type
          number
          Description
          Product height.
        • Name
          length
          Type
          number
          Description
          Product length.
        • Name
          volume
          Type
          number
          Description
          Product volume.
        • Name
          volumeUnit
          Type
          string
          Description
          Unit used for volume.
        • Name
          weight
          Type
          number
          Description
          Product weight.
        • Name
          weightUnit
          Type
          string
          Description
          Unit used for weight.
        • Name
          width
          Type
          number
          Description
          Product width.
    • Name
      id
      Type
      string
      Required
      required
      Description
      Unique product identifier with the prod_ prefix.
    • Name
      media
      Type
      ProductMedia | null
      View media attributesClick or tap to expand
      Product media shown during browsing and checkout.
      • Name
        demoVideo
        Type
        string
        Description
        Demo video reference or URL.
      • Name
        downloads
        Type
        string[]
        Description
        Downloadable asset references or URLs.
      • Name
        heroImage
        Type
        string
        Description
        Primary image reference or URL.
      • Name
        infographic
        Type
        string
        Description
        Infographic reference or URL.
      • Name
        promoVideo
        Type
        string
        Description
        Promotional video reference or URL.
      • Name
        thumbnail
        Type
        string
        Description
        Thumbnail reference or URL.
      • Name
        webPageUrl
        Type
        string
        Description
        Product web page URL.
    • Name
      name
      Type
      string
      Required
      required
      Description
      Product name.
    • Name
      prices
      Type
      ProductPriceSummary[]
      View prices attributesClick or tap to expand
      Non-archived catalog prices currently attached to the product.
      • Name
        active
        Type
        boolean
        Required
        required
        Description
        Whether the catalog price is active.
      • Name
        id
        Type
        string
        Required
        required
        Description
        Catalog price identifier.
      • Name
        label
        Type
        string | null
        Description
        Short price label.
      • Name
        nominal
        Type
        Amount
        Required
        required
        View nominal attributesClick or tap to expand
        Catalog price amount.
        • Name
          currency
          Type
          Currency
          Required
          required
          Description
          Lowercase currency code.
        • Name
          value
          Type
          number
          Required
          required
          Description
          Amount in the currency's smallest unit.
    • Name
      publishedAt
      Type
      Date | null
      Description
      When the product was published.
    • Name
      reference
      Type
      string
      Description
      Your product reference or SKU.
    • Name
      shipment
      Type
      ProductShipment | null
      View shipment detailsClick or tap to expand
      Fulfillment details copied from the product when present.
    • Name
      taxCode
      Type
      string
      Description
      Tax classification code.
    • Name
      type
      Type
      ProductType
      Required
      required
      Description
      Product type: Inttegro.ProductTypes.Cause, Inttegro.ProductTypes.Custom, Inttegro.ProductTypes.Digital, Inttegro.ProductTypes.Physical, Inttegro.ProductTypes.Service, or Inttegro.ProductTypes.Voucher.
    • Name
      unitDim
      Type
      string
      Description
      Unit dimension label.
    • Name
      updatedAt
      Type
      Date | null
      Description
      When the product was last updated.
    • Name
      variantSetId
      Type
      string
      Description
      Variant set configured for this Buy link.
  • quantityPurchaseIntentQuantityrequiredQuantity bounds enforced by the hosted checkout. When quantity.max is omitted, the offer has no upper quantity limit.Click or tap to expand
    • Name
      max
      Type
      number
      Description
      Optional highest quantity a shopper may buy.
    • Name
      min
      Type
      number
      Required
      required
      Description
      Lowest quantity a shopper may buy.
  • Name
    status
    Type
    PurchaseIntentStatus
    Required
    required
    Description

    Current effective state of the Buy link:

    Inttegro.PurchaseIntentStatuses.Active

    ,

    Inttegro.PurchaseIntentStatuses.Expired

    ,

    Inttegro.PurchaseIntentStatuses.Inactive

    , or

    Inttegro.PurchaseIntentStatuses.Used

    .

  • Name
    updatedAt
    Type
    Date | null
    Description

    When the merchant last changed the purchase intent.

  • usagePurchaseIntentUsagerequiredHow often the Buy link may be used.Click or tap to expand
    • Name
      multiUse
      Type
      boolean
      Description
      When true, the same intent may produce multiple orders over time.
    • Name
      order
      Type
      PurchaseIntentUsageOrder
      View order attributesClick or tap to expand
      Present after a single-use Buy link has already been consumed. Includes the resulting order ID and its creation time.
      • Name
        createdAt
        Type
        Date
        Required
        required
        Description
        When order creation consumed the Buy link.
      • Name
        id
        Type
        string
        Required
        required
        Description
        Order that consumed the Buy link.
    • Name
      singleUse
      Type
      boolean
      Description
      When true, creating the first order consumes the Buy link.
  • variantSetPurchaseIntentVariantSetActive variant choices available to the customer. This can be omitted even when allowVariants is true.Click or tap to expand
    • Name
      active
      Type
      boolean
      Required
      required
      Description
      Whether the variant set is active.
    • Name
      defaultProductId
      Type
      string
      Description
      Default product in the variant set.
    • Name
      description
      Type
      string
      Description
      Variant-set description.
    • Name
      id
      Type
      string
      Required
      required
      Description
      Variant-set identifier.
    • Name
      name
      Type
      string
      Required
      required
      Description
      Variant-set name.
    • Name
      reference
      Type
      string
      Description
      Your reference for the variant set.
    • Name
      variantAxes
      Type
      PurchaseIntentVariantAxis[]
      Required
      required
      View variant_axes attributesClick or tap to expand
      Dimensions shoppers use to choose a variant.
      • Name
        key
        Type
        string
        Required
        required
        Description
        Stable axis key.
      • Name
        label
        Type
        string
        Required
        required
        Description
        Customer-facing axis label.
      • Name
        position
        Type
        number
        Required
        required
        Description
        Display order of the axis.
    • Name
      variants
      Type
      PurchaseIntentVariant[]
      Required
      required
      View variants attributesClick or tap to expand
      Products currently available as choices in the variant set.
      • Name
        active
        Type
        boolean
        Required
        required
        Description
        Whether this variant is active.
      • Name
        position
        Type
        number
        Description
        Display order of the variant.
      • Name
        price
        Type
        PurchaseIntentPrice
        View price detailsClick or tap to expand
        Resolved price for this variant, using the same shape as the top-level price property.
      • Name
        product
        Type
        PurchaseIntentProduct
        View product detailsClick or tap to expand
        Hydrated catalog product for this variant, using the same shape as the top-level product property.
      • Name
        productId
        Type
        string
        Required
        required
        Description
        Product represented by this variant.
      • Name
        variantValues
        Type
        VariantValues
        Required
        required
        View variant_values detailsClick or tap to expand
        Axis keys and the values selected by this variant.
POST/purchase_intents/create

Create a purchase intent

Create a hosted Buy link for a catalog product. The response includes the sale_... ID used in the shareable checkout URL. No order exists yet; an order is created only when a customer checks out from the link.

Note

Cause products default to “Support this cause,” “Contribution amount,” and “Continue to contribute.” Other product types default to “Prepare order,” “Amount,” and “Continue to payment.” The amount label appears only when the customer can select an amount.

Available through MCP

AI clients can use create_buy_link for this operation. Confirmed MCP actions still require explicit form confirmation before Inttegro changes state.

Rules​

  • Send exactly one of product or productId.
  • Send exactly one of price or priceId.
  • A referenced product and each referenced price must come from your catalog. The selected catalog price must be active, not archived, and belong to the selected product. An optional comparison price must belong to the selected product but does not determine what the customer is charged.
  • An inline price.nominal.value must be at least 1 and uses the smallest currency unit. Its currency is normalized to lowercase.
  • Within price, send exactly one of price.id or price.nominal. For comparison pricing, send at most one of price.original or price.originalId; within price.original, send exactly one of price.original.id or price.original.nominal.
  • quantity.min is required and must be at least 1.
  • quantity.max is optional. When present, it must be at least 1 and greater than or equal to quantity.min; when omitted, the offer has no upper quantity limit.
  • expiresAt must be a future RFC3339 timestamp when provided.
  • presentation.buyPage.text is optional. Each supplied label is trimmed, must contain non-whitespace text on one line, and must fit its documented length limit. Omit the complete presentation object to use product-aware defaults.
  • presentation.buyPage.text.primaryActionLabel controls only the ready action. Validation and loading labels remain system-owned so the button continues to describe its current state accurately.
  • A product.variantSetId is saved as offer configuration. Variant options are returned only when that set and its eligible products are available at lookup time.
  • Omit usage or set usage.multiUse to true for a reusable link. Set usage.singleUse to true for a link that can create only one order. Do not send both fields.

Request attributes​

TypeScript SDK requestCreatePurchaseIntentRequestv12.0.0
  • Name
    expiresAt
    Type
    Date
    Description

    Optional expiry time for the Buy link. After this moment, new shoppers can no longer create orders from the intent.

  • presentationPurchaseIntentPresentationOptional plain-text overrides for the hosted Buy page. Omit this object to use product-aware defaults.Click or tap to expand
    • Name
      buyPage
      Type
      { … }
      Required
      required
      View buy_page attributesClick or tap to expand
      Hosted Buy-page presentation.
      • Name
        text
        Type
        Record<string, unknown>
        Required
        required
        View text attributesClick or tap to expand
        At least one text override is required.
        • Name
          amountFieldLabel
          Type
          string
          Description
          Single-line label above the customer-selected amount input. Maximum 64 characters.
        • Name
          checkoutSectionTitle
          Type
          string
          Description
          Single-line heading above the Buy-page form. Maximum 80 characters.
        • Name
          primaryActionLabel
          Type
          string
          Description
          Single-line ready-state button label. Maximum 48 characters.
  • pricePurchaseIntentPriceSelectorPrice configuration for the Buy link. Use this instead of priceId to supply an inline amount, a catalog price with comparison pricing, or both the sale and comparison amounts inline.Click or tap to expand
    • Name
      id
      Type
      string
      Description
      Existing price identifier to reuse.
    • Name
      nominal
      Type
      PriceParams
      View nominal attributesClick or tap to expand
      Inline amount when you are not reusing a stored price ID.
      • Name
        currency
        Type
        Currency
        Description
        Non-empty currency code, normalized to lowercase.
      • Name
        value
        Type
        number
        Description
        Amount in the smallest currency unit.
    • Name
      original
      Type
      { … }
      View original attributesClick or tap to expand
      Optional original price for strike-through pricing when you are supplying a custom nominal amount.
      • Name
        id
        Type
        string
        Description
        Stored original price identifier.
      • Name
        nominal
        Type
        InlineParams
        View nominal attributesClick or tap to expand
        Inline original amount when you are not reusing a stored price ID.
        • Name
          currency
          Type
          Currency
          Description
          Non-empty currency code, normalized to lowercase.
        • Name
          value
          Type
          number
          Description
          Amount in the smallest currency unit.
    • Name
      originalId
      Type
      string
      Description
      Stored original price identifier when you want strike-through pricing without embedding price.original.
  • Name
    priceId
    Type
    string
    Description

    Stored catalog price to reuse for the Buy link.

  • productPurchaseIntentProductSelectorProduct selection for the Buy link. Use this instead of productId when the offer should expose a variant set.Click or tap to expand
    • Name
      id
      Type
      string
      Description
      Stored product identifier to sell through the Buy link.
    • Name
      variantSetId
      Type
      string
      Description
      Variant set identifier when the offer should allow shoppers to switch between related products.
  • Name
    productId
    Type
    string
    Description

    Stored catalog product to reuse for the Buy link.

  • quantityPurchaseIntentQuantityrequiredQuantity bounds the hosted checkout enforces.Click or tap to expand
    • Name
      min
      Type
      number
      Required
      required
      Description
      Minimum quantity a shopper must buy.
    • Name
      max
      Type
      number
      Description
      Optional maximum quantity a shopper may buy. Omit it for no upper limit.
  • usagePurchaseIntentUsageOptional usage policy. Omit it to create a reusable Buy link.Click or tap to expand
    • Name
      multiUse
      Type
      boolean
      Description
      Allow the same intent to produce multiple orders.
    • Name
      singleUse
      Type
      boolean
      Description
      Consume the intent when the first order is created.

Request

POST/purchase_intents/create
SDK versionv12.0.0
import * as Inttegro from '@inttegro/inttegro-sdk'

const inttegro = new Inttegro.InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.purchaseIntents.create({
productId: "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
priceId: "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
presentation: {
buyPage: {
text: {
checkoutSectionTitle: "Order your matcha",
primaryActionLabel: "Continue with this order",
},
},
},
quantity: {
max: 5,
min: 1,
},
usage: {
multiUse: true,
},
expiresAt: new Date("2030-12-01T09:00:00Z"),
})

Response

SDK versionv12.0.0
PurchaseIntentResponse {
purchaseIntent: { … },
}
POST/purchase_intents/update

Update a purchase intent

Change the quantity, availability window, or customer-facing labels of an existing Buy link without changing what the link sells. Product, price, variant selection, and usage mode stay fixed so a URL already shared with customers does not silently become a different offer.

Available through MCP

AI clients can use update_buy_link for this operation. Confirmed MCP actions still require explicit form confirmation before Inttegro changes state.

Rules​

  • Send exactly one identifier. Use id for new integrations; purchaseIntentId remains available as a compatibility alias.
  • Setting expiresAt to null clears the expiry time.
  • A non-null expiresAt must be an RFC3339 timestamp. A past timestamp is accepted and makes the offer immediately expired.
  • Setting reactivate to true clears cancellation state and any existing elapsed expiry. If the same request sets a new elapsed expiresAt, the intent remains expired.
  • presentation.buyPage.text is a sparse update. Omit a label to preserve its current override; send the label as null to remove that override and restore the product-aware default.
  • Every non-null text value is trimmed, must contain non-whitespace text on one line, and must fit its documented length limit. Appearance, validation messages, and loading labels are not configurable here.
  • When supplied, quantity must include quantity.min, which must be at least 1. Its optional quantity.max must be greater than or equal to quantity.min.
  • Omitting quantity.max removes an existing upper quantity limit. Omit the entire quantity object to leave both bounds unchanged.
  • Sending only the identifier is a valid no-op and returns the current object.
  • A used single-use intent stays used; reactivation does not remove its order claim.

Request attributes​

TypeScript SDK requestUpdatePurchaseIntentRequestv12.0.0
  • Name
    expiresAt
    Type
    Date | null
    Description

    New expiry time for the Buy link, or null to remove the current expiry.

  • Name
    id
    Type
    string
    Description

    Canonical purchase intent identifier. Required unless you use the compatibility alias.

  • presentationPurchaseIntentPresentationUpdateSparse plain-text update for the hosted Buy page. Omitted labels are preserved; explicit null restores a product-aware default.Click or tap to expand
    • Name
      buyPage
      Type
      { … }
      Required
      required
      View buy_page attributesClick or tap to expand
      Hosted Buy-page presentation update.
      • Name
        text
        Type
        Record<string, unknown>
        Required
        required
        View text attributesClick or tap to expand
        At least one text field is required.
        • Name
          amountFieldLabel
          Type
          string | null
          Description
          New amount-field label, up to 64 characters, or null to restore the default.
        • Name
          checkoutSectionTitle
          Type
          string | null
          Description
          New checkout-section title, up to 80 characters, or null to restore the default.
        • Name
          primaryActionLabel
          Type
          string | null
          Description
          New ready-state action label, up to 48 characters, or null to restore the default.
  • quantityPurchaseIntentQuantityReplacement quantity bounds. Omit this object to leave the current bounds unchanged.Click or tap to expand
    • Name
      min
      Type
      number
      Required
      required
      Description
      New minimum quantity shoppers must buy.
    • Name
      max
      Type
      number
      Description
      Optional new maximum. Omit it to remove the upper limit.
  • Name
    purchaseIntentId
    Type
    string
    Description

    Compatibility alias for id. Omit this in new integrations, and never send both identifier fields.

  • Name
    reactivate
    Type
    boolean
    Description

    Clear state that currently prevents new purchases.

This example replaces the section title, restores the product-aware primary action with an explicit null, and leaves the omitted amount-field label unchanged.

Request

POST/purchase_intents/update
SDK versionv12.0.0
import * as Inttegro from '@inttegro/inttegro-sdk'

const inttegro = new Inttegro.InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.purchaseIntents.update({
id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
presentation: {
buyPage: {
text: {
checkoutSectionTitle: "Complete your matcha order",
primaryActionLabel: null,
},
},
},
})

Response

SDK versionv12.0.0
PurchaseIntentResponse {
purchaseIntent: { … },
}
POST/purchase_intents/cancel

Cancel a purchase intent

Stop a Buy link from creating new orders immediately. Unlike expiry, cancellation happens when you choose to stop the offer. The intent remains available through the API with status set to Inttegro.PurchaseIntentStatuses.Inactive.

Canceling an already inactive intent returns its current state. A single-use intent that already created an order cannot be canceled.

Send exactly one identifier. Use id for new integrations; purchaseIntentId remains available as a compatibility alias.

Available through MCP

AI clients can use cancel_buy_link for this operation. Confirmed MCP actions still require explicit form confirmation before Inttegro changes state.

Request attributes​

TypeScript SDK requestCancelPurchaseIntentRequestv12.0.0
  • Name
    id
    Type
    string
    Description

    Canonical purchase intent identifier. Required unless you use the compatibility alias.

  • Name
    purchaseIntentId
    Type
    string
    Description

    Compatibility alias for id. Omit this in new integrations, and never send both identifier fields.

Request

POST/purchase_intents/cancel
SDK versionv12.0.0
import * as Inttegro from '@inttegro/inttegro-sdk'

const inttegro = new Inttegro.InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.purchaseIntents.cancel({
id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
})

Response

SDK versionv12.0.0
PurchaseIntentResponse {
purchaseIntent: { … },
}
POST/purchase_intents/lookup

Lookup a purchase intent

Retrieve the offer behind a Buy link. Public checkout can look up a sale_... ID without an API key, so the ID is designed to be shared with customers and is not an account credential.

Public lookup returns active and expired offers so checkout can show either the offer or an expiry message. Canceled and already-used single-use offers are not exposed publicly. Authenticate a server-side lookup when you need every lifecycle state.

Available through MCP

AI clients can use get_buy_link for this operation. MCP read tools return minimized business data and do not change Inttegro state.

Required attributes​

TypeScript SDK requestLookupPurchaseIntentRequestv12.0.0
  • Name
    id
    Type
    string
    Required
    required
    Description

    Purchase intent identifier with the sale_ prefix.

Request

POST/purchase_intents/lookup
SDK versionv12.0.0
import * as Inttegro from '@inttegro/inttegro-sdk'

const inttegro = new Inttegro.InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.purchaseIntents.lookup({
id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
})

Response

SDK versionv12.0.0
PurchaseIntentResponse {
purchaseIntent: { … },
}
POST/purchase_intents/page

List purchase intents

Browse your Buy links, newest first. Each item contains the same merchant-facing details as an authenticated lookup.

Pagination is numbered rather than cursor-based. size in the response is the number of intents actually returned, which can be smaller than the requested pageSize. The response does not include a total count or next-page token.

Available through MCP

AI clients can use list_buy_links for this operation. MCP read tools return minimized business data and do not change Inttegro state.

Required attributes​

TypeScript SDK requestPagePurchaseIntentsRequestv12.0.0
  • Name
    pageNumber
    Type
    number
    Required
    required
    Description

    1-based page number to fetch. Must be between 1 and 10 inclusive.

  • Name
    pageSize
    Type
    number
    Required
    required
    Description

    Number of items to return. Must be between 1 and 256 inclusive.

Request

POST/purchase_intents/page
SDK versionv12.0.0
import * as Inttegro from '@inttegro/inttegro-sdk'

const inttegro = new Inttegro.InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.purchaseIntents.page({
pageNumber: 1,
pageSize: 20,
})

Response

SDK versionv12.0.0
PageResponse {
page: { … },
}