GetInvoiceById
This endpoint is there to get category by id
You'll need to replace the {{invoiceId}} with the actual invoice to fetch the API
GET
https://sandbox.pgecom.com/api/v1/invoice/{{invoiceId}}
{
"href": "/shoes",
"shopId": "0a40d129-0728-4b10-b32e-117abd6938c3",
"updatedAt": "2023-11-22T22:55:37Z",
"slug": "shoes",
"createdAt": "2023-11-22T22:55:37Z",
"menuItemId": "db123901-5646-4061-88d8-bfcb83df21aa",
"productIds": [],
"id": "acdc3018-1fb9-4127-9097-f1b8270d87d5",
"title": "Shoes",
"subCategories": [
{
"href": "/sandal",
"shopId": "0a40d129-0728-4b10-b32e-117abd6938c3",
"categoryId": "acdc3018-1fb9-4127-9097-f1b8270d87d5",
"updatedAt": "2023-11-27T10:31:22Z",
"createdAt": "2023-11-27T10:31:22Z",
"id": "9f4bcae6-a199-4adc-80fa-d02234550c86",
"title": "Sandal"
}
]
}
const axios = require('axios');
let config = {
method: 'get',
url: 'https://sandbox.pgecom.com/api/v1/storefront/category/acdc3018-1fb9-4127-9097-f1b8270d87d5',
headers: { }
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated
Was this helpful?