import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.products.updateFiles('id', { file_name: 'file_name' });
console.log(response.file_id);
{
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
Update the files associated with a product.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.products.updateFiles('id', { file_name: 'file_name' });
console.log(response.file_id);
{
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Product Id
Aws s3 presigned URL. Upload image to this URL within 60s
The response is of type object
.
Was this page helpful?