GET
/
products
/
{id}
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const product = await client.products.retrieve('id');

  console.log(product.business_id);
}

main();
{
  "addons": [
    "<string>"
  ],
  "business_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "image": "<string>",
  "is_recurring": true,
  "license_key_activation_message": "<string>",
  "license_key_activations_limit": 123,
  "license_key_duration": {
    "count": 123,
    "interval": "Day"
  },
  "license_key_enabled": true,
  "name": "<string>",
  "price": {
    "currency": "AED",
    "discount": 123,
    "pay_what_you_want": true,
    "price": 123,
    "purchasing_power_parity": true,
    "suggested_price": 123,
    "tax_inclusive": true,
    "type": "one_time_price"
  },
  "product_id": "<string>",
  "tax_category": "digital_products",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Product Id

Response

200 - application/json
Product Details
business_id
string
required

Unique identifier for the business to which the product belongs.

created_at
string
required

Timestamp when the product was created.

is_recurring
boolean
required

Indicates if the product is recurring (e.g., subscriptions).

license_key_enabled
boolean
required

Indicates whether the product requires a license key.

price
object
required
product_id
string
required

Unique identifier for the product.

tax_category
enum<string>
required

Represents the different categories of taxation applicable to various products and services.

Available options:
digital_products,
saas,
e_book,
edtech
updated_at
string
required

Timestamp when the product was last updated.

addons
string[] | null

Available Addons for subscription products

description
string | null

Description of the product, optional.

image
string | null

URL of the product image, optional.

license_key_activation_message
string | null

Message sent upon license key activation, if applicable.

license_key_activations_limit
integer | null

Limit on the number of activations for the license key, if enabled.

license_key_duration
object
name
string | null

Name of the product, optional.