curl --request GET \
--url https://api.royalti.io/product/{id}/deliveries/{deliveryId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Delivery details retrieved",
"data": {
"id": "<string>",
"provider": "<string>",
"providerName": "<string>",
"status": "pending",
"method": "SFTP",
"progress": 50,
"attemptCount": 123,
"maxAttempts": 123,
"lastAttemptTime": "2023-11-07T05:31:56Z",
"nextAttemptTime": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"remoteStatus": {},
"deliveryLog": [
{}
],
"message": {
"id": "<string>",
"type": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}/product//deliveries/
curl --request GET \
--url https://api.royalti.io/product/{id}/deliveries/{deliveryId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Delivery details retrieved",
"data": {
"id": "<string>",
"provider": "<string>",
"providerName": "<string>",
"status": "pending",
"method": "SFTP",
"progress": 50,
"attemptCount": 123,
"maxAttempts": 123,
"lastAttemptTime": "2023-11-07T05:31:56Z",
"nextAttemptTime": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"remoteStatus": {},
"deliveryLog": [
{}
],
"message": {
"id": "<string>",
"type": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}GET
const response = await fetch('https://api.royalti.io/product/example-id/deliveries/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"