curl --request POST \
--url https://api.royalti.io/product/download/csv \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"<string>"
]
}
'"<string>"/product/download/csv
curl --request POST \
--url https://api.royalti.io/product/download/csv \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"<string>"
]
}
'"<string>"/product/download/csv endpoint allows downloading a CSV file containing product data.
Method:POST
Request Body:
| Parameter | Type | Description |
|---|---|---|
| productIds | string[] | Array of product IDs to include in the CSV. If not provided, all products will be included. |
const response = await fetch('https://api.royalti.io/product/download/csv', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"productIds": [
{}
]
})
});
const data = await response.json();
console.log(data);