Digital Goods and Inventory
Searches all items and returns all matching items, filtered by the passed in search parameters. If multiple tags are specified, then all items that contain at least one of the passed in tags is returned.
0
20
GET /api/rest/item HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Supplying an item object, this will create a new item with a newly assigned unique id. The Item representation returned in the response body is a representation of the Item as persisted with a unique identifier signed and with its fields properly normalized. The supplied item object submitted with the request must have a name property that is unique across all items.
[^_]\w+
POST /api/rest/item HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 162
{
"name": null,
"displayName": null,
"description": null,
"category": "FUNGIBLE",
"tags": [],
"metadataSpecId": null,
"metadata": null,
"publicVisible": null,
"metadataSpec": null
}
{
"code": "text",
"message": "text"
}
Looks up an item by the passed in identifier
GET /api/rest/item/{identifier} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Supplying an item, this will update the Item identified by the identifier in the path with contents from the passed in request body.
[^_]\w+
PUT /api/rest/item/{identifier} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 427
{
"name": null,
"displayName": null,
"description": null,
"tags": [],
"metadataSpec": {
"id": null,
"name": null,
"type": "STRING",
"properties": [
{
"name": null,
"displayName": null,
"type": "STRING",
"required": null,
"placeholder": null,
"defaultValue": null,
"properties": [
{
"name": null,
"displayName": null,
"type": "STRING",
"required": null,
"placeholder": null,
"defaultValue": null,
"properties": "[Circular Reference]"
}
]
}
]
},
"metadata": null,
"publicVisible": null
}
{
"code": "text",
"message": "text"
}
Gets the first (primary) inventory item for the specified item
GET /api/rest/inventory/advanced/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Updates an inventory item for the specified item
The quantity of the Item in inventory
PUT /api/rest/inventory/advanced/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 17
{
"quantity": null
}
{
"code": "text",
"message": "text"
}
Delete the inventory item as identified by the given item name/id
DELETE /api/rest/inventory/advanced/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Adjust the quantity of the first (primary) inventory item for the specified item. This implicitly will create the InventoryItem if it does not exist. The inventory item value
The User whose inventory to modify.ß
The delta to be applied to the inventory item quantity (positive or negative)
The priority slot for the item.
PATCH /api/rest/inventory/advanced/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 52
{
"userId": null,
"quantityDelta": null,
"priority": null
}
{
"code": "text",
"message": "text"
}
Searches all inventory items in the system and returns the metadata for all matches against the given search filter.
0
20
GET /api/rest/inventory/advanced HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Create an inventory item for the specified item
The User ID
The item to reference.
The quantity of the Item in inventory
The priority slot for the item.
POST /api/rest/inventory/advanced HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 61
{
"userId": null,
"itemId": null,
"quantity": null,
"priority": null
}
{
"code": "text",
"message": "text"
}
Searches all inventory items in the system and returns the metadata for all matches against the given search filter.
0
20
GET /api/rest/inventory/distinct HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Create an inventory item for the specified item
The digital goods item id.
The id of the User owning this inventory item id.
The the profileid of hte Profile owning this inventory item.
POST /api/rest/inventory/distinct HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 62
{
"itemId": null,
"userId": null,
"profileId": null,
"metadata": null
}
{
"code": "text",
"message": "text"
}
Updates an inventory item for the specified item
The id of the User owning this inventory item id.
The the profile id of hte Profile owning this inventory item.
PUT /api/rest/inventory/distinct/{distinctInventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 48
{
"userId": null,
"profileId": null,
"metadata": null
}
{
"code": "text",
"message": "text"
}
Delete the inventory item as identified by the given item name/id
DELETE /api/rest/inventory/distinct/{distinctInventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Gets the first (primary) inventory item for the specified item
GET /api/rest/inventory/distinct/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Gets the first (primary) inventory item for the specified item
GET /api/rest/inventory/simple/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Updates an inventory item for the specified item
The quantity of the Item in inventory
PUT /api/rest/inventory/simple/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 17
{
"quantity": null
}
{
"code": "text",
"message": "text"
}
Delete the inventory item as identified by the given item name/id
DELETE /api/rest/inventory/simple/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Adjust the quantity of the first (primary) inventory item for the specified item. This implicitly will create the InventoryItem if it does not exist. The inventory item value
The User whose inventory to modify.ß
The delta to be applied to the inventory item quantity (positive or negative)
PATCH /api/rest/inventory/simple/{inventoryItemId} HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 36
{
"userId": null,
"quantityDelta": null
}
{
"code": "text",
"message": "text"
}
Searches all inventory items in the system and returns the metadata for all matches against the given search filter.
0
20
GET /api/rest/inventory/simple HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"message": "text"
}
Create an inventory item for the specified item
The User ID
The item to reference.
The quantity of the Item in inventory
POST /api/rest/inventory/simple HTTP/1.1
Host: localhost:8080
Authorization: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 45
{
"userId": null,
"itemId": null,
"quantity": null
}
{
"code": "text",
"message": "text"
}
Last updated