Retrieve a product with specified identifier string.
Product was retrieved successfully.
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
const product = await api.products.get({id: 'foobar-001'}); console.log(product.fields.name);
{- "id": "membership",
- "name": "Premium membership",
- "unitLabel": "seat",
- "description": "string",
- "requiresShipping": false,
- "options": [
- "string"
], - "customFields": {
- "foo": "bar"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "taxCategoryId": "00000",
- "accountingCode": "4010",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}