Liệt kê tất cả các thương hiệu.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const brands = await client.brands.list();
console.log(brands.items);{
"items": [
{
"brand_id": "<string>",
"business_id": "<string>",
"enabled": true,
"statement_descriptor": "<string>",
"verification_enabled": true,
"verification_status": "Success",
"description": "<string>",
"image": "<string>",
"name": "<string>",
"reason_for_hold": "<string>",
"support_email": "<string>",
"url": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List all brands
List of brands for this business
Hiện thuộc tính con
Success, Fail, Review, Hold Incase the brand verification fails or is put on hold
Trang này có hữu ích không?
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const brands = await client.brands.list();
console.log(brands.items);{
"items": [
{
"brand_id": "<string>",
"business_id": "<string>",
"enabled": true,
"statement_descriptor": "<string>",
"verification_enabled": true,
"verification_status": "Success",
"description": "<string>",
"image": "<string>",
"name": "<string>",
"reason_for_hold": "<string>",
"support_email": "<string>",
"url": "<string>"
}
]
}