Resources
We break a Resource into two concepts; a resource as a reusable asset
and a retail
resource that is meant to be sold.
If not specified, an asset
resource is created.
Asset Resource Object
Attribute | Type | Description |
|
| The resource type. |
|
|
|
|
| Name of the resource item. |
|
| Description of the resource item. |
|
|
|
|
|
|
|
| An array of tags. |
|
| 6 character ID. |
|
| Status of the resource. Default is |
Retail Resource Object
In addition to the attributes in the asset
resource, the retail
resource has the following attributes.
Attribute | Type | Description |
|
| An array with sub-products associated with the resource. |
|
| The sum of the |
|
| The amount that this resource is sold for. |
|
| The currency in the main product in the resource. |
|
| The VAT from the main product in the resource. A decimal value between 0 and 1, e.g. 0.25 = 25%. |
Resource Status
Default status for the resource is CREATED
. Change the status by updating the resource.
Status |
|
|
|
|
|
|
|
User Role
Create a new Resource*
Body Parameters | Type | Description |
|
| Name of the resource item. |
|
| Product ID to be associated with the resource. |
|
| Description of the resource item. |
|
| Status of the resource, default is |
|
|
|
|
| Customizable ID for the resource |
Update a Resource*
Path Parameter | Type | Description |
|
| The resource’s ID |
Body Parameters | Type | Description |
|
| Name of the resource item. |
|
| Description of the resource item. |
|
|
|
|
| Status of the resource. Default is |
|
|
|
|
|
|
|
| Customizable ID for the resource. |
Retrieve a Resource by ID*
Path Parameter | Type | Description |
|
| The resource’s ID. |
List All Resources*
Query Parameters | Type | Description |
|
| If |
|
| Number of resources per page. Default is 10. |
|
| Defines which page to retrieve. Default is 0. |
|
| Start date, |
|
| End date, |
|
| Field used to sort results. Default is |
|
| Status of the resource. Default is |
Search Resources by Keywords*
Search by _id
, name
, reference_id
, description
and image_url
. Returns an array
that matches the query. Filter the query by using pagination.
Query Parameters | Type | Description |
|
| Partial or full string of |
|
| If |
|
| Number of resources per page. Default is 10. |
|
| Defines which page to retrieve. Default is 0. |
|
| Start date, |
|
| End date, |
|
| Field used to sort results. Default is |
Admin Role
*Paths listed above and denoted with a star are accessible to both Users and Admins. Additional Admin Role paths are listed below.
Create new Resources in Bulk
Body Parameters | Type | Description |
|
| Name of the resource item. |
|
| Description of the resource item. |
|
|
|
|
| Status of the resource _default is |
|
| Product ID to be associated with the resource. |
|
|
|
|
| Customizable ID for the resource. |
Delete a Resource
Path Parameters | Type | Description |
|
| ID of the resource to be deleted. |
Last updated