Skip to content

Manage your product catalog

Create products and prices, control their visibility with publish and archive, and attach them to orders.

Products and prices are the building blocks of every order. A product describes what you’re selling—name, category, tax code, and custom metadata. A price attaches a monetary amount and currency to a product. This guide walks through creating and maintaining your catalog, controlling product visibility through the publish/unpublish/archive lifecycle, and attaching catalog items to orders at checkout.

Prerequisites

  • Basic understanding of orders and how line items work

Create a product

A product is a catalog entry. It doesn’t have a price on its own—you attach one or more prices separately. This separation lets you update pricing without touching the product record and support multiple currencies or billing intervals on a single item.

Create product

POST/products/create
cURLbash
curl https://api.inttegro.com/products/create \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Premium Tailoring",
    "about": "Bespoke suit tailoring with two fittings",
    "category": "services",
    "type": "service",
    "tax_code": "txcd_20030000"
  }'
TypeScripttypescript
import { InttegroClient, ProductTypes } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.products.create({
  name: "Premium Tailoring",
  about: "Bespoke suit tailoring with two fittings",
  category: "services",
  type: ProductTypes.Service,
  taxCode: "txcd_20030000",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := product.CreateParams{
    Name: "Premium Tailoring",
    About: "Bespoke suit tailoring with two fittings",
    Category: "services",
    Type: product.TypeService,
    TaxCode: "txcd_20030000",
  }
  result, err := client.Products.Create(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.products.create(inttegro.product.CreateRequest(
  name="Premium Tailoring",
  about="Bespoke suit tailoring with two fittings",
  category="services",
  type=inttegro.product.Type.SERVICE,
  tax_code="txcd_20030000",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->products->create([
  'name' => 'Premium Tailoring',
  'about' => 'Bespoke suit tailoring with two fittings',
  'category' => 'services',
  'type' => \Inttegro\ProductType::Service,
  'tax_code' => 'txcd_20030000',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.products.create(
  name: "Premium Tailoring",
  about: "Bespoke suit tailoring with two fittings",
  category: "services",
  type: Inttegro::ProductType::SERVICE,
  tax_code: "txcd_20030000"
)
Javajava
import com.inttegro.Client;
import com.inttegro.products.CreateProductParams;
import com.inttegro.products.ProductType;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = CreateProductParams.builder()
      .name("Premium Tailoring")
      .about("Bespoke suit tailoring with two fittings")
      .category("services")
      .type(ProductType.SERVICE)
      .taxCode("txcd_20030000")
      .build();
    var result = client.products().create(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Products.CreateAsync(new CreateProductRequest {
  Name = "Premium Tailoring",
  About = "Bespoke suit tailoring with two fittings",
  Category = "services",
  Type = Inttegro.ProductType.Service,
  TaxCode = "txcd_20030000",
});

The response includes the product ID (pr_…). Store this—you’ll need it when creating prices and referencing the product in orders.

Attach a price

A price binds a monetary amount and currency to a product. You can attach multiple prices to the same product—useful for multi-currency stores or tiered billing (monthly vs annual).

Create price

POST/prices/create
cURLbash
curl https://api.inttegro.com/prices/create \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
    "type": "fixed_amount",
    "fixed_amount": {
      "currency": "ghs",
      "value": 85000
    },
    "label": "Standard"
  }'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.prices.create({
  productId: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
  type: "fixed_amount",
  fixedAmount: {
    currency: "ghs",
    value: 85000,
  },
  label: "Standard",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := price.CreateParams{
    ProductID: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
    Type: price.TypeFixedAmount,
    FixedAmount: &money.AmountParams{
      Currency: money.GHS,
      Value: 85000,
    },
    Label: "Standard",
  }
  result, err := client.Prices.Create(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.prices.create(inttegro.price.Params(
  product_id="prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
  type="fixed_amount",
  fixed_amount={
    "currency": "ghs",
    "value": 85000,
  },
  label="Standard",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->prices->create([
  'product_id' => 'prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i',
  'type' => 'fixed_amount',
  'fixed_amount' => [
    'currency' => 'ghs',
    'value' => 85000,
  ],
  'label' => 'Standard',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.create(
  product_id: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
  type: "fixed_amount",
  fixed_amount: {
    currency: "ghs",
    value: 85000,
  },
  label: "Standard"
)
Javajava
import com.inttegro.Client;
import com.inttegro.prices.CatalogPriceParams;
import com.inttegro.money.AmountParams;
import com.inttegro.money.Currency;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var type = new Type();
    var params = CatalogPriceParams.builder()
      .productId("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
      .type(type)
      .fixedAmount(AmountParams.of(Currency.GHS, 85000))
      .label("Standard")
      .build();
    var result = client.prices().create(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.CreateAsync(new CatalogPriceParams {
  ProductId = "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
  Type = "fixed_amount",
  FixedAmount = new AmountParams {
    Currency = Inttegro.Money.Currency.GHS,
    Value = 85000,
  },
  Label = "Standard",
});

Amounts are always in the smallest currency unit—pesewas for GHS, cents for USD, kobo for NGN. 85000 pesewas = GHS 850.00.

Publish and unpublish products

Products start in an unpublished state. Publish them when they’re ready to appear in your storefront or be selected during checkout. Unpublish to hide them temporarily without losing the product record or its associated prices.

Publish product

POST/products/publish
cURLbash
curl https://api.inttegro.com/products/publish \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i"}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.products.publish({
  productId: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
})
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.Products.Publish(ctx, "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
  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.products.publish("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->products->publish("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.products.publish(product_id: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
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.products().publish("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Products.PublishAsync("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");

To hide a product without archiving it, call Unpublish a product with the same request shape. The product reverts to unpublished status and can be republished at any time.

Archive a product

Archiving is permanent removal from active catalog management. Archive products you’ll never sell again—discontinued items, seasonal products that have run their course, or test entries you want to clean up. Archived products cannot be ordered and won’t appear in catalog listings.

Archive product

POST/products/archive
cURLbash
curl https://api.inttegro.com/products/archive \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i"}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.products.archive({
  productId: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
})
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.Products.Archive(ctx, "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
  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.products.archive("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->products->archive("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.products.archive(product_id: "prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i")
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.products().archive("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Products.ArchiveAsync("prod_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i");

Archiving a product does not affect past orders that reference it. Historical line items remain intact for reconciliation and customer service purposes.

  • Products API — Full reference for create, lookup, update, publish, unpublish, and archive
  • Prices API — Complete parameter reference for prices
  • Accept a payment — How to include catalog products in order line items

Type to search…

↑↓ navigate↵ selectEsc close