Products
Create Product
API Documentation & SDKs
- Introduction
- Code Integration Tutorial
- SDKs - Node, Python, PHP, Go, Ruby, Java & Kotlin
- Payments Integration Guide
- Subscription Integration Guide
- Mobile Integration Guide
- On Demand Subscriptions
- Webhooks Details
- Managing Products Via API
- Metadata Guide
- Configuring Allowed Payment Methods
- MCP Server
- Technical - FAQs
Subscriptions
Discounts
Licenses
Customers
Products
Payouts
Miscellaneous
Products
Create Product
Create a new product.
POST
/
products
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.create({
price: { currency: 'AED', discount: 0, price: 0, purchasing_power_parity: true, type: 'one_time_price' },
tax_category: 'digital_products',
});
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
Product Created Succesfully
The response is of type object
.
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.create({
price: { currency: 'AED', discount: 0, price: 0, purchasing_power_parity: true, type: 'one_time_price' },
tax_category: 'digital_products',
});
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"
}