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
PurchaseIntentv13.1.0Go SDK responsePurchaseIntentv14.0.0Java SDK responsePurchaseIntentv11.1.0PHP SDK responsePurchaseIntentv15.0.0Python SDK responsePurchaseIntentv15.0.0Ruby SDK responsePurchaseIntentv13.0.0TypeScript SDK responsePurchaseIntentv15.0.0- #
AllowVariantsallow_variantsAllowVariantsallowVariantsallowVariantsallow_variantsallow_variantsallowVariantsboolbooleanboolbooleanboolboolT::BooleanbooleanrequiredWhether the offer uses a variant set. When
VariantSetpurchase_intent.variant_setVariantSetvariantSetvariantSetvariant_setvariant_setvariantSetis present, checkout can offer its active, available variants. - #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDaterequiredWhen the purchase intent was created.
- #
ExpiresAtexpires_atExpiresAtexpiresAtexpiresAtexpires_atexpires_atexpiresAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateOptional timestamp after which the Buy link stops accepting new purchases. Expiry is effective at the timestamp itself.
- #
InactiveAtinactive_atInactiveAtinactiveAtinactiveAtinactive_atinactive_atinactiveAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the merchant explicitly inactivated the Buy link. When this is set, the intent is unavailable even if
ExpiresAtpurchase_intent.expires_atExpiresAtexpiresAtexpiresAtexpires_atexpires_atexpiresAtis still in the future. #
MerchantmerchantMerchantmerchantmerchantmerchantmerchantmerchantPurchaseIntentMerchant?object*MerchantPurchaseIntentMerchant?PurchaseIntent\MerchantPurchaseIntentMerchant | NoneT.nilable(PurchaseIntent::Merchant)PurchaseIntentMerchantBusiness identity shown in the hosted checkout. Individual fields are omitted when unavailable.Click or tap to expand- #
OrganizationIdorganization_idOrganizationIDorganizationIdorganizationIdorganization_idorganization_idorganizationIdstring?stringstringString?stringstr | NoneStringstringOrganization that owns the application. - #
OrganizationNameorganization_nameOrganizationNameorganizationNameorganizationNameorganization_nameorganization_nameorganizationNamestring?stringstringString?stringstr | NoneStringstringHuman-readable organization name.
#
PricepricePricepricepricepricepricepricePurchaseIntentPrice?object*PricePurchaseIntentPrice?PurchaseIntent\PricePurchaseIntentPrice | NoneT.nilable(PurchaseIntent::PriceInline)PurchaseIntentPriceResolved price used for the offer. Amounts use integer minor units.Click or tap to expandView nominal attributesClick or tap to expand
Amount the customer pays.View original attributesClick or tap to expand
Optional comparison price shown alongside the amount charged.View nominal attributesClick or tap to expand
Comparison amount.
#
PresentationpresentationPresentationpresentationpresentationpresentationpresentationpresentationPurchaseIntentPresentation?object*PresentationPurchaseIntentPresentation?PurchaseIntent\PresentationPurchaseIntentPresentation | NoneT.nilable(PurchaseIntent::Presentation)PurchaseIntentPresentationMerchant-authored Buy-page copy. Omitted fields continue to use product-aware defaults.Click or tap to expandView buy_page attributesClick or tap to expand
Presentation overrides for the hosted Buy page.- #
TexttextTexttexttexttexttexttextPurchaseIntentBuyPageText?object*BuyPageTextPurchaseIntentBuyPageText?BuyPageTextPresentationBuyPageText | NoneT.nilable(PurchaseIntent::PresentationBuyPageText)Record<string, unknown>View text attributesClick or tap to expand
Plain-text labels that differ from the defaults.- #
AmountFieldLabelamount_field_labelAmountFieldLabelamountFieldLabelamountFieldLabelamount_field_labelamount_field_labelamountFieldLabelstring?stringstringString?stringstr | NoneT.nilable(String)stringLabel above a customer-selected amount input. - #
CheckoutSectionTitlecheckout_section_titleCheckoutSectionTitlecheckoutSectionTitlecheckoutSectionTitlecheckout_section_titlecheckout_section_titlecheckoutSectionTitlestring?stringstringString?stringstr | NoneT.nilable(String)stringHeading above the Buy-page form. - #
PrimaryActionLabelprimary_action_labelPrimaryActionLabelprimaryActionLabelprimaryActionLabelprimary_action_labelprimary_action_labelprimaryActionLabelstring?stringstringString?stringstr | NoneT.nilable(String)stringReady-state primary action label.
#
ProductproductProductproductproductproductproductproductPurchaseIntentProduct?object*ProductPurchaseIntentProduct?PurchaseIntent\ProductPurchaseIntentProduct | NoneT.nilable(PurchaseIntent::Product)PurchaseIntentProductCurrent catalog product rendered by the hosted checkout.Click or tap to expand- #
ArchivedAtarchived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the product was archived. - #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDaterequiredWhen the product was created. - #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object|null*DataCustomData?CustomDataCustomData | NoneT.nilable(CustomData)Readonly<Record<string, string>>View custom_data detailsClick or tap to expand
Product metadata, returned as string values. - #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstring?stringstringString?stringstr | NoneT.nilable(String)stringShort product description. View dimensions attributesClick or tap to expand
Physical, digital, or custom size information.View custom attributesClick or tap to expand
Custom dimension details.View details detailsClick or tap to expand
Custom dimension values.
View digital attributesClick or tap to expand
Digital file size.View physical attributesClick or tap to expand
Physical measurements.- #
VolumeUnitvolume_unitVolumeUnitvolumeUnitvolumeUnitvolume_unitvolume_unitvolumeUnitstring?stringstringString?stringstr | NoneT.nilable(String)stringUnit used for volume. - #
WeightUnitweight_unitWeightUnitweightUnitweightUnitweight_unitweight_unitweightUnitstring?stringstringString?stringstr | NoneT.nilable(String)stringUnit used for weight.
View media attributesClick or tap to expand
Product media shown during browsing and checkout.- #
BrandLogobrand_logoBrandLogobrandLogobrandLogobrand_logobrand_logobrandLogostring?stringstringString?stringstr | NoneT.nilable(String)stringBrand logo reference or URL. - #
DemoVideodemo_videoDemoVideodemoVideodemoVideodemo_videodemo_videodemoVideostring?stringstringString?stringstr | NoneT.nilable(String)stringDemo video reference or URL. - #
HeroImagehero_imageHeroImageheroImageheroImagehero_imagehero_imageheroImagestring?stringstringString?stringstr | NoneT.nilable(String)stringPrimary image reference or URL. - #
InfographicinfographicInfographicinfographicinfographicinfographicinfographicinfographicstring?stringstringString?stringstr | NoneT.nilable(String)stringInfographic reference or URL. - #
PromoVideopromo_videoPromoVideopromoVideopromoVideopromo_videopromo_videopromoVideostring?stringstringString?stringstr | NoneT.nilable(String)stringPromotional video reference or URL. - #
WebPageUrlweb_page_urlWebPageURLwebPageUrlwebPageUrlweb_page_urlweb_page_urlwebPageUrlstring?stringstringString?stringstr | NoneT.nilable(String)stringProduct web page URL.
View prices attributesClick or tap to expand
Non-archived catalog prices currently attached to the product.View nominal attributesClick or tap to expand
- #
PublishedAtpublished_atPublishedAtpublishedAtpublishedAtpublished_atpublished_atpublishedAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the product was published. - #
ShipmentshipmentShipmentshipmentshipmentshipmentshipmentshipmentProductShipment?object|null*ProductShipmentProductShipment?Product\ShipmentProductShipment | NoneT.nilable(T.any(Product::ShipmentVariant1, Product::ShipmentVariant2, Product::ShipmentVariant3, Product::ShipmentVariant4, Product::ShipmentVariant5))ProductShipment | nullView shipment detailsClick or tap to expand
Fulfillment details copied from the product when present. - #
TypetypeTypetypetypetypetypetypeProductTypeenumTypeProductTypestringLiteral['physical', 'digital', 'service', 'voucher', 'custom', 'cause']Product::TypeProductTyperequiredProduct type:Inttegro.ProductType.Cause"cause"product.TypeCauseProductType.CAUSE\Inttegro\Product\Type::Causeinttegro.product.Type.CAUSEInttegro::Product::Type::CAUSEInttegro.ProductTypes.Cause,Inttegro.ProductType.Custom"custom"product.TypeCustomProductType.CUSTOM\Inttegro\Product\Type::Custominttegro.product.Type.CUSTOMInttegro::Product::Type::CUSTOMInttegro.ProductTypes.Custom,Inttegro.ProductType.Digital"digital"product.TypeDigitalProductType.DIGITAL\Inttegro\Product\Type::Digitalinttegro.product.Type.DIGITALInttegro::Product::Type::DIGITALInttegro.ProductTypes.Digital,Inttegro.ProductType.Physical"physical"product.TypePhysicalProductType.PHYSICAL\Inttegro\Product\Type::Physicalinttegro.product.Type.PHYSICALInttegro::Product::Type::PHYSICALInttegro.ProductTypes.Physical,Inttegro.ProductType.Service"service"product.TypeServiceProductType.SERVICE\Inttegro\Product\Type::Serviceinttegro.product.Type.SERVICEInttegro::Product::Type::SERVICEInttegro.ProductTypes.Service, orInttegro.ProductType.Voucher"voucher"product.TypeVoucherProductType.VOUCHER\Inttegro\Product\Type::Voucherinttegro.product.Type.VOUCHERInttegro::Product::Type::VOUCHERInttegro.ProductTypes.Voucher. - #
UpdatedAtupdated_atUpdatedAtupdatedAtupdatedAtupdated_atupdated_atupdatedAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the product was last updated. - #
VariantSetIdvariant_set_idVariantSetIDvariantSetIdvariantSetIdvariant_set_idvariant_set_idvariantSetIdstring?stringstringString?stringstr | NoneT.nilable(String)stringVariant set configured for this Buy link.
#
QuantityquantityQuantityquantityquantityquantityquantityquantityPurchaseIntentQuantityobjectQuantityPurchaseIntentQuantityPurchaseIntent\QuantityPurchaseIntentQuantityPurchaseIntent::QuantityPurchaseIntentQuantityrequiredQuantity bounds enforced by the hosted checkout. WhenPurchaseIntent.Quantity.Maxpurchase_intent.quantity.maxPurchaseIntent.Quantity.MaxpurchaseIntent.quantity.maxpurchaseIntent.quantity.maxpurchase_intent.quantity.maxpurchase_intent.quantity.maxpurchaseIntent.quantity.maxis omitted, the offer has no upper quantity limit.Click or tap to expand- #
StatusstatusStatusstatusstatusstatusstatusstatusPurchaseIntentStatusenumStatusboolean isActive() { … }PurchaseIntent\StatusLiteral['active', 'expired', 'inactive', 'used']PurchaseIntent::StatusPurchaseIntentStatusrequiredCurrent effective state of the Buy link:
Inttegro.PurchaseIntentStatus.Active"active"purchaseintent.StatusActivePurchaseIntentStatus.ACTIVE\Inttegro\PurchaseIntent\Status::Activeinttegro.purchase_intent.Status.ACTIVEInttegro::PurchaseIntent::Status::ACTIVEInttegro.PurchaseIntentStatuses.Active,Inttegro.PurchaseIntentStatus.Expired"expired"purchaseintent.StatusExpiredPurchaseIntentStatus.EXPIRED\Inttegro\PurchaseIntent\Status::Expiredinttegro.purchase_intent.Status.EXPIREDInttegro::PurchaseIntent::Status::EXPIREDInttegro.PurchaseIntentStatuses.Expired,Inttegro.PurchaseIntentStatus.Inactive"inactive"purchaseintent.StatusInactivePurchaseIntentStatus.INACTIVE\Inttegro\PurchaseIntent\Status::Inactiveinttegro.purchase_intent.Status.INACTIVEInttegro::PurchaseIntent::Status::INACTIVEInttegro.PurchaseIntentStatuses.Inactive, orInttegro.PurchaseIntentStatus.Used"used"purchaseintent.StatusUsedPurchaseIntentStatus.USED\Inttegro\PurchaseIntent\Status::Usedinttegro.purchase_intent.Status.USEDInttegro::PurchaseIntent::Status::USEDInttegro.PurchaseIntentStatuses.Used. - #
UpdatedAtupdated_atUpdatedAtupdatedAtupdatedAtupdated_atupdated_atupdatedAtDateTimeOffset?timestamp|null*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the merchant last changed the purchase intent.
#
UsageusageUsageusageusageusageusageusagePurchaseIntentUsageobjectUsagePurchaseIntentUsagePurchaseIntent\UsagePurchaseIntentUsageT.any(PurchaseIntent::MultiUseUsage, PurchaseIntent::SingleUseUsage)PurchaseIntentUsagerequiredHow often the Buy link may be used.Click or tap to expandView 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.- #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDaterequiredWhen order creation consumed the Buy link.
- #
SingleUsesingle_useSingleUsesingleUsesingleUsesingle_usesingle_usesingleUsebool?boolean*boolBoolean?boolbool | NoneT::BooleanbooleanWhentruetruetruetruetrueTruetruetrue, creating the first order consumes the Buy link.
#
VariantSetvariant_setVariantSetvariantSetvariantSetvariant_setvariant_setvariantSetPurchaseIntentVariantSet?object|null*VariantSetPurchaseIntentVariantSet?PurchaseIntent\VariantSetPurchaseIntentVariantSet | NoneT.nilable(PurchaseIntent::VariantSet)PurchaseIntentVariantSetActive variant choices available to the customer. This can be omitted even whenPurchaseIntent.AllowVariantspurchase_intent.allow_variantsPurchaseIntent.AllowVariantspurchaseIntent.allowVariantspurchaseIntent.allowVariantspurchase_intent.allow_variantspurchase_intent.allow_variantspurchaseIntent.allowVariantsistruetruetruetruetrueTruetruetrue.Click or tap to expand- #
DefaultProductIddefault_product_idDefaultProductIDdefaultProductIddefaultProductIddefault_product_iddefault_product_iddefaultProductIdstring?stringstringString?stringstr | NoneT.nilable(String)stringDefault product in the variant set. - #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstring?stringstringString?stringstr | NoneT.nilable(String)stringVariant-set description. View variant_axes attributesClick or tap to expand
Dimensions shoppers use to choose a variant.View variants attributesClick or tap to expand
Products currently available as choices in the variant set.- #
PricepricePricepricepricepricepricepricePurchaseIntentPrice?object*PricePurchaseIntentPricearray<string, mixed>PurchaseIntentPrice | NoneT.nilable(PurchaseIntent::Price)PurchaseIntentPriceView price detailsClick or tap to expand
Resolved price for this variant, using the same shape as the top-levelPurchaseIntent.Pricepurchase_intent.pricePurchaseIntent.PricepurchaseIntent.pricepurchaseIntent.pricepurchase_intent.pricepurchase_intent.pricepurchaseIntent.priceproperty. - #
ProductproductProductproductproductproductproductproductPurchaseIntentProduct?object*ProductPurchaseIntentProductarray<string, mixed>PurchaseIntentProduct | NoneT.nilable(PurchaseIntent::Product)PurchaseIntentProductView product detailsClick or tap to expand
Hydrated catalog product for this variant, using the same shape as the top-levelPurchaseIntent.Productpurchase_intent.productPurchaseIntent.ProductpurchaseIntent.productpurchaseIntent.productpurchase_intent.productpurchase_intent.productpurchaseIntent.productproperty. - #
ProductIdproduct_idProductIDproductIdproductIdproduct_idproduct_idproductIdstringstringstringStringstringstrStringstringrequiredProduct represented by this variant. - #
VariantValuesvariant_valuesVariantValuesvariantValuesvariantValuesvariant_valuesvariant_valuesvariantValuesDictionary<string, string>objectmap[string]stringMap<String, String>array<string, mixed>dict[str, str]T::Hash[String, String]VariantValuesrequiredView variant_values detailsClick or tap to expand
Axis keys and the values selected by this variant.
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
- Send exactly one catalog selector:
ProductproductProductproductproductproductproductproduct,ProductIdproduct_idProductIDproductIdproduct_idproduct_idproduct_idproductId,BundlebundleBundlebundlebundlebundlebundlebundle, orBundleIdbundle_idBundleIDbundleIdbundle_idbundle_idbundle_idbundleId. - Product Buy links require exactly one price selector:
PricepricePricepricepricepricepricepriceorPriceIdprice_idPriceIDpriceIdprice_idprice_idprice_idpriceId. Bundle Buy links accept at most one; omit both to follow the bundle’s current catalog price, or provide one to preserve an offer-specific price. - A referenced product and each referenced price must come from your catalog. A product price must be active, not archived, and belong to the selected product. A bundle price must be active, fixed, and use the bundle catalog currency; it does not choose or replace bundle components.
- An inline
Price.Nominal.Valueprice.nominal.valuePrice.Nominal.Valueprice.nominal.valueprice.nominal.valueprice.nominal.valueprice.nominal.valueprice.nominal.valuemust be at least11111111and uses the smallest currency unit. Its currency is normalized to lowercase. - Within
PricepricePricepricepricepricepriceprice, send exactly one ofPrice.Idprice.idPrice.IDprice.idprice.idprice.idprice.idprice.idorPrice.Nominalprice.nominalPrice.Nominalprice.nominalprice.nominalprice.nominalprice.nominalprice.nominal. Within optionalPrice.Originalprice.originalPrice.Originalprice.originalprice.originalprice.originalprice.originalprice.original, send exactly one ofPrice.Original.Idprice.original.idPrice.Original.IDprice.original.idprice.original.idprice.original.idprice.original.idprice.original.idorPrice.Original.Nominalprice.original.nominalPrice.Original.Nominalprice.original.nominalprice.original.nominalprice.original.nominalprice.original.nominalprice.original.nominal. Quantity.Minquantity.minQuantity.Minquantity.minquantity.minquantity.minquantity.minquantity.minis required and must be at least11111111.Quantity.Maxquantity.maxQuantity.Maxquantity.maxquantity.maxquantity.maxquantity.maxquantity.maxis optional. When present, it must be at least11111111and greater than or equal toQuantity.Minquantity.minQuantity.Minquantity.minquantity.minquantity.minquantity.minquantity.min; when omitted, the offer has no upper quantity limit.ExpiresAtexpires_atExpiresAtexpiresAtexpires_atexpires_atexpires_atexpiresAtmust be a future RFC3339 timestamp when provided.Presentation.BuyPage.Textpresentation.buy_page.textPresentation.BuyPage.Textpresentation.buyPage.textpresentation.buy_page.textpresentation.buy_page.textpresentation.buy_page.textpresentation.buyPage.textis optional. Each supplied label is trimmed, must contain non-whitespace text on one line, and must fit its documented length limit. Omit the completePresentationpresentationPresentationpresentationpresentationpresentationpresentationpresentationobject to use product-aware defaults.Presentation.BuyPage.Text.PrimaryActionLabelpresentation.buy_page.text.primary_action_labelPresentation.BuyPage.Text.PrimaryActionLabelpresentation.buyPage.text.primaryActionLabelpresentation.buy_page.text.primary_action_labelpresentation.buy_page.text.primary_action_labelpresentation.buy_page.text.primary_action_labelpresentation.buyPage.text.primaryActionLabelcontrols only the ready action. Validation and loading labels remain system-owned so the button continues to describe its current state accurately.- A
Product.VariantSetIdproduct.variant_set_idProduct.VariantSetIDproduct.variantSetIdproduct.variant_set_idproduct.variant_set_idproduct.variant_set_idproduct.variantSetIdis valid only with the nestedProductproductProductproductproductproductproductproductselector and is saved as offer configuration. Variant options are returned only when that set and its eligible products are available at lookup time. - Omit
UsageusageUsageusageusageusageusageusageor setUsage.MultiUseusage.multi_useUsage.MultiUseusage.multiUseusage.multi_useusage.multi_useusage.multi_useusage.multiUsetotruetruetruetruetrueTruetruetruefor a reusable link. SetUsage.SingleUseusage.single_useUsage.SingleUseusage.singleUseusage.single_useusage.single_useusage.single_useusage.singleUsetotruetruetruetruetrueTruetruetruefor a link that can create only one order. Do not send both fields.
Request attributes
CreatePurchaseIntentParamsv13.1.0Go SDK requestCreateParamsv14.0.0Java SDK requestCreatePurchaseIntentParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCreateRequestv15.0.0Ruby SDK requestPurchaseIntent::CreateRequestv13.0.0TypeScript SDK requestCreatePurchaseIntentRequestv15.0.0- #
ExpiresAtexpires_atExpiresAtexpiresAt(…)expiresAtexpires_atexpires_atexpiresAtDateTimeOffset?timestamp*TimeTimeDateTimeImmutabledatetimeT.nilable(Time)DateOptional expiry time for the Buy link. After this moment, new shoppers can no longer create orders from the intent.
#
PresentationpresentationPresentationpresentationpresentationpresentationpresentationpresentationPurchaseIntentPresentation?object*PresentationPurchaseIntentPresentationarray<string, mixed>CreatePurchaseIntentRequestPresentation | UnsetTypeT.nilable(PurchaseIntent::CreatePresentation)PurchaseIntentPresentationOptional plain-text overrides for the hosted Buy page. Omit this object to use product-aware defaults.Click or tap to expand- #
BuyPagebuy_pageBuyPagebuyPagebuyPagebuy_pagebuy_pagebuyPagePurchaseIntentBuyPagePresentation?object*BuyPagePresentationPurchaseIntentBuyPagePresentationarray<string, mixed>CreateRequestPresentationBuyPagePurchaseIntent::CreatePresentationBuyPage{ … }requiredView buy_page attributesClick or tap to expand
Hosted Buy-page presentation.- #
TexttextTexttexttexttexttexttextPurchaseIntentBuyPageText?object*BuyPageTextPurchaseIntentBuyPageTextarray<string, mixed>CreateRequestPresentationBuyPageTextPurchaseIntent::CreatePresentationBuyPageTextRecord<string, unknown>requiredView text attributesClick or tap to expand
At least one text override is required.- #
AmountFieldLabelamount_field_labelAmountFieldLabelamountFieldLabelamountFieldLabelamount_field_labelamount_field_labelamountFieldLabelstring?stringstringStringstringstr | UnsetTypeT.nilable(String)stringSingle-line label above the customer-selected amount input. Maximum 64 characters. - #
CheckoutSectionTitlecheckout_section_titleCheckoutSectionTitlecheckoutSectionTitlecheckoutSectionTitlecheckout_section_titlecheckout_section_titlecheckoutSectionTitlestring?stringstringStringstringstr | UnsetTypeT.nilable(String)stringSingle-line heading above the Buy-page form. Maximum 80 characters. - #
PrimaryActionLabelprimary_action_labelPrimaryActionLabelprimaryActionLabelprimaryActionLabelprimary_action_labelprimary_action_labelprimaryActionLabelstring?stringstringStringstringstr | UnsetTypeT.nilable(String)stringSingle-line ready-state button label. Maximum 48 characters.
#
PricepricePriceprice(…)pricepricepricepricePurchaseIntentPriceSelectorParams?object*PriceSelectorPurchaseIntentPriceSelectorarray<string, mixed>CreateRequestPriceT.nilable(PurchaseIntent::PriceSelection)PurchaseIntentPriceSelectorRequired for product Buy links when price_id is omitted and optional for bundles. Reuse a catalog price or supply an inline amount; omitting bundle pricing follows its current catalog price.Click or tap to expand- #
NominalnominalNominalnominal(…)nominalnominalnominalnominalPriceParams?object*InlineParamsPriceParamsarray<string, mixed>InlineParamsT.nilable(PurchaseIntent::PriceSelectionNominal)PriceParamsView nominal attributesClick or tap to expand
Inline amount when you are not reusing a stored price ID.- #
CurrencycurrencyCurrencycurrency(…)currencycurrencycurrencycurrencyCurrencystringCurrencyStringstringstrMoney::CurrencyCurrencyNon-empty currency code, normalized to lowercase.
View original attributesClick or tap to expand
Optional original price for strike-through pricing when you are supplying a custom nominal amount.- #
NominalnominalNominalnominalnominalnominalnominalnominalPriceParams?object*InlineParamsPriceParamsarray<string, mixed>InlineParamsT.nilable(PurchaseIntent::PriceSelectionOriginalNominal)InlineParamsView nominal attributesClick or tap to expand
Inline original amount when you are not reusing a stored price ID.
#
ProductproductProductproduct(…)productproductproductproductPurchaseIntentProductSelectorParams?object*ProductSelectorPurchaseIntentProductSelectorarray<string, mixed>CreateRequestProductT.nilable(PurchaseIntent::ProductSelection)PurchaseIntentProductSelectorProduct selector. Send this or product_id, but not both.Click or tap to expand- #
VariantSetIdvariant_set_idVariantSetIDvariantSetId(…)variantSetIdvariant_set_idvariant_set_idvariantSetIdstring?stringstringStringstringstrT.nilable(String)stringOptional variant set shown to shoppers.
- #
ProductIdproduct_idProductIDproductId(…)productIdproduct_idproduct_idproductIdstring?stringstringStringstringstrT.nilable(String)stringProduct identifier alias when you do not need nested product configuration.
#
BundlebundleBundlebundlebundlebundlebundlebundleDictionary<string, object?>object*BundleSelectorMap<String, Object>array<string, mixed>dict[str, Any]T.nilable(PurchaseIntent::BundleSelection)PurchaseIntentBundleSelectorBundle selector. Send this or bundle_id, but not both.Click or tap to expand#
QuantityquantityQuantityquantity(…)quantityquantityquantityquantityPurchaseIntentQuantity?objectQuantityPurchaseIntentQuantityarray<string, mixed>CreateRequestQuantityPurchaseIntent::CreateRequestQuantityPurchaseIntentQuantityrequiredQuantity bounds the hosted checkout enforces.Click or tap to expand#
UsageusageUsageusage(…)usageusageusageusagePurchaseIntentUsage?object*UsagePurchaseIntentUsagearray<string, mixed>CreateRequestUsageT.nilable(PurchaseIntent::CreateRequestUsage)PurchaseIntentUsageOptional usage policy. Omit it to create a reusable Buy link.Click or tap to expand- #
SingleUsesingle_useSingleUsesingleUse(…)singleUsesingle_usesingle_usesingleUsebool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanConsume the intent when the first order is created.
Request
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"
}'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"),
})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
}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")),
))<?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',
]);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"
)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);
}
}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"),
});{
"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
- Send exactly one identifier. Use
IdidIDidididididfor new integrations;PurchaseIntentIdpurchase_intent_idPurchaseIntentIDpurchaseIntentIdpurchase_intent_idpurchase_intent_idpurchase_intent_idpurchaseIntentIdremains available as a compatibility alias. - Setting
ExpiresAtexpires_atExpiresAtexpiresAtexpires_atexpires_atexpires_atexpiresAttonullnullnilnullnullNonenilnullclears the expiry time. - A non-null
ExpiresAtexpires_atExpiresAtexpiresAtexpires_atexpires_atexpires_atexpiresAtmust be an RFC3339 timestamp. A past timestamp is accepted and makes the offer immediately expired. - Setting
ReactivatereactivateReactivatereactivatereactivatereactivatereactivatereactivatetotruetruetruetruetrueTruetruetrueclears cancellation state and any existing elapsed expiry. If the same request sets a new elapsedExpiresAtexpires_atExpiresAtexpiresAtexpires_atexpires_atexpires_atexpiresAt, the intent remains expired. Presentation.BuyPage.Textpresentation.buy_page.textPresentation.BuyPage.Textpresentation.buyPage.textpresentation.buy_page.textpresentation.buy_page.textpresentation.buy_page.textpresentation.buyPage.textis a sparse update. Omit a label to preserve its current override; send the label asnullnullnilnullnullNonenilnullto 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,
QuantityquantityQuantityquantityquantityquantityquantityquantitymust includeQuantity.Minquantity.minQuantity.Minquantity.minquantity.minquantity.minquantity.minquantity.min, which must be at least11111111. Its optionalQuantity.Maxquantity.maxQuantity.Maxquantity.maxquantity.maxquantity.maxquantity.maxquantity.maxmust be greater than or equal toQuantity.Minquantity.minQuantity.Minquantity.minquantity.minquantity.minquantity.minquantity.min. - Omitting
Quantity.Maxquantity.maxQuantity.Maxquantity.maxquantity.maxquantity.maxquantity.maxquantity.maxremoves an existing upper quantity limit. Omit the entireQuantityquantityQuantityquantityquantityquantityquantityquantityobject 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
UpdatePurchaseIntentParamsv13.1.0Go SDK requestUpdateParamsv14.0.0Java SDK requestUpdatePurchaseIntentParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestUpdateRequestv15.0.0Ruby SDK requestPurchaseIntent::UpdateRequestv13.0.0TypeScript SDK requestUpdatePurchaseIntentRequestv15.0.0- #
ExpiresAtexpires_atExpiresAtexpiresAt(…)expiresAtexpires_atexpires_atexpiresAtDateTimeOffset?timestamp|nullanyObject?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullNew expiry time for the Buy link, or
nullnullnilnullnullNonenilnullto remove the current expiry. #
PresentationpresentationPresentationpresentationpresentationpresentationpresentationpresentationPurchaseIntentPresentation?object*PresentationUpdatePurchaseIntentPresentationarray<string, mixed>UpdatePurchaseIntentRequestPresentation | UnsetTypeT.nilable(PurchaseIntent::UpdatePresentation)PurchaseIntentPresentationUpdateSparse plain-text update for the hosted Buy page. Omitted labels are preserved; explicit null restores a product-aware default.Click or tap to expand- #
BuyPagebuy_pageBuyPagebuyPagebuyPagebuy_pagebuy_pagebuyPagePurchaseIntentBuyPagePresentation?objectBuyPagePresentationUpdatePurchaseIntentBuyPagePresentationarray<string, mixed>UpdateRequestPresentationBuyPagePurchaseIntent::UpdatePresentationBuyPage{ … }requiredView buy_page attributesClick or tap to expand
Hosted Buy-page presentation update.- #
TexttextTexttexttexttexttexttextPurchaseIntentBuyPageText?objectBuyPageTextUpdatePurchaseIntentBuyPageTextarray<string, mixed>UpdateRequestPresentationBuyPageTextPurchaseIntent::UpdatePresentationBuyPageTextRecord<string, unknown>requiredView text attributesClick or tap to expand
At least one text field is required.- #
AmountFieldLabelamount_field_labelAmountFieldLabelamountFieldLabelamountFieldLabelamount_field_labelamount_field_labelamountFieldLabelstring?string|null*TextValueUpdateString?stringstr | None | UnsetTypeT.nilable(String)string | nullNew amount-field label, up to 64 characters, or null to restore the default. - #
CheckoutSectionTitlecheckout_section_titleCheckoutSectionTitlecheckoutSectionTitlecheckoutSectionTitlecheckout_section_titlecheckout_section_titlecheckoutSectionTitlestring?string|null*TextValueUpdateString?stringstr | None | UnsetTypeT.nilable(String)string | nullNew checkout-section title, up to 80 characters, or null to restore the default. - #
PrimaryActionLabelprimary_action_labelPrimaryActionLabelprimaryActionLabelprimaryActionLabelprimary_action_labelprimary_action_labelprimaryActionLabelstring?string|null*TextValueUpdateString?stringstr | None | UnsetTypeT.nilable(String)string | nullNew ready-state action label, up to 48 characters, or null to restore the default.
#
QuantityquantityQuantityquantity(…)quantityquantityquantityquantityPurchaseIntentQuantity?object*QuantityPurchaseIntentQuantityarray<string, mixed>UpdateRequestQuantityT.nilable(PurchaseIntent::UpdateRequestQuantity)PurchaseIntentQuantityReplacement quantity bounds. Omit this object to leave the current bounds unchanged.Click or tap to expand- #
PurchaseIntentIdpurchase_intent_idPurchaseIntentIDpurchaseIntentIdpurchaseIntentIdpurchase_intent_idpurchase_intent_idpurchaseIntentIdstring?stringstringStringstringstrT.nilable(String)string - #
ReactivatereactivateReactivatereactivate(…)reactivatereactivatereactivatereactivatebool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanClear state that currently prevents new purchases.
This example replaces the section title, restores the product-aware primary action with an explicit nullnullnilnullnullNonenilnull, and leaves the omitted amount-field label unchanged.
Request
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
}
}
}
}'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,
},
},
},
})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
}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,
},
},
},
))<?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,
],
],
],
]);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,
},
},
}
)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);
}
}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,
},
},
},
});{
"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
Statuspurchase_intent.statusStatusstatusstatusstatusstatusstatus set to Inttegro.PurchaseIntentStatus.Inactive"inactive"purchaseintent.StatusInactivePurchaseIntentStatus.INACTIVE\Inttegro\PurchaseIntent\Status::Inactiveinttegro.purchase_intent.Status.INACTIVEInttegro::PurchaseIntent::Status::INACTIVEInttegro.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. UseIdidIDididididid for new integrations; PurchaseIntentIdpurchase_intent_idPurchaseIntentIDpurchaseIntentIdpurchase_intent_idpurchase_intent_idpurchase_intent_idpurchaseIntentId remains available as a compatibility alias.Request attributes
CancelPurchaseIntentParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPurchaseIntent::CancelRequestv13.0.0TypeScript SDK requestCancelPurchaseIntentRequestv15.0.0- #
PurchaseIntentIdpurchase_intent_idPurchaseIntentIDpurchaseIntentIdpurchaseIntentIdpurchase_intent_idpurchase_intent_idpurchaseIntentIdstringstringstringStringstringstrT.nilable(String)string
Request
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"
}'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",
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.purchase_intents.cancel("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->cancel("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.cancel(id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.CancelAsync("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");{
"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.
Required attributes
LookupPurchaseIntentParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPurchaseIntent::LookupRequestv13.0.0TypeScript SDK requestLookupPurchaseIntentRequestv15.0.0Request
curl https://api.inttegro.com/purchase_intents/lookup \
-H "Content-Type: application/json" \
-d '{
"id": "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha"
}'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",
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.purchase_intents.lookup("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->lookup("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.lookup(id: "sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha")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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PurchaseIntents.LookupAsync("sale_B7tQ2nLm5yR8cV1pKs4Dx9Ha");{
"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.Sizepage.sizeSizesizesizesizesizesize in the response is the number of intents actually returned, which can be smaller than the requested PageSizepage_sizePageSizepageSizepageSizepage_sizepage_sizepageSize. The response does not include a total count or next-page token.Required attributes
PageParamsv14.0.0Java SDK requestPagePurchaseIntentsParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestPurchaseIntent::PageRequestv13.0.0TypeScript SDK requestPagePurchaseIntentsRequestv15.0.0- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberlongintegerintIntegerintintIntegernumberrequired1-based page number to fetch. Must be between 1 and 10 inclusive.
Request
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
}'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,
})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
}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,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->purchaseIntents->page([
'page_number' => 1,
'page_size' => 20,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.purchase_intents.page(
page_number: 1,
page_size: 20
)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);
}
}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,
});{
"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
}
}
}
]
}
}Related resources
- Create a product - Build the catalog item a Buy link points at.
- Create a price - Store the catalog price a Buy link should reuse.
- Accept payment with Inttegro Checkout - Put the hosted checkout experience in front of customers.
- Create an order - Compare direct order creation with Buy-link-driven order creation.