Skip to content

Prices

Create reusable monetary amounts, attach them to products, and control whether new checkout flows may use them.

Use this reference for exact request attributes, response envelopes, object shape, and examples. For catalog modeling, product-price relationships, and selling patterns, start with Manage your product catalog.

Price and product IDs from another application are treated as unavailable. Use the response error code rather than the HTTP status alone when choosing a recovery path.

The price object

A price object captures a specific monetary amount in a single currency, with optional metadata for display and organization. Prices can be associated with a product or exist independently. Each price also exposes whether it is currently active for new flows. The amount is set at creation and cannot be modified afterward—this immutability ensures that historical orders always reference the exact price that was charged.

Properties

TypeScript SDK responseCatalogPricev15.0.0

Create a price POST /prices/create

Create an active fixed price, or a customer-selected price for an eligible product. The price definition and product relationship are immutable after creation—if either needs to change, create a replacement price and retire the old one.

Send "fixed_amount" with fixedAmount, or "customer_selected_amount" with customerSelectedAmount. Do not send both definitions. Customer-selected prices require productId and are available only where enabled. If you provide a product ID, choose an existing product from your catalog. This endpoint currently permits attachment to an archived product and still creates the price as active; price eligibility does not consult the product’s archive state. Monetary values use the currency’s smallest unit, and currency codes are normalized to lowercase.

Request attributes

TypeScript SDK requestCatalogPriceParamsv15.0.0

Request

POST/prices/create
cURLbash
curl https://api.inttegro.com/prices/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "fixed_amount",
"fixed_amount": {
  "currency": "usd",
  "value": 2999
},
"label": "Monthly",
"about": "Standard monthly subscription price",
"product_id": "prod_abc123xyz789"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.prices.create({
  type: "fixed_amount",
  fixedAmount: {
    currency: "usd",
    value: 2999,
  },
  label: "Monthly",
  about: "Standard monthly subscription price",
  productId: "prod_abc123xyz789",
})
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{
    Type: price.TypeFixedAmount,
    FixedAmount: &money.AmountParams{
      Currency: money.USD,
      Value: 2999,
    },
    Label: "Monthly",
    About: "Standard monthly subscription price",
    ProductID: "prod_abc123xyz789",
  }
  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(
  type="fixed_amount",
  fixed_amount={
    "currency": "usd",
    "value": 2999,
  },
  label="Monthly",
  about="Standard monthly subscription price",
  product_id="prod_abc123xyz789",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->prices->create([
  'type' => 'fixed_amount',
  'fixed_amount' => [
    'currency' => 'usd',
    'value' => 2999,
  ],
  'label' => 'Monthly',
  'about' => 'Standard monthly subscription price',
  'product_id' => 'prod_abc123xyz789',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.create(
  type: "fixed_amount",
  fixed_amount: {
    currency: "usd",
    value: 2999,
  },
  label: "Monthly",
  about: "Standard monthly subscription price",
  product_id: "prod_abc123xyz789"
)
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()
      .type(type)
      .fixedAmount(AmountParams.of(Currency.USD, 2999))
      .label("Monthly")
      .about("Standard monthly subscription price")
      .productId("prod_abc123xyz789")
      .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 {
  Type = "fixed_amount",
  FixedAmount = new AmountParams {
    Currency = Inttegro.Money.Currency.USD,
    Value = 2999,
  },
  Label = "Monthly",
  About = "Standard monthly subscription price",
  ProductId = "prod_abc123xyz789",
});
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Standard monthly subscription price",
    "active": true,
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly",
    "product": {
      "id": "prod_abc123xyz789",
      "about": "Starter plan for solo businesses",
      "active": true,
      "attributes": [
        {
          "name": "tier",
          "value": "starter"
        }
      ],
      "category": "software",
      "created_at": "2026-02-13T01:45:00Z",
      "custom_data": {
        "plan": "starter"
      },
      "description": "Standard monthly subscription",
      "name": "Starter plan",
      "published_at": "2026-02-13T02:05:00Z",
      "reference": "plan-starter-monthly",
      "tax_code": "txcd_software",
      "type": "digital"
    }
  }
}

Archive a price POST /prices/archive

Permanently retire a price. Archiving sets active to false, records archivedAt, and advances updatedAt. The amount, optional product relationship, and historical order snapshots remain unchanged.

