curl --request POST \
--url https://api.royalti.io/product/download/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"<string>"
]
}
'"<string>"/product/download/metadata
curl --request POST \
--url https://api.royalti.io/product/download/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"<string>"
]
}
'"<string>"/product/download/metadata endpoint allows downloading metadata for products in various formats.
Method:POST
Request Body:
| Parameter | Type | Description |
|---|---|---|
| productIds | string[] | Array of product IDs to include in the metadata. |
| Parameter | Type | Description |
|---|---|---|
| format | string | Format of the download (csv, json, xml). Default: csv |
const response = await fetch('https://api.royalti.io/product/download/metadata', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"productIds": [
{}
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Format of the download
csv, json, xml Array of product IDs to include in the metadata
Success
The response is of type file.