Download OpenAPI specification:Download
A REST API providing HTTP/JSON interface to Grid.
Fetches an array of objects with a status and id for each batch
requested. There are four possible statuses with string values
'COMMITTED'
, 'INVALID'
, 'PENDING'
, and 'UNKNOWN'
.
The batch(es) you want to check can be specified using the id
filter
parameter. If a wait
time is specified in the URL, the API will wait
to respond until all batches are committed, or the time in seconds has
elapsed. If the value of wait
is not set (i.e., ?wait&id=...
), or
it is set to any non-integer value other than false
, the wait time
will be just under the API's specified timeout (usually 300).
Note that because this route does not return full resources, the
response will not be paginated, and there will be no head
or
paging
properties.
id required | string A comma-separated list of batch IDs or data change IDs |
wait | integer The number of seconds to wait for batches to be committed before returning. |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
[- {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123",
- "status": "pending"
}
]
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "location_id": 99474000005,
- "location_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA"
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
This endpoint can be used to submit locations to the underlying
distributed ledger. The operation called by this endpoint will depend on
which distributed ledger is supporting this deployment of Grid.
Regardless of the underlying ledger, the body of this request must be a
valid list of Grid Locations.
If the Grid Daemon is running against Splinter, then the service_id
query parameter is required for this request. The Grid Daemon will use
the service ID to forward the transaction to an endpoint on the Splinter
Daemon for the Scabbard service corresponding to the provided service
ID.
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
wait | integer The number of seconds to wait for batches to be committed before returning. |
A JSON list of Locations
Array of objects (CreateLocation) |
{- "data": [
- {
- "location_id": 99474000005,
- "location_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA"
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
location_id required | string ID of the location to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "location_id": 99474000005,
- "location_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA"
}
location_id required | string ID of the location to update |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Location
location_id | string |
location_namespace | string (NamespaceEnum) Enum: "UNSET_NAMESPACE" "GS1" |
Array of objects (PropertyValue) | |
service_id | string (ServiceID) |
{- "location_id": 99474000005,
- "location_namespace": "UNSET_NAMESPACE",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA"
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
location_id required | string ID of the location to delete |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "id": "philips001",
- "name": "Philips",
- "alternate_ids": [
- "test:test"
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
This endpoint can be used to submit organizations to the underlying
distributed ledger. The operation called by this endpoint will depend on
which distributed ledger is supporting this deployment of Grid.
Regardless of the underlying ledger, the body of this request must be a
valid list of Grid Organizations.
If the Grid Daemon is running against Splinter, then the service_id
query parameter is required for this request. The Grid Daemon will use
the service ID to forward the transaction to an endpoint on the Splinter
Daemon for the Scabbard service corresponding to the provided service
ID.
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
wait | integer The number of seconds to wait for batches to be committed before returning. |
A JSON list of Organizations
Array of objects (Organization) |
{- "data": [
- {
- "id": "philips001",
- "name": "Philips",
- "alternate_ids": [
- "test:test"
], - "locations": [
- 12276598822
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
id required | string ID of the organization to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "id": "philips001",
- "name": "Philips",
- "alternate_ids": [
- "test:test"
], - "locations": [
- 12276598822
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
id required | string ID of the organization to update |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Organization
id | string |
name | string |
locations | Array of strings |
alternate_ids | Array of strings |
Array of objects (Metadata) | |
service_id | string (ServiceID) |
last_updated | integer (Timestamp) |
{- "id": "philips001",
- "name": "Philips",
- "locations": [
- 12276598822
], - "alternate_ids": [
- "test:test"
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
org_id required | string ID of the organization the agent belongs to |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "public_key": "038bba5708acc262464c9fe30d3de9e905a9a5fa30cedd151dd9cd09ea26d46d00",
- "org_id": 13600,
- "active": "true",
- "roles": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
org_id required | string ID of the organization the agents belong to |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON list of Agents
Array of objects (Agent) |
{- "data": [
- {
- "public_key": "038bba5708acc262464c9fe30d3de9e905a9a5fa30cedd151dd9cd09ea26d46d00",
- "org_id": 13600,
- "active": "true",
- "roles": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
org_id required | string ID of the organization the agent belongs to |
public_key required | string Public key of the agent to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "public_key": "038bba5708acc262464c9fe30d3de9e905a9a5fa30cedd151dd9cd09ea26d46d00",
- "org_id": 13600,
- "active": "true",
- "roles": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
org_id required | string ID of the organization the agent belongs to |
public_key required | string Public key of the agent to update |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Agent
public_key | string |
org_id | string |
active | boolean |
Array of objects (Role) | |
Array of objects (Metadata) | |
service_id | string (ServiceID) |
last_updated | integer (Timestamp) |
{- "public_key": "038bba5708acc262464c9fe30d3de9e905a9a5fa30cedd151dd9cd09ea26d46d00",
- "org_id": 13600,
- "active": "true",
- "roles": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "metadata": [
- {
- "key1": "value1"
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
org_id required | string Org ID of the organization to list roles for |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
org_id required | string ID of the organization the roles belong to |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON list of Roles
Array of objects (Role) |
{- "data": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
org_id required | string Org ID of the organization the role belongs to |
role_name required | string Role name of the role to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
org_id required | string ID of the organization the agent belongs to |
role_name required | string Role name of the role to update |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Role
name | string |
org_id | string |
description | string |
permissions | Array of strings |
allowed_organizations | Array of strings |
inherit_from | Array of strings |
last_updated | integer (Timestamp) |
{- "name": "alpha.Drivers",
- "org_id": 314156,
- "description": "What this role is for",
- "permissions": [
- "tank::can_drive"
], - "allowed_organizations": [
- "beta"
], - "inherit_from": [
- "beta.Tank"
], - "last_updated": 1557949075
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
org_id required | string ID of the organization the role belongs to |
role_name required | string Role name of the role to delete |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "product_id": 122765988220,
- "product_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
A JSON list of Products
Array of objects (CreateProduct) |
{- "data": [
- {
- "product_id": 122765988220,
- "product_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
product_id required | string ID of the product to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "product_id": 122765988220,
- "product_namespace": "UNSET_NAMESPACE",
- "owner": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
product_id required | string ID of the product to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Product
product_id | string |
product_namespace | string (NamespaceEnum) Enum: "UNSET_NAMESPACE" "GS1" |
Array of objects (PropertyValue) | |
service_id | string (ServiceID) |
last_updated | integer (Timestamp) |
{- "product_id": 122765988220,
- "product_namespace": "UNSET_NAMESPACE",
- "properties": [
- {
- "name": "is_current",
- "data_type": "boolean",
- "value": false
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
product_id required | string ID of the product to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "uid": 99474000005,
- "workflow_state": "create",
- "buyer_org_id": "Org 1",
- "seller_org_id": "Org 2",
- "is_closed": false,
- "alternate_ids": [
- "type:id"
], - "versions": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
], - "created_at": 1557949075,
- "workflow_id": "collaborative::v1",
- "service_id": "12345-QWERTY:gsAA"
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
A JSON list of Purchase Orders
Array of objects (CreatePurchaseOrder) |
{- "data": [
- {
- "uid": 99474000005,
- "workflow_state": "create",
- "buyer_org_id": "Org 1",
- "seller_org_id": "Org 2",
- "create_version_payload": { },
- "alternate_ids": [
- "type:id"
], - "created_at": 1557949075,
- "workflow_id": "collaborative::v1",
- "service_id": "12345-QWERTY:gsAA"
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
uid required | string ID of the PO to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "uid": 99474000005,
- "workflow_state": "create",
- "buyer_org_id": "Org 1",
- "seller_org_id": "Org 2",
- "is_closed": false,
- "alternate_ids": [
- "type:id"
], - "versions": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
], - "created_at": 1557949075,
- "workflow_id": "collaborative::v1",
- "service_id": "12345-QWERTY:gsAA"
}
uid required | string ID of the PO to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Purchase Order
po_uid | string |
workflow_state | string |
is_closed | boolean |
accepted_version_number | string |
Array of objects (PurchaseOrderVersion) | |
alternate_ids | Array of strings |
service_id | string (ServiceID) |
{- "po_uid": 99474000005,
- "workflow_state": "create",
- "is_closed": false,
- "accepted_version_number": 1,
- "version_updates": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
], - "alternate_ids": [
- "type:id"
], - "service_id": "12345-QWERTY:gsAA"
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
uid required | string ID of the PO to fetch versions for |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
uid required | string ID of the PO to fetch versions for |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
A JSON list of Purchase Order Versions
Array of objects (PurchaseOrderVersion) |
{- "data": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
version_id required | string ID of the version to fetch |
uid required | string ID of the PO to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
version_id required | string ID of the version to be updated |
uid required | string ID of the PO this version belongs to |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
A JSON list of Purchase Order Versions
Array of objects (PurchaseOrderVersion) |
{- "data": [
- {
- "version_id": 1,
- "workflow_state": "create",
- "is_draft": true,
- "current_revision_number": 3,
- "revisions": [
- 0
], - "service_id": "12345-QWERTY:gsAA"
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
version_id required | string ID of the version to fetch |
uid required | string ID of the PO to fetch versions for |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "revision_number": 7,
- "submitter": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "created_at": 1557949075,
- "order_xml_v3_4": "<xml content>",
- "service_id": "12345-QWERTY:gsAA"
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
revision_number required | number Number of the revision to fetch |
version_id required | string ID of the version the revision belongs to |
uid required | string ID of the PO the revision belongs to |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "revision_number": 7,
- "submitter": "02cd3181dbd7d1539f470436ce222c53ab5e514f67809dc0095895e6cdfba97612",
- "created_at": 1557949075,
- "order_xml_v3_4": "<xml content>",
- "service_id": "12345-QWERTY:gsAA"
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
{- "data": [
- {
- "name": "Lightbulb",
- "description": "Example Lightbulb schema",
- "owner": "philips001",
- "properties": [
- {
- "name": "size",
- "data_type": "STRING",
- "description": "Lightbulb radius, in millimeters",
- "required": true,
- "value": 20
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
], - "paging": {
- "current": "/agent?offset0&limit=10",
- "offset": 0,
- "limit": 10,
- "total": 1000,
- "prev": "/agent?offset=0&limit=10",
- "next": "/agent?offset=10&limit=10",
- "last": "/agent?offset100&limit=10"
}
}
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
offset | integer The index of the first element to be in the page |
limit | integer The maximum number of elements in a page |
A JSON list of Schemas
Array of objects (CreateSchema) |
{- "data": [
- {
- "name": "Lightbulb",
- "description": "Example Lightbulb schema",
- "owner": "philips001",
- "properties": [
- {
- "name": "size",
- "data_type": "STRING",
- "description": "Lightbulb radius, in millimeters",
- "required": true,
- "value": 20
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
]
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}
schema_name required | string Name of the schema to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
{- "name": "Lightbulb",
- "description": "Example Lightbulb schema",
- "owner": "philips001",
- "properties": [
- {
- "name": "size",
- "data_type": "STRING",
- "description": "Lightbulb radius, in millimeters",
- "required": true,
- "value": 20
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
schema_name required | string Name of the schema to fetch |
service_id | string The ID of the service the request should be sent to. This parameter is required if running on Splinter. Format: <circuit-id>::<service-id> |
A JSON Schema
name | string |
owner | string |
Array of objects (PropertyDefinition) | |
service_id | string (ServiceID) |
last_updated | integer (Timestamp) |
{- "name": "Lightbulb",
- "owner": "philips001",
- "properties": [
- {
- "name": "size",
- "data_type": "STRING",
- "description": "Lightbulb radius, in millimeters",
- "required": true,
- "value": 20
}
], - "service_id": "12345-QWERTY:gsAA",
- "last_updated": 1557949075
}
{- "link": {
- "batch_id": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd",
- "event_id": "abc123"
}
}