Archived prices remain available through lookup and pagination but cannot be activated or selected by new catalog-priced order and purchase-intent flows. An already-archived price returns a lifecycle conflict; create a new price if you later need the same amount again.

Request attributes

TypeScript SDK requestPriceActionRequestv15.0.0
  • #priceIdstringrequired

    Identifier of the price to archive.

Request

POST/prices/archive
cURLbash
curl https://api.inttegro.com/prices/archive \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: archive-price-pr_k8m2x9v4n7p1" \
-d '{"price_id":"pr_k8m2x9v4n7p1"}'
SDK coveragetext
Official SDK coverage for POST /prices/archive is pending.

Add this operation to the checked-in SDKs before publishing a runnable sample here.
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Standard monthly subscription price",
    "active": false,
    "archived_at": "2026-03-01T09:00:00Z",
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly",
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "product": {
      "id": "prod_abc123xyz789",
      "active": true,
      "created_at": "2026-02-13T01:45:00Z",
      "name": "Starter plan",
      "type": "digital"
    },
    "updated_at": "2026-03-01T09:00:00Z"
  }
}

Lookup a price POST /prices/lookup

Retrieve an existing price by its ID. Active, inactive, and archived prices can all be read. The response includes the immutable fixedAmount amount, any associated product snapshot, and lifecycle timestamps; a standalone price omits product.

Request attributes

TypeScript SDK requestLookupPriceRequestv15.0.0
  • #priceIdstringrequired

    The ID of the price to retrieve.

Request

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

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

const result = await inttegro.prices.lookup({
  priceId: "pr_k8m2x9v4n7p1",
})
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.Prices.Lookup(ctx, "pr_k8m2x9v4n7p1")
  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.prices.lookup("pr_k8m2x9v4n7p1")
PHPphp
<?php

use Inttegro\Client;

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

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.lookup(price_id: "pr_k8m2x9v4n7p1")
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.prices().lookup("pr_k8m2x9v4n7p1");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.LookupAsync("pr_k8m2x9v4n7p1");
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Standard monthly subscription price",
    "active": true,
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly",
    "product": {
      "id": "prod_abc123xyz789",
      "about": "Starter plan for solo businesses",
      "active": true,
      "attributes": [
        {
          "name": "tier",
          "value": "starter"
        }
      ],
      "category": "software",
      "created_at": "2026-02-13T01:45:00Z",
      "custom_data": {
        "plan": "starter"
      },
      "description": "Standard monthly subscription",
      "name": "Starter plan",
      "published_at": "2026-02-13T02:05:00Z",
      "reference": "plan-starter-monthly",
      "tax_code": "txcd_software",
      "type": "digital"
    }
  }
}

Page through prices POST /prices/page

Retrieve a paginated list of your prices. Results are sorted from newest to oldest, so page 1 contains the most recently created prices.If you provide productId, the page is scoped to prices belonging to that product only. This includes active, inactive, and archived prices, which lets you inspect the full pricing history for a product or for your broader catalog.

Request attributes

TypeScript SDK requestPagePricesRequestv15.0.0

Request

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

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

const result = await inttegro.prices.page({
  pageNumber: 1,
  pageSize: 2,
  productId: "prod_abc123xyz789",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := price.PageParams{
    PageNumber: 1,
    PageSize: 2,
    ProductID: "prod_abc123xyz789",
  }
  result, err := client.Prices.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.prices.page(inttegro.price.PageRequest(
  page_number=1,
  page_size=2,
  product_id="prod_abc123xyz789",
))
PHPphp
<?php

use Inttegro\Client;

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

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.page(
  page_number: 1,
  page_size: 2,
  product_id: "prod_abc123xyz789"
)
Javajava
import com.inttegro.Client;
import com.inttegro.prices.PagePricesParams;

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

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.PageAsync(new PricePageRequest {
  PageNumber = 1,
  PageSize = 2,
  ProductId = "prod_abc123xyz789",
});
Responsejson
{
  "page": {
    "number": 1,
    "size": 2,
    "prices": [
      {
        "id": "pr_k8m2x9v4n7p1",
        "about": "Standard monthly subscription price",
        "active": true,
        "fixed_amount": {
          "currency": "usd",
          "value": 2999
        },
        "created_at": "2026-02-13T02:00:00Z",
        "label": "Monthly",
        "product": {
          "id": "prod_abc123xyz789",
          "about": "Starter plan for solo businesses",
          "active": true,
          "attributes": [
            {
              "name": "tier",
              "value": "starter"
            }
          ],
          "category": "software",
          "created_at": "2026-02-13T01:45:00Z",
          "custom_data": {
            "plan": "starter"
          },
          "description": "Standard monthly subscription",
          "name": "Starter plan",
          "published_at": "2026-02-13T02:05:00Z",
          "reference": "plan-starter-monthly",
          "tax_code": "txcd_software",
          "type": "digital"
        },
        "updated_at": "2026-02-13T04:10:00Z"
      },
      {
        "id": "pr_b1n9q2e5m6r7",
        "about": "Legacy promotional price",
        "active": false,
        "fixed_amount": {
          "currency": "usd",
          "value": 2499
        },
        "archived_at": "2026-03-01T09:00:00Z",
        "created_at": "2026-01-10T08:00:00Z",
        "label": "Promo",
        "product": {
          "id": "prod_abc123xyz789",
          "about": "Starter plan for solo businesses",
          "active": true,
          "attributes": [
            {
              "name": "tier",
              "value": "starter"
            }
          ],
          "category": "software",
          "created_at": "2026-02-13T01:45:00Z",
          "custom_data": {
            "plan": "starter"
          },
          "description": "Standard monthly subscription",
          "name": "Starter plan",
          "published_at": "2026-02-13T02:05:00Z",
          "reference": "plan-starter-monthly",
          "tax_code": "txcd_software",
          "type": "digital"
        },
        "updated_at": "2026-03-01T09:00:00Z"
      }
    ]
  }
}

Update a price POST /prices/update

Update an existing price’s descriptive fields. Only about and label are mutable. The product association and price.fixedAmount amount remain fixed after creation, so create a new price when either needs to change.Do not send amount or product_id: they are not supported updates. Updating an archived price’s descriptive fields is currently allowed and does not reactivate it. Sending no changed descriptive fields returns the current price without advancing price.updatedAt.

Request attributes

TypeScript SDK requestUpdatePriceRequestv15.0.0

Request

POST/prices/update
cURLbash
curl https://api.inttegro.com/prices/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"price_id": "pr_k8m2x9v4n7p1",
"label": "Monthly (discounted)",
"about": "Promotional monthly rate for early adopters"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.prices.update({
  priceId: "pr_k8m2x9v4n7p1",
  label: "Monthly (discounted)",
  about: "Promotional monthly rate for early adopters",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := price.UpdateParams{
    PriceID: "pr_k8m2x9v4n7p1",
    Label: "Monthly (discounted)",
    About: "Promotional monthly rate for early adopters",
  }
  result, err := client.Prices.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.prices.update(inttegro.price.UpdateRequest(
  price_id="pr_k8m2x9v4n7p1",
  label="Monthly (discounted)",
  about="Promotional monthly rate for early adopters",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->prices->update([
  'price_id' => 'pr_k8m2x9v4n7p1',
  'label' => 'Monthly (discounted)',
  'about' => 'Promotional monthly rate for early adopters',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.update(
  price_id: "pr_k8m2x9v4n7p1",
  label: "Monthly (discounted)",
  about: "Promotional monthly rate for early adopters"
)
Javajava
import com.inttegro.Client;
import com.inttegro.prices.UpdatePriceParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = UpdatePriceParams.builder()
      .priceId("pr_k8m2x9v4n7p1")
      .label("Monthly (discounted)")
      .about("Promotional monthly rate for early adopters")
      .build();
    var result = client.prices().update(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.UpdateAsync(new Inttegro.UpdatePriceRequest {
  PriceId = "pr_k8m2x9v4n7p1",
  Label = "Monthly (discounted)",
  About = "Promotional monthly rate for early adopters",
});
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Promotional monthly rate for early adopters",
    "active": true,
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly (discounted)",
    "product": {
      "id": "prod_abc123xyz789",
      "about": "Starter plan for solo businesses",
      "active": true,
      "attributes": [
        {
          "name": "tier",
          "value": "starter"
        }
      ],
      "category": "software",
      "created_at": "2026-02-13T01:45:00Z",
      "custom_data": {
        "plan": "starter"
      },
      "description": "Standard monthly subscription",
      "name": "Starter plan",
      "published_at": "2026-02-13T02:05:00Z",
      "reference": "plan-starter-monthly",
      "tax_code": "txcd_software",
      "type": "digital"
    },
    "updated_at": "2026-02-13T03:00:00Z"
  }
}

Activate a price POST /prices/activate

Reactivate a previously deactivated price so it can be selected by new catalog-priced order and purchase-intent flows. Activation does not change the amount or product association; it sets active to true and advances updatedAt.

Archived prices cannot be activated, and an already-active price returns a lifecycle conflict.

Request attributes

TypeScript SDK requestPriceActionRequestv15.0.0
  • #priceIdstringrequired

    Price identifier to activate.

Request

POST/prices/activate
cURLbash
curl https://api.inttegro.com/prices/activate       -H "Authorization: Bearer $INTTEGRO_API_KEY"       -H "Content-Type: application/json"       -d '{
"price_id": "pr_k8m2x9v4n7p1"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.prices.activate({
  priceId: "pr_k8m2x9v4n7p1",
})
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.Prices.Activate(ctx, "pr_k8m2x9v4n7p1")
  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.prices.activate("pr_k8m2x9v4n7p1")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->prices->activate("pr_k8m2x9v4n7p1");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.activate(price_id: "pr_k8m2x9v4n7p1")
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.prices().activate("pr_k8m2x9v4n7p1");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.ActivateAsync("pr_k8m2x9v4n7p1");
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Standard monthly subscription price",
    "active": true,
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly",
    "product": {
      "id": "prod_abc123xyz789",
      "about": "Starter plan for solo businesses",
      "active": true,
      "attributes": [
        {
          "name": "tier",
          "value": "starter"
        }
      ],
      "category": "software",
      "created_at": "2026-02-13T01:45:00Z",
      "custom_data": {
        "plan": "starter"
      },
      "description": "Standard monthly subscription",
      "name": "Starter plan",
      "published_at": "2026-02-13T02:05:00Z",
      "reference": "plan-starter-monthly",
      "tax_code": "txcd_software",
      "type": "digital"
    },
    "updated_at": "2026-02-13T04:10:00Z"
  }
}

Deactivate a price POST /prices/deactivate

Deactivate a price so it is rejected by new catalog-priced order and purchase-intent flows. This is the reversible alternative to archiving: the price remains visible through lookup and pagination and can be reactivated later.

Deactivation only affects future selections. Existing orders that already reference the price keep their recorded amount. Archived and already-inactive prices return lifecycle conflicts.

Request attributes

TypeScript SDK requestPriceActionRequestv15.0.0
  • #priceIdstringrequired

    Price identifier to deactivate.

Request

POST/prices/deactivate
cURLbash
curl https://api.inttegro.com/prices/deactivate       -H "Authorization: Bearer $INTTEGRO_API_KEY"       -H "Content-Type: application/json"       -d '{
"price_id": "pr_k8m2x9v4n7p1"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.prices.deactivate({
  priceId: "pr_k8m2x9v4n7p1",
})
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.Prices.Deactivate(ctx, "pr_k8m2x9v4n7p1")
  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.prices.deactivate("pr_k8m2x9v4n7p1")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->prices->deactivate("pr_k8m2x9v4n7p1");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.prices.deactivate(price_id: "pr_k8m2x9v4n7p1")
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.prices().deactivate("pr_k8m2x9v4n7p1");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Prices.DeactivateAsync("pr_k8m2x9v4n7p1");
Responsejson
{
  "price": {
    "id": "pr_k8m2x9v4n7p1",
    "about": "Standard monthly subscription price",
    "active": false,
    "fixed_amount": {
      "currency": "usd",
      "value": 2999
    },
    "created_at": "2026-02-13T02:00:00Z",
    "label": "Monthly",
    "product": {
      "id": "prod_abc123xyz789",
      "about": "Starter plan for solo businesses",
      "active": true,
      "attributes": [
        {
          "name": "tier",
          "value": "starter"
        }
      ],
      "category": "software",
      "created_at": "2026-02-13T01:45:00Z",
      "custom_data": {
        "plan": "starter"
      },
      "description": "Standard monthly subscription",
      "name": "Starter plan",
      "published_at": "2026-02-13T02:05:00Z",
      "reference": "plan-starter-monthly",
      "tax_code": "txcd_software",
      "type": "digital"
    },
    "updated_at": "2026-02-13T04:20:00Z"
  }
}

Type to search…

↑↓ navigate↵ selectEsc close