احصل على قائمة بجميع المنتجات المرتبطة بحسابك.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const productListResponse of client.products.list()) {
console.log(productListResponse.business_id);
}{
"items": [
{
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_recurring": true,
"metadata": {},
"product_id": "<string>",
"tax_category": "digital_products",
"updated_at": "2023-11-07T05:31:56Z",
"currency": "<unknown>",
"description": "<string>",
"image": "<string>",
"name": "<string>",
"price": 123,
"price_detail": "<unknown>",
"tax_inclusive": true
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page size default is 10 max is 100
x >= 0Page number default is 0
x >= 0List archived products
Filter products by pricing type:
true: Show only recurring pricing products (e.g. subscriptions)false: Show only one-time price productsnull or absent: Show both types of productsfilter by Brand id
Products List
إظهار السمات الفرعية
Unique identifier for the business to which the product belongs.
Timestamp when the product was created.
Indicates if the product is recurring (e.g., subscriptions).
Unique identifier for the product.
Tax category associated with the product.
digital_products, saas, e_book, edtech Timestamp when the product was last updated.
Currency of the price
AED, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SZL, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Description of the product, optional.
URL of the product image, optional.
Name of the product, optional.
Price of the product, optional.
The price is represented in the lowest denomination of the currency. For example:
$12.34 would be represented as 1234 (cents).¥1500 would be represented as 1500 (yen).₹1234.56 would be represented as 123456 (paise).This ensures precision and avoids floating-point rounding errors.
Details of the price
إظهار السمات الفرعية
The currency in which the payment is made.
AED, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SZL, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Discount applied to the price, represented as a percentage (0 to 100).
The payment amount, in the smallest denomination of the currency (e.g., cents for USD).
For example, to charge $1.00, pass 100.
If pay_what_you_want is set to true, this field represents
the minimum amount the customer must pay.
Indicates if purchasing power parity adjustments are applied to the price. Purchasing power parity feature is not available as of now.
one_time_price A suggested price for the user to pay. This value is only considered if
pay_what_you_want is true. Otherwise, it is ignored.
Indicates if the price is tax inclusive.
Indicates if the price is tax inclusive
هل كانت هذه الصفحة مفيدة؟
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const productListResponse of client.products.list()) {
console.log(productListResponse.business_id);
}{
"items": [
{
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_recurring": true,
"metadata": {},
"product_id": "<string>",
"tax_category": "digital_products",
"updated_at": "2023-11-07T05:31:56Z",
"currency": "<unknown>",
"description": "<string>",
"image": "<string>",
"name": "<string>",
"price": 123,
"price_detail": "<unknown>",
"tax_inclusive": true
}
]
}