Skip to content

Purchase intents

Create controlled, shareable Buy links that send customers directly from a product offer to Inttegro Checkout.

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 responsePurchaseIntentv15.0.0

Create a purchase intent POST /purchase_intents/create

Create a hosted Buy link for a catalog product or bundle. 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.

Rules

Request attributes

TypeScript SDK requestCreatePurchaseIntentRequestv15.0.0

Request

POST/purchase_intents/create
cURLbash
curl https://api.inttegro.com/purchase_intents/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: buy-link-matcha-launch-001" \
-d '{
"product_id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
"price_id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
"presentation": {
  "buy_page": {
    "text": {
      "checkout_section_title": "Order your matcha",
      "primary_action_label": "Continue with this order"
    }
  }
},
"quantity": {
  "max": 5,
  "min": 1
},
"usage": {
  "multi_use": true
},
"expires_at": "2030-12-01T09:00:00Z"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new 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"),
})
Gogo
package main

import (
  "context"
  "log"
  "os"
  "time"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/purchaseintent"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := purchaseintent.CreateParams{
    ProductID: "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
    PriceID: "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
    Quantity: purchaseintent.Quantity{
      Max: 5,
      Min: 1,
    },
    Usage: &purchaseintent.Usage{
      MultiUse: inttegro.Bool(true),
    },
    ExpiresAt: mustParseTime("2030-12-01T09:00:00Z"),
  }
  result, err := client.PurchaseIntents.Create(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}

func mustParseTime(value string) *time.Time {
  parsed, err := time.Parse(time.RFC3339, value)
  if err != nil {
    panic(err)
  }
  return &parsed
}
Pythonpython
import os
from datetime import datetime

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.purchase_intents.create(inttegro.purchase_intent.CreateRequest(
  product_id="prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
  price_id="pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
  presentation={
    "buy_page": {
      "text": {
        "checkout_section_title": "Order your matcha",
        "primary_action_label": "Continue with this order",
      },
    },
  },
  quantity=inttegro.purchase_intent.CreateRequestQuantity(
    max=5,
    min=1,
  ),
  usage=inttegro.purchase_intent.CreateRequestUsage(
    multi_use=True,
  ),
  expires_at=datetime.fromisoformat("2030-12-01T09:00:00Z".replace("Z", "+00:00")),
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->create([
  'product_id' => 'prod_P9sK3vLm4nQ2xR7tY1wBc8Da',
  'price_id' => 'pr_G6tV2nQ9xM4bR7cD1yKs5LpW',
  'presentation' => [
    'buy_page' => [
      'text' => [
        'checkout_section_title' => 'Order your matcha',
        'primary_action_label' => 'Continue with this order',
      ],
    ],
  ],
  'quantity' => [
    'max' => 5,
    'min' => 1,
  ],
  'usage' => [
    'multi_use' => true,
  ],
  'expires_at' => '2030-12-01T09:00:00Z',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.create(
  product_id: "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
  price_id: "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
  presentation: {
    buy_page: {
      text: {
        checkout_section_title: "Order your matcha",
        primary_action_label: "Continue with this order",
      },
    },
  },
  quantity: {
    max: 5,
    min: 1,
  },
  usage: {
    multi_use: true,
  },
  expires_at: "2030-12-01T09:00:00Z"
)
Javajava
import com.inttegro.Client;
import com.inttegro.purchaseintents.CreatePurchaseIntentParams;
import com.inttegro.purchaseintents.PurchaseIntentQuantity;
import com.inttegro.purchaseintents.PurchaseIntentUsage;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var expiresAt = new Time();
    var params = CreatePurchaseIntentParams.builder()
      .productId("prod_P9sK3vLm4nQ2xR7tY1wBc8Da")
      .priceId("pr_G6tV2nQ9xM4bR7cD1yKs5LpW")
      .quantity(PurchaseIntentQuantity.builder()
          .max(5)
          .min(1)
          .build())
      .usage(PurchaseIntentUsage.builder()
          .multiUse(true)
          .build())
      .expiresAt(expiresAt)
      .build();
    var result = client.purchaseIntents().create(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.CreateAsync(new CreatePurchaseIntentParams {
  ProductId = "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
  PriceId = "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
  Presentation = new PurchaseIntentPresentation {
    BuyPage = new PurchaseIntentBuyPagePresentation {
      Text = new PurchaseIntentBuyPageText {
        CheckoutSectionTitle = "Order your matcha",
        PrimaryActionLabel = "Continue with this order",
      },
    },
  },
  Quantity = new PurchaseIntentQuantity {
    Max = 5,
    Min = 1,
  },
  Usage = new PurchaseIntentUsage {
    MultiUse = true,
  },
  ExpiresAt = DateTimeOffset.Parse("2030-12-01T09:00:00Z"),
});
Responsejson
{
  "purchase_intent": {
    "id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
    "quantity": {
      "min": 1,
      "max": 5
    },
    "allow_variants": false,
    "usage": {
      "multi_use": true
    },
    "expires_at": "2030-12-01T09:00:00Z",
    "status": "active",
    "created_at": "2026-08-05T12:00:00Z",
    "product": {
      "id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
      "active": true,
      "created_at": "2026-07-28T10:00:00Z",
      "name": "Premium Matcha Tin",
      "type": "physical"
    },
    "price": {
      "id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
      "active": true,
      "nominal": {
        "currency": "ghs",
        "value": 18500
      }
    },
    "presentation": {
      "buy_page": {
        "text": {
          "checkout_section_title": "Order your matcha",
          "primary_action_label": "Continue with this order"
        }
      }
    }
  }
}

Update a purchase intent POST /purchase_intents/update

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.

Rules

  • 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 requestUpdatePurchaseIntentRequestv15.0.0

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
cURLbash
curl https://api.inttegro.com/purchase_intents/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: buy-link-matcha-update-001" \
-d '{
"id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
"presentation": {
  "buy_page": {
    "text": {
      "checkout_section_title": "Complete your matcha order",
      "primary_action_label": null
    }
  }
}
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new 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,
      },
    },
  },
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/purchaseintent"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := purchaseintent.UpdateParams{
    ID: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
  }
  result, err := client.PurchaseIntents.Update(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.purchase_intents.update(inttegro.purchase_intent.UpdateRequest(
  id="sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
  presentation={
    "buy_page": {
      "text": {
        "checkout_section_title": "Complete your matcha order",
        "primary_action_label": None,
      },
    },
  },
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->update([
  'id' => 'sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha',
  'presentation' => [
    'buy_page' => [
      'text' => [
        'checkout_section_title' => 'Complete your matcha order',
        'primary_action_label' => null,
      ],
    ],
  ],
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.update(
  id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
  presentation: {
    buy_page: {
      text: {
        checkout_section_title: "Complete your matcha order",
        primary_action_label: nil,
      },
    },
  }
)
Javajava
import com.inttegro.Client;
import com.inttegro.purchaseintents.UpdatePurchaseIntentParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = UpdatePurchaseIntentParams.builder()
      .id("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
      .build();
    var result = client.purchaseIntents().update(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.UpdateAsync(new UpdatePurchaseIntentParams {
  Id = "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
  Presentation = new PurchaseIntentPresentation {
    BuyPage = new PurchaseIntentBuyPagePresentation {
      Text = new PurchaseIntentBuyPageText {
        CheckoutSectionTitle = "Complete your matcha order",
        PrimaryActionLabel = null,
      },
    },
  },
});
Responsejson
{
  "purchase_intent": {
    "id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
    "quantity": {
      "min": 1,
      "max": 5
    },
    "allow_variants": false,
    "usage": {
      "multi_use": true
    },
    "expires_at": "2030-12-01T09:00:00Z",
    "status": "active",
    "created_at": "2026-08-05T12:00:00Z",
    "updated_at": "2026-08-05T12:18:00Z",
    "product": {
      "id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
      "active": true,
      "created_at": "2026-07-28T10:00:00Z",
      "name": "Premium Matcha Tin",
      "type": "physical"
    },
    "price": {
      "id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
      "active": true,
      "nominal": {
        "currency": "ghs",
        "value": 18500
      }
    },
    "presentation": {
      "buy_page": {
        "text": {
          "checkout_section_title": "Complete your matcha order"
        }
      }
    }
  }
}

Cancel a purchase intent POST /purchase_intents/cancel

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.

Request attributes

TypeScript SDK requestCancelPurchaseIntentRequestv15.0.0
  • #idstring

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

  • #purchaseIntentIdstring

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

Request

POST/purchase_intents/cancel
cURLbash
curl https://api.inttegro.com/purchase_intents/cancel \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: buy-link-matcha-cancel-001" \
-d '{
"id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.purchaseIntents.cancel({
  id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PurchaseIntents.Cancel(ctx, "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.purchase_intents.cancel("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->cancel("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.cancel(id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.purchaseIntents().cancel("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.CancelAsync("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
Responsejson
{
  "purchase_intent": {
    "id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
    "quantity": {
      "min": 2,
      "max": 8
    },
    "allow_variants": false,
    "usage": {
      "multi_use": true
    },
    "expires_at": "2030-12-01T09:00:00Z",
    "inactive_at": "2026-08-05T12:26:00Z",
    "status": "inactive",
    "created_at": "2026-08-05T12:00:00Z",
    "updated_at": "2026-08-05T12:26:00Z",
    "product": {
      "id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
      "active": true,
      "created_at": "2026-07-28T10:00:00Z",
      "name": "Premium Matcha Tin",
      "type": "physical"
    },
    "price": {
      "id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
      "active": true,
      "nominal": {
        "currency": "ghs",
        "value": 18500
      }
    }
  }
}

Lookup a purchase intent POST /purchase_intents/lookup

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.

Required attributes

TypeScript SDK requestLookupPurchaseIntentRequestv15.0.0
  • #idstringrequired

    Purchase intent identifier with the sale_ prefix.

Request

POST/purchase_intents/lookup
cURLbash
curl https://api.inttegro.com/purchase_intents/lookup \
-H "Content-Type: application/json" \
-d '{
"id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.purchaseIntents.lookup({
  id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  result, err := client.PurchaseIntents.Lookup(ctx, "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.purchase_intents.lookup("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->lookup("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.lookup(id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.purchaseIntents().lookup("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.LookupAsync("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");
Responsejson
{
  "purchase_intent": {
    "id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
    "merchant": {
      "app_name": "Tea House",
      "organization_id": "org_3Qn7Lp5cY2vR8tMd1Ks4BxWa",
      "organization_name": "Tea House Ltd"
    },
    "quantity": {
      "min": 1,
      "max": 5
    },
    "allow_variants": true,
    "usage": {
      "multi_use": true
    },
    "status": "active",
    "created_at": "2026-08-05T12:00:00Z",
    "product": {
      "id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
      "variant_set_id": "pg_1Ms9Qv4rLc7tY2pNd6Bx8HwK",
      "active": true,
      "created_at": "2026-07-28T10:00:00Z",
      "name": "Premium Matcha Tin",
      "type": "physical"
    },
    "price": {
      "id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
      "active": true,
      "nominal": {
        "currency": "ghs",
        "value": 18500
      }
    }
  }
}

List purchase intents POST /purchase_intents/page

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.

Required attributes

TypeScript SDK requestPagePurchaseIntentsRequestv15.0.0

Request

POST/purchase_intents/page
cURLbash
curl https://api.inttegro.com/purchase_intents/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page_number": 1,
"page_size": 20
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.purchaseIntents.page({
  pageNumber: 1,
  pageSize: 20,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/purchaseintent"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := purchaseintent.PageParams{
    PageNumber: 1,
    PageSize: 20,
  }
  result, err := client.PurchaseIntents.Page(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.purchase_intents.page(inttegro.purchase_intent.PageRequest(
  page_number=1,
  page_size=20,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->page([
  'page_number' => 1,
  'page_size' => 20,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.page(
  page_number: 1,
  page_size: 20
)
Javajava
import com.inttegro.Client;
import com.inttegro.purchaseintents.PagePurchaseIntentsParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = PagePurchaseIntentsParams.builder()
      .pageNumber(1)
      .pageSize(20)
      .build();
    var result = client.purchaseIntents().page(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.PageAsync(new {
  page_number = 1,
  page_size = 20,
});
Responsejson
{
  "page": {
    "number": 1,
    "size": 2,
    "purchase_intents": [
      {
        "id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha",
        "quantity": {
          "min": 1,
          "max": 5
        },
        "allow_variants": false,
        "usage": {
          "multi_use": true
        },
        "status": "active",
        "created_at": "2026-08-05T12:00:00Z",
        "product": {
          "id": "prod_P9sK3vLm4nQ2xR7tY1wBc8Da",
          "active": true,
          "created_at": "2026-07-28T10:00:00Z",
          "name": "Premium Matcha Tin",
          "type": "physical"
        },
        "price": {
          "id": "pr_G6tV2nQ9xM4bR7cD1yKs5LpW",
          "active": true,
          "nominal": {
            "currency": "ghs",
            "value": 18500
          }
        }
      },
      {
        "id": "sale_M4nQ7xVc2pLs8YtR1kDb5HwA",
        "quantity": {
          "min": 1,
          "max": 1
        },
        "allow_variants": false,
        "usage": {
          "single_use": true,
          "order": {
            "id": "or_9tW2xBc5pLm8Qn1Rr4Ks7YdV",
            "created_at": "2026-08-05T12:42:00Z"
          }
        },
        "status": "used",
        "created_at": "2026-08-04T17:20:00Z",
        "product": {
          "id": "prod_H2mR8vQ4kL7xT1nPs5Bc9DyW",
          "active": true,
          "created_at": "2026-07-20T09:30:00Z",
          "name": "Ceremonial Matcha Set",
          "type": "physical"
        },
        "price": {
          "id": "pr_D5xK1mQ8vR3tN7pLs2Bc9HyW",
          "active": true,
          "nominal": {
            "currency": "ghs",
            "value": 42000
          }
        }
      }
    ]
  }
}

Type to search…

↑↓ navigate↵ selectEsc close