{ "swagger": "2.0", "info": { "title": "API ShippingOrder", "description": "## TMF API Reference: TMF 700 - Shipping Order \n\n### February 2021\n\n A Shipping Order is a document used by a business to specify what\u00a0items\u00a0are to be transferred by a logisitic partner from a\u00a0storage\u00a0location\u00a0or\u00a0warehouse to a party in a different location.When goods are sent to the customers, shipment information can be provided to them so they can be aware of when things were shipped and when they will arrive. The service provider creates a Shipping Order which can be sent to a Logistic Partner to manage the physical shipment. The Shipping Order can be split into one or more Shipments with associated Shipment Tracking to capture information about the current status of the shipment, the past checkpoints and the estimated arrival date .\n\nCopyright \u00a9 TM Forum 2018. All Rights Reserved.", "version": "4.0.0" }, "host": "serverRoot", "basePath": "/tmf-api/shippingOrder/v4.0/", "schemes": [ "https" ], "consumes": [ "application/json;charset=utf-8" ], "produces": [ "application/json;charset=utf-8" ], "tags": [ { "name": "shippingOrder" }, { "name": "notification listeners (client side)" }, { "name": "events subscription" } ], "paths": { "/shippingOrder": { "get": { "operationId": "listShippingOrder", "summary": "List or find ShippingOrder objects", "description": "This operation list or find ShippingOrder entities", "tags": [ "shippingOrder" ], "parameters": [ { "name": "fields", "description": "Comma-separated properties to be provided in response", "required": false, "in": "query", "type": "string" }, { "name": "offset", "description": "Requested index for start of resources to be provided in response", "required": false, "in": "query", "type": "integer" }, { "name": "limit", "description": "Requested number of resources to be provided in response", "required": false, "in": "query", "type": "integer" } ], "responses": { "200": { "description": "Success", "headers": { "X-Result-Count": { "description": "Actual number of items returned in the response body", "type": "integer" }, "X-Total-Count": { "description": "Total number of items matching criteria", "type": "integer" } }, "schema": { "type": "array", "items": { "$ref": "#/definitions/ShippingOrder" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } }, "post": { "operationId": "createShippingOrder", "summary": "Creates a ShippingOrder", "description": "This operation creates a ShippingOrder entity.", "tags": [ "shippingOrder" ], "parameters": [ { "name": "shippingOrder", "description": "The ShippingOrder to be created", "required": true, "schema": { "$ref": "#/definitions/ShippingOrder_Create" }, "in": "body" } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/ShippingOrder" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/shippingOrder/{id}": { "get": { "operationId": "retrieveShippingOrder", "summary": "Retrieves a ShippingOrder by ID", "description": "This operation retrieves a ShippingOrder entity. Attribute selection is enabled for all first level attributes.", "tags": [ "shippingOrder" ], "parameters": [ { "name": "id", "description": "Identifier of the ShippingOrder", "required": true, "type": "string", "in": "path" }, { "name": "fields", "description": "Comma-separated properties to provide in response", "required": false, "type": "string", "in": "query" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/ShippingOrder" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } }, "put": { "operationId": "updateShippingOrder", "summary": "Updates a ShippingOrder", "description": "This operation updates a ShippingOrder entity.", "tags": [ "shippingOrder" ], "parameters": [ { "name": "id", "description": "Identifier of the ShippingOrder", "required": true, "type": "string", "in": "path" }, { "name": "shippingOrder", "description": "The ShippingOrder to be updated", "required": true, "schema": { "$ref": "#/definitions/ShippingOrder_Update" }, "in": "body" } ], "responses": { "200": { "description": "Updated", "schema": { "$ref": "#/definitions/ShippingOrder" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } }, "patch": { "operationId": "patchShippingOrder", "summary": "Updates partially a ShippingOrder", "description": "This operation updates partially a ShippingOrder entity.", "tags": [ "shippingOrder" ], "parameters": [ { "name": "id", "description": "Identifier of the ShippingOrder", "required": true, "type": "string", "in": "path" }, { "name": "shippingOrder", "description": "The ShippingOrder to be updated", "required": true, "schema": { "$ref": "#/definitions/ShippingOrder_Update" }, "in": "body" } ], "responses": { "200": { "description": "Updated", "schema": { "$ref": "#/definitions/ShippingOrder" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/hub": { "post": { "operationId": "registerListener", "summary": "Register a listener", "description": "Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics.", "tags": [ "events subscription" ], "parameters": [ { "name": "data", "schema": { "$ref": "#/definitions/EventSubscriptionInput" }, "required": true, "in": "body", "description": "Data containing the callback endpoint to deliver the information" } ], "responses": { "201": { "description": "Subscribed", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/hub/{id}": { "delete": { "operationId": "unregisterListener", "summary": "Unregister a listener", "description": "Resets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics.", "tags": [ "events subscription" ], "parameters": [ { "name": "id", "type": "string", "required": true, "in": "path", "description": "The id of the registered listener" } ], "responses": { "204": { "description": "Deleted" }, "400": { "description": "Bad request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method not allowed", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/listener/shippingOrderCreateEvent": { "post": { "operationId": "listenToShippingOrderCreateEvent", "summary": "Client listener for entity ShippingOrderCreateEvent", "description": "Example of a client listener for receiving the notification ShippingOrderCreateEvent", "tags": [ "notification listeners (client side)" ], "parameters": [ { "name": "data", "required": true, "in": "body", "description": "The event data", "schema": { "$ref": "#/definitions/ShippingOrderCreateEvent" } } ], "responses": { "201": { "description": "Notified", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/listener/shippingOrderAttributeValueChangeEvent": { "post": { "operationId": "listenToShippingOrderAttributeValueChangeEvent", "summary": "Client listener for entity ShippingOrderAttributeValueChangeEvent", "description": "Example of a client listener for receiving the notification ShippingOrderAttributeValueChangeEvent", "tags": [ "notification listeners (client side)" ], "parameters": [ { "name": "data", "required": true, "in": "body", "description": "The event data", "schema": { "$ref": "#/definitions/ShippingOrderAttributeValueChangeEvent" } } ], "responses": { "201": { "description": "Notified", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/listener/shippingOrderDeleteEvent": { "post": { "operationId": "listenToShippingOrderDeleteEvent", "summary": "Client listener for entity ShippingOrderDeleteEvent", "description": "Example of a client listener for receiving the notification ShippingOrderDeleteEvent", "tags": [ "notification listeners (client side)" ], "parameters": [ { "name": "data", "required": true, "in": "body", "description": "The event data", "schema": { "$ref": "#/definitions/ShippingOrderDeleteEvent" } } ], "responses": { "201": { "description": "Notified", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/listener/shippingOrderStateChangeEvent": { "post": { "operationId": "listenToShippingOrderStateChangeEvent", "summary": "Client listener for entity ShippingOrderStateChangeEvent", "description": "Example of a client listener for receiving the notification ShippingOrderStateChangeEvent", "tags": [ "notification listeners (client side)" ], "parameters": [ { "name": "data", "required": true, "in": "body", "description": "The event data", "schema": { "$ref": "#/definitions/ShippingOrderStateChangeEvent" } } ], "responses": { "201": { "description": "Notified", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/listener/shippingOrderInformationRequiredEvent": { "post": { "operationId": "listenToShippingOrderInformationRequiredEvent", "summary": "Client listener for entity ShippingOrderInformationRequiredEvent", "description": "Example of a client listener for receiving the notification ShippingOrderInformationRequiredEvent", "tags": [ "notification listeners (client side)" ], "parameters": [ { "name": "data", "required": true, "in": "body", "description": "The event data", "schema": { "$ref": "#/definitions/ShippingOrderInformationRequiredEvent" } } ], "responses": { "201": { "description": "Notified", "schema": { "$ref": "#/definitions/EventSubscription" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Forbidden", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/Error" } }, "405": { "description": "Method Not allowed", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Conflict", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/Error" } } } } } }, "definitions": { "Addressable": { "type": "object", "description": "Base schema for adressable entities", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" } } }, "AgreementItemRef": { "type": "object", "description": "Agreement reference. An agreement represents a contract or arrangement, either written or verbal and sometimes enforceable by law, such as a service level agreement or a customer price agreement. An agreement involves a number of other business entities, such as products, services, and resources and/or their specifications.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "agreementItemId": { "type": "string", "description": "Identifier of the agreement" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Any": {}, "AssociationSpecificationRef": { "type": "object", "description": "reference to an AssociationSpecification object", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Attachment": { "type": "object", "description": "Complements the description of an element (for instance a product) through video, pictures...", "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "description": "Unique identifier for this particular attachment" }, "href": { "example": "http://host/Attachment/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "format": "uri", "description": "URI for this Attachment" }, "attachmentType": { "example": "video", "type": "string", "description": "Attachment type such as video, picture" }, "content": { "type": "string", "format": "base64", "description": "The actual contents of the attachment object, if embedded, encoded as base64" }, "description": { "example": "Photograph of the Product", "type": "string", "description": "A narrative text describing the content of the attachment" }, "mimeType": { "type": "string", "description": "Attachment mime type such as extension file for video, picture and document" }, "name": { "type": "string", "description": "The name of the attachment" }, "url": { "example": "http://host/Content/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "format": "uri", "description": "Uniform Resource Locator, is a web page address (a subset of URI)" }, "size": { "$ref": "#/definitions/Quantity", "description": "The size of the attachment." }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period of time for which the attachment is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "AttachmentRef": { "type": "object", "description": "Attachment reference. An attachment complements the description of an element (for instance a product) through video, pictures", "properties": { "id": { "type": "string", "description": "Unique-Identifier for this attachment" }, "href": { "type": "string", "format": "uri", "description": "URL serving as reference for the attachment resource" }, "description": { "type": "string", "description": "A narrative text describing the content of the attachment" }, "name": { "type": "string", "description": "Name of the related entity." }, "url": { "type": "string", "format": "uri", "description": "Link to the attachment media/content" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "AttachmentRefOrValue": { "type": "object", "description": "An attachment by value or by reference. An attachment complements the description of an element, for example through a document, a video, a picture.", "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "description": "Unique identifier for this particular attachment" }, "href": { "example": "http://host/Attachment/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "format": "uri", "description": "URI for this Attachment" }, "attachmentType": { "example": "video", "type": "string", "description": "Attachment type such as video, picture" }, "content": { "type": "string", "format": "base64", "description": "The actual contents of the attachment object, if embedded, encoded as base64" }, "description": { "example": "Photograph of the Product", "type": "string", "description": "A narrative text describing the content of the attachment" }, "mimeType": { "type": "string", "description": "Attachment mime type such as extension file for video, picture and document" }, "name": { "type": "string", "description": "The name of the attachment" }, "url": { "example": "http://host/Content/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "format": "uri", "description": "Uniform Resource Locator, is a web page address (a subset of URI)" }, "size": { "$ref": "#/definitions/Quantity", "description": "The size of the attachment." }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period of time for which the attachment is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "BillingAccountRef": { "type": "object", "description": "BillingAccount reference. A BillingAccount is a detailed description of a bill structure.", "properties": { "id": { "type": "string", "description": "Unique identifier of the billing account" }, "href": { "type": "string", "description": "Reference of the billing account" }, "name": { "type": "string", "description": "Name of the billing account" }, "ratingType": { "type": "string", "description": "Indicates whether the account follows a specific payment option such as prepaid or postpaid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Characteristic": { "type": "object", "description": "Describes a given characteristic of an object or entity through a name/value pair.", "required": [ "name", "value" ], "properties": { "id": { "type": "string", "description": "Unique identifier of the characteristic" }, "name": { "type": "string", "description": "Name of the characteristic" }, "valueType": { "type": "string", "description": "Data type of the value of the characteristic" }, "characteristicRelationship": { "type": "array", "items": { "$ref": "#/definitions/CharacteristicRelationship" } }, "value": { "$ref": "#/definitions/Any", "description": "The value of the characteristic" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "CharacteristicRelationship": { "type": "object", "description": "Another Characteristic that is related to the current Characteristic;", "properties": { "id": { "type": "string", "description": "Unique identifier of the characteristic" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "relationshipType": { "type": "string", "description": "The type of relationship" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "CharacteristicSpecification": { "type": "object", "description": "This class defines a characteristic specification.", "properties": { "id": { "type": "string", "description": "Unique ID for the characteristic" }, "configurable": { "type": "boolean", "description": "If true, the Boolean indicates that the target Characteristic is configurable" }, "description": { "type": "string", "description": "A narrative that explains the CharacteristicSpecification." }, "extensible": { "type": "boolean", "description": "An indicator that specifies that the values for the characteristic can be extended by adding new values when instantiating a characteristic for a resource." }, "isUnique": { "type": "boolean", "description": "Specifies if the value of this characteristic is unique across all entities instantiated from the specification that uses this characteristc. For example, consider a ProductSpecification for a set-top box, with a CharacteristicSpecification cardID. Each set-top box must have a different value for cardID, so this isUnique attribute would be set to true for the characteristic." }, "maxCardinality": { "type": "integer", "description": "The maximum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where five is the value for the maxCardinality." }, "minCardinality": { "type": "integer", "description": "The minimum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where zero is the value for the minCardinality." }, "name": { "type": "string", "description": "A word, term, or phrase by which this characteristic specification is known and distinguished from other characteristic specifications." }, "regex": { "type": "string", "description": "A rule or principle represented in regular expression used to derive the value of a characteristic value." }, "valueType": { "type": "string", "description": "A kind of value that the characteristic can take on, such as numeric, text and so forth" }, "charSpecRelationship": { "type": "array", "items": { "$ref": "#/definitions/CharacteristicSpecificationRelationship" }, "description": "An aggregation, migration, substitution, dependency or exclusivity relationship between/among Specification Characteristics." }, "characteristicValueSpecification": { "type": "array", "items": { "$ref": "#/definitions/CharacteristicValueSpecification" }, "description": "A CharacteristicValueSpecification object is used to define a set of attributes, each of which can be assigned to a corresponding set of attributes in a CharacteristicSpecification object. The values of the attributes in the CharacteristicValueSpecification object describe the values of the attributes that a corresponding Characteristic object can take on." }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period of time for which a characteristic is applicable." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@valueSchemaLocation": { "type": "string", "description": "This (optional) field provides a link to the schema describing the value type." } } }, "CharacteristicSpecificationBase": { "type": "object", "description": "This class defines a characteristic specification.", "properties": { "id": { "type": "string", "description": "Unique ID for the characteristic" }, "configurable": { "type": "boolean", "description": "If true, the Boolean indicates that the target Characteristic is configurable" }, "description": { "type": "string", "description": "A narrative that explains the CharacteristicSpecification." }, "extensible": { "type": "boolean", "description": "An indicator that specifies that the values for the characteristic can be extended by adding new values when instantiating a characteristic for a resource." }, "isUnique": { "type": "boolean", "description": "Specifies if the value of this characteristic is unique across all entities instantiated from the specification that uses this characteristc. For example, consider a ProductSpecification for a set-top box, with a CharacteristicSpecification cardID. Each set-top box must have a different value for cardID, so this isUnique attribute would be set to true for the characteristic." }, "maxCardinality": { "type": "integer", "description": "The maximum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where five is the value for the maxCardinality." }, "minCardinality": { "type": "integer", "description": "The minimum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where zero is the value for the minCardinality." }, "name": { "type": "string", "description": "A word, term, or phrase by which this characteristic specification is known and distinguished from other characteristic specifications." }, "regex": { "type": "string", "description": "A rule or principle represented in regular expression used to derive the value of a characteristic value." }, "valueType": { "type": "string", "description": "A kind of value that the characteristic can take on, such as numeric, text and so forth" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period of time for which a characteristic is applicable." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@valueSchemaLocation": { "type": "string", "description": "This (optional) field provides a link to the schema describing the value type." } } }, "CharacteristicSpecificationRelationship": { "type": "object", "description": "An aggregation, migration, substitution, dependency or exclusivity relationship between/among Characteristic specifications. The specification characteristic is embedded within the specification whose ID and href are in this entity, and identified by its ID.", "properties": { "characteristicSpecificationId": { "type": "string", "description": "Unique identifier of the characteristic within the specification" }, "name": { "type": "string", "description": "Name of the target characteristic within the specification" }, "parentSpecificationHref": { "type": "string", "format": "uri", "description": "Hyperlink reference to the parent specification containing the target characteristic" }, "parentSpecificationId": { "type": "string", "description": "Unique identifier of the parent specification containing the target characteristic" }, "relationshipType": { "type": "string", "description": "Type of relationship such as aggregation, migration, substitution, dependency, exclusivity" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period for which the object is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "CharacteristicValueSpecification": { "type": "object", "description": "specification of a value (number or text or an object) that can be assigned to a Characteristic.", "properties": { "isDefault": { "type": "boolean", "description": "If true, the Boolean Indicates if the value is the default value for a characteristic" }, "rangeInterval": { "type": "string", "description": "An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are \"open\", \"closed\", \"closedBottom\" and \"closedTop\"." }, "regex": { "type": "string", "description": "A regular expression constraint for given value" }, "unitOfMeasure": { "type": "string", "description": "A length, surface, volume, dry measure, liquid measure, money, weight, time, and the like. In general, a determinate quantity or magnitude of the kind designated, taken as a standard of comparison for others of the same kind, in assigning to them numerical values, as 1 foot, 1 yard, 1 mile, 1 square foot." }, "valueFrom": { "type": "integer", "description": "The low range value that a characteristic can take on" }, "valueTo": { "type": "integer", "description": "The upper range value that a characteristic can take on" }, "valueType": { "type": "string", "description": "A kind of value that the characteristic value can take on, such as numeric, text and so forth" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period of time for which a value is applicable." }, "value": { "$ref": "#/definitions/Any", "description": "A discrete value that the characteristic can take on, or the actual value of the characteristic" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ConstraintRef": { "type": "object", "description": "Constraint reference. The Constraint resource represents a policy/rule applied to an entity or entity spec.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "version": { "type": "string", "description": "constraint version" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ContactMedium": { "type": "object", "description": "Indicates the contact medium that could be used to contact the party.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "mediumType": { "type": "string", "description": "Type of the contact medium, such as: email address, telephone number, postal address" }, "preferred": { "type": "boolean", "description": "If true, indicates that is the preferred contact medium" }, "characteristic": { "$ref": "#/definitions/MediumCharacteristic", "description": "Any additional characteristic(s) of this contact medium" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The time period that the contact medium is valid for" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "Entity": { "type": "object", "description": "Base entity schema for use in TMForum Open-APIs", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "EntityRef": { "type": "object", "description": "Entity reference schema to be use for all entityRef class.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Extensible": { "type": "object", "description": "Base Extensible schema for use in TMForum Open-APIs", "properties": { "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ExternalIdentifier": { "type": "object", "description": "An identification of an entity that is owned by or originates in a software system different from the current system, for example a ProductOrder handed off from a commerce platform into an order handling system. The structure identifies the system itself, the nature of the entity within the system (e.g. class name) and the unique ID of the entity within the system. It is anticipated that multiple external IDs can be held for a single entity, e.g. if the entity passed through multiple systems on the way to the current system. In this case the consumer is expected to sequence the IDs in the array in reverse order of provenance, i.e. most recent system first in the list.", "required": [ "id" ], "properties": { "id": { "example": "MC2255771199555", "type": "string", "description": "identification of the entity within the external system." }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "externalIdentifierType": { "example": "ProductOrder", "type": "string", "description": "Type of the identification, typically would be the type of the entity within the external system" }, "owner": { "example": "MagentoCommerce", "type": "string", "description": "Name of the external system that owns the entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "MediumCharacteristic": { "type": "object", "description": "Describes the contact medium characteristics that could be used to contact a party (an individual or an organization)", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "city": { "type": "string", "description": "The city" }, "contactType": { "type": "string", "description": "The type of contact, for example: phone number such as mobile, fixed home, fixed office. postal address such as shipping instalation\u2026" }, "country": { "type": "string", "description": "The country" }, "emailAddress": { "type": "string", "description": "Full email address in standard format" }, "faxNumber": { "type": "string", "description": "The fax number of the contact" }, "phoneNumber": { "type": "string", "description": "The primary phone number of the contact" }, "postCode": { "type": "string", "description": "Postcode" }, "socialNetworkId": { "type": "string", "description": "Identifier as a member of a social network" }, "stateOrProvince": { "type": "string", "description": "State or province" }, "street1": { "type": "string", "description": "Describes the street" }, "street2": { "type": "string", "description": "Complementary street description" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "Money": { "type": "object", "description": "A base / value business entity used to represent money", "properties": { "unit": { "type": "string", "description": "Currency (ISO4217 norm uses 3 letters to define the currency)" }, "value": { "type": "number", "format": "float", "description": "A signed floating point number, the meaning of the sign is according to the context of the API that uses this Data type" } } }, "Note": { "type": "object", "description": "Extra information about a given entity", "properties": { "id": { "example": [ "afa9-3d90aaa8da0f" ], "type": "string", "description": "Identifier of the note within its containing entity" }, "author": { "example": [ "Mr. N. Bene" ], "type": "string", "description": "Author of the note" }, "date": { "example": [ "2020-11-20T08:00:00Z" ], "type": "string", "format": "date-time", "description": "Date of the note" }, "text": { "example": [ "This is important" ], "type": "string", "description": "Text of the note" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "PaymentMethodRef": { "type": "object", "description": "PaymentMethod reference. A payment method defines a specific mean of payment (e.g direct debit).", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Place": { "type": "object", "description": "Place reference. Place defines the places where the products are sold or delivered.", "properties": { "id": { "type": "string", "description": "Unique identifier of the place" }, "href": { "type": "string", "description": "Unique reference of the place" }, "name": { "type": "string", "description": "A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "PlaceRef": { "type": "object", "description": "Place reference. PlaceRef defines the placeRefs where the products are sold or delivered.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Price": { "type": "object", "description": "Provides all amounts (tax included, duty free, tax rate), used currency and percentage to apply for Price Alteration.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "percentage": { "type": "number", "format": "float", "description": "Percentage to apply for ProdOfferPriceAlteration" }, "taxRate": { "type": "number", "format": "float", "description": "Tax rate" }, "dutyFreeAmount": { "$ref": "#/definitions/Money", "description": "All taxes excluded amount (expressed in the given currency)" }, "taxIncludedAmount": { "$ref": "#/definitions/Money", "description": "All taxes included amount (expressed in the given currency)" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "PriceAlteration": { "type": "object", "description": "Is an amount, usually of money, that modifies the price charged for an order item.", "required": [ "price", "priceType" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "applicationDuration": { "type": "integer", "description": "Duration during which the alteration applies on the order item price (for instance 2 months free of charge for the recurring charge)" }, "description": { "type": "string", "description": "A narrative that explains in detail the semantics of this order item price alteration" }, "name": { "type": "string", "description": "Name of the order item price alteration" }, "priceType": { "type": "string", "description": "A category that describes the price such as recurring, one time and usage." }, "priority": { "type": "integer", "description": "Priority level for applying this alteration among all the defined alterations on the order item price" }, "recurringChargePeriod": { "type": "string", "description": "Could be month, week..." }, "unitOfMeasure": { "type": "string", "description": "Could be minutes, GB..." }, "price": { "$ref": "#/definitions/Price" }, "productOfferingPrice": { "$ref": "#/definitions/ProductOfferingPriceRef" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "Product": { "type": "object", "description": "A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s).", "properties": { "id": { "type": "string", "description": "Unique identifier of the product" }, "href": { "type": "string", "description": "Reference of the product" }, "description": { "type": "string", "description": "Is the description of the product. It could be copied from the description of the Product Offering." }, "isBundle": { "type": "boolean", "description": "If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering." }, "isCustomerVisible": { "type": "boolean", "description": "If true, the product is visible by the customer." }, "name": { "type": "string", "description": "Name of the product. It could be the same as the name of the product offering" }, "orderDate": { "type": "string", "format": "date-time", "description": "Is the date when the product was ordered" }, "productSerialNumber": { "type": "string", "description": "Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router." }, "startDate": { "type": "string", "format": "date-time", "description": "Is the date from which the product starts" }, "terminationDate": { "type": "string", "format": "date-time", "description": "Is the date when the product was terminated" }, "agreement": { "type": "array", "items": { "$ref": "#/definitions/AgreementItemRef" } }, "billingAccount": { "$ref": "#/definitions/BillingAccountRef" }, "place": { "type": "array", "items": { "$ref": "#/definitions/RelatedPlaceRefOrValue" } }, "product": { "type": "array", "items": { "$ref": "#/definitions/ProductRefOrValue" } }, "productCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" } }, "productOffering": { "$ref": "#/definitions/ProductOfferingRef" }, "productOrderItem": { "type": "array", "items": { "$ref": "#/definitions/RelatedProductOrderItem" } }, "productPrice": { "type": "array", "items": { "$ref": "#/definitions/ProductPrice" } }, "productRelationship": { "type": "array", "items": { "$ref": "#/definitions/ProductRelationship" } }, "productSpecification": { "$ref": "#/definitions/ProductSpecificationRef" }, "productTerm": { "type": "array", "items": { "$ref": "#/definitions/ProductTerm" } }, "realizingResource": { "type": "array", "items": { "$ref": "#/definitions/ResourceRef" } }, "realizingService": { "type": "array", "items": { "$ref": "#/definitions/ServiceRef" } }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedParty" } }, "status": { "$ref": "#/definitions/ProductStatusType", "description": "Is the lifecycle status of the product." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ProductOfferingPriceRef": { "type": "object", "description": "ProductPriceOffering reference. An amount, usually of money, that is asked for or allowed when a ProductOffering is bought, rented, or leased", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductOfferingRef": { "type": "object", "description": "ProductOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductOrderItemRef": { "type": "object", "description": "Reference to an order item that can typically be queried with another API.", "required": [ "productOrderId" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "productOrderId": { "type": "string", "description": "Identifier of the order of which the item is a part of" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "ProductOrderRef": { "type": "object", "description": "ProductOrder (ProductOrder) .The product order which the recommendation is related with.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductPrice": { "type": "object", "description": "An amount, usually of money, that represents the actual price paid by a Customer for a purchase, a rent or a lease of a Product. The price is valid for a defined period of time.", "required": [ "price", "priceType" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "description": { "type": "string", "description": "A narrative that explains in detail the semantics of this product price." }, "name": { "type": "string", "description": "A short descriptive name such as \"Subscription price\"." }, "priceType": { "type": "string", "description": "A category that describes the price, such as recurring, discount, allowance, penalty, and so forth." }, "recurringChargePeriod": { "type": "string", "description": "Could be month, week..." }, "unitOfMeasure": { "type": "string", "description": "Could be minutes, GB..." }, "billingAccount": { "$ref": "#/definitions/BillingAccountRef" }, "price": { "$ref": "#/definitions/Price" }, "productOfferingPrice": { "$ref": "#/definitions/ProductOfferingPriceRef" }, "productPriceAlteration": { "type": "array", "items": { "$ref": "#/definitions/PriceAlteration" } }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ProductRef": { "type": "object", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductRefOrValue": { "type": "object", "description": "A product to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself", "properties": { "id": { "type": "string", "description": "Unique identifier of the product" }, "href": { "type": "string", "description": "Reference of the product" }, "description": { "type": "string", "description": "Is the description of the product. It could be copied from the description of the Product Offering." }, "isBundle": { "type": "boolean", "description": "If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering." }, "isCustomerVisible": { "type": "boolean", "description": "If true, the product is visible by the customer." }, "name": { "type": "string", "description": "Name of the product. It could be the same as the name of the product offering" }, "orderDate": { "type": "string", "format": "date-time", "description": "Is the date when the product was ordered" }, "productSerialNumber": { "type": "string", "description": "Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router." }, "startDate": { "type": "string", "format": "date-time", "description": "Is the date from which the product starts" }, "terminationDate": { "type": "string", "format": "date-time", "description": "Is the date when the product was terminated" }, "agreement": { "type": "array", "items": { "$ref": "#/definitions/AgreementItemRef" } }, "billingAccount": { "$ref": "#/definitions/BillingAccountRef" }, "place": { "type": "array", "items": { "$ref": "#/definitions/RelatedPlaceRefOrValue" } }, "product": { "type": "array", "items": { "$ref": "#/definitions/ProductRefOrValue" } }, "productCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" } }, "productOffering": { "$ref": "#/definitions/ProductOfferingRef" }, "productOrderItem": { "type": "array", "items": { "$ref": "#/definitions/RelatedProductOrderItem" } }, "productPrice": { "type": "array", "items": { "$ref": "#/definitions/ProductPrice" } }, "productRelationship": { "type": "array", "items": { "$ref": "#/definitions/ProductRelationship" } }, "productSpecification": { "$ref": "#/definitions/ProductSpecificationRef" }, "productTerm": { "type": "array", "items": { "$ref": "#/definitions/ProductTerm" } }, "realizingResource": { "type": "array", "items": { "$ref": "#/definitions/ResourceRef" } }, "realizingService": { "type": "array", "items": { "$ref": "#/definitions/ServiceRef" } }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedParty" } }, "status": { "$ref": "#/definitions/ProductStatusType", "description": "Is the lifecycle status of the product." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "ProductRelationship": { "type": "object", "description": "Linked products to the one instantiate, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful", "required": [ "product", "relationshipType" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "relationshipType": { "type": "string", "description": "Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful" }, "product": { "$ref": "#/definitions/ProductRefOrValue" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ProductSpecificationRef": { "type": "object", "description": "Product specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "version": { "type": "string", "description": "Version of the product specification" }, "targetProductSchema": { "$ref": "#/definitions/TargetProductSchema", "description": "A target product schema reference. The reference object to the schema and type of target product which is described by product specification." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductStatusType": { "type": "string", "description": "Possible values for the status of the product", "enum": [ "created", "pendingActive", "cancelled", "active", "pendingTerminate", "terminated", "suspended", "aborted" ] }, "ProductStockRef": { "type": "object", "description": "ProductStockRef is a reference to a product stock", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the ProductStockRef" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ProductTerm": { "type": "object", "description": "Description of a productTerm linked to this product. This represent a commitment with a duration", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "description": { "type": "string", "description": "Description of the productTerm" }, "name": { "type": "string", "description": "Name of the productTerm" }, "duration": { "$ref": "#/definitions/Quantity", "description": "Duration of the productTerm" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "productTerm validity period" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "Quantity": { "type": "object", "description": "An amount in a given unit", "properties": { "amount": { "default": 1, "type": "number", "format": "float", "description": "Numeric value in a given unit" }, "units": { "type": "string", "description": "Unit" } } }, "RelatedEntity": { "type": "object", "description": "A reference to an entity, where the type of the entity is not known in advance.", "required": [ "@referredType", "id", "role" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "role": { "type": "string", "description": "The role of an entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedParty": { "type": "object", "description": "Related Entity reference. A related party defines party or party role linked to a specific entity.", "required": [ "@referredType", "id" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "role": { "type": "string", "description": "Role played by the related party" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedPartyWithContactInfo": { "type": "object", "description": "Related party specialization that includes contact information", "required": [ "@referredType" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "role": { "type": "string", "description": "Role played by the related party" }, "contactMedium": { "type": "array", "items": { "$ref": "#/definitions/ContactMedium" } }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedPlaceRefOrValue": { "type": "object", "description": "Related Entity reference. A related place defines a place described by reference or by value linked to a specific entity. The polymorphic attributes @type, @schemaLocation & @referredType are related to the place entity and not the RelatedPlaceRefOrValue class itself", "required": [ "role" ], "properties": { "id": { "type": "string", "description": "Unique identifier of the place" }, "href": { "type": "string", "description": "Unique reference of the place" }, "name": { "type": "string", "description": "A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]" }, "role": { "type": "string" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedProductOrderItem": { "type": "object", "description": "RelatedProductOrderItem (ProductOrder item) .The product order item which triggered product creation/change/termination.", "required": [ "orderItemId", "productOrderId" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "orderItemAction": { "type": "string", "description": "Action of the order item for this product" }, "orderItemId": { "type": "string", "description": "Identifier of the order item where the product was managed" }, "productOrderHref": { "type": "string", "description": "Reference of the related entity." }, "productOrderId": { "type": "string", "description": "Unique identifier of a related entity." }, "role": { "type": "string", "description": "role of the product order item for this product" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedShipment": { "type": "object", "description": "A related shipment addressable entity", "required": [ "role" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "role": { "type": "string", "description": "The role of an entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "RelatedShippingOrder": { "type": "object", "description": "A related shipping order addressable entity", "required": [ "role" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "role": { "type": "string", "description": "The role of an entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "ReserveProductStockRef": { "type": "object", "description": "Product Stock Reservation reference", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ResourceRef": { "type": "object", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ServiceRef": { "type": "object", "description": "Service reference, for when Service is used by other entities", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "Shipment": { "type": "object", "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f456", "type": "string", "description": "Unique identifier of the shipment" }, "href": { "example": "http://host/Attachment/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "description": "Reference of the shipment" }, "collectionDate": { "example": "2020-11-18T08:00:00Z", "type": "string", "format": "date-time", "description": "The date the package was collected from the carrier (Collection scenario)" }, "completionDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Effective delivery date amended by the provider" }, "deliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Is the date at which the shipment was completed (customer has taken ownership of the package)" }, "description": { "example": "Cartridges for Ink Ltd", "type": "string", "description": "Description of the shipment. It could be the same as the description of the shipment specification." }, "expectedDeliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "The date that the shipment will be delivered" }, "name": { "example": "Shipment", "type": "string", "description": "Name of the shipment. It could be the same as the name of the shipment specification." }, "requestedDeliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "The date requester by the sender for shipment delivery" }, "state": { "example": "labelPrinted", "type": "string", "description": "The current status of the shipment." }, "attachment": { "type": "array", "items": { "$ref": "#/definitions/AttachmentRefOrValue" }, "description": "Attachments that may be of relevance to this shipment, such as shippingLabels, Signature or photos of the delivery\r\n" }, "externalIdentifier": { "type": "array", "items": { "$ref": "#/definitions/ExternalIdentifier" }, "description": "An identification of an entity that is owned by or originates in a software system different from the current system, for example a ProductOrder handed off from a commerce platform into an order handling system. The structure identifies the system itself, the nature of the entity within the system (e.g. class name) and the unique ID of the entity within the system. It is anticipated that multiple external IDs can be held for a single entity, e.g. if the entity passed through multiple systems on the way to the current system. In this case the consumer is expected to sequence the IDs in the array in reverse order of provenance, i.e. most recent system first in the list." }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipment" }, "paymentMethod": { "$ref": "#/definitions/PaymentMethodRef", "description": "Payment method to be used when delivering the package(e.g.: cash, credit card, ). Structure including at least attribute name. Notice that the use of a voucher can be managed as a specific methodtype, where he voucher code can be passed as value." }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the package. E.g. warehouse or shop location" }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the package. E.g. customer home address" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "A list of parties which are involved in this shipment and the role they are playing" }, "relatedShipment": { "type": "array", "items": { "$ref": "#/definitions/RelatedShipment" }, "description": "A list of existing shipments that has some form of correlation with the given shipment" }, "shipmentCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values" }, "shipmentItem": { "type": "array", "items": { "$ref": "#/definitions/ShipmentItem" }, "description": "List of items that are part of the shipment (parcel/package)" }, "shipmentPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipment price" }, "shipmentSpecification": { "$ref": "#/definitions/ShipmentSpecificationRefOrValue", "description": "A set of characteristics to describe the shipment" }, "shipmentTracking": { "$ref": "#/definitions/ShipmentTrackingRef", "description": "A reference number usually provided by the delivery partner(carrier) used to identify and track shipments across the delivery network" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "Shipping instructions, usually relevant for the carrier." }, "weight": { "$ref": "#/definitions/Quantity", "description": "Weight of the shipping package/parcel" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShipmentItem": { "type": "object", "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f789", "type": "string", "description": "Identifier of the individual shipment line item" }, "quantity": { "example": "10 units", "type": "string", "description": "Quantity the individual shipment line item" }, "sku": { "example": "UGG-BB-PUR-06", "type": "string", "description": "SKU (Stock Keeping Unit) is a unique code that you use to identify every inventory item in your warehouse" }, "action": { "$ref": "#/definitions/ShipmentItemActionType", "description": "The action to be carried out on the shipment item. Can be: add, modify, delete, noChange" }, "characteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values that define the test run" }, "externalIdentifier": { "type": "array", "items": { "$ref": "#/definitions/ExternalIdentifier" }, "description": "An identification of an entity that is owned by or originates in a software system different from the current system, for example a ProductOrder handed off from a commerce platform into an order handling system. The structure identifies the system itself, the nature of the entity within the system (e.g. class name) and the unique ID of the entity within the system. It is anticipated that multiple external IDs can be held for a single entity, e.g. if the entity passed through multiple systems on the way to the current system. In this case the consumer is expected to sequence the IDs in the array in reverse order of provenance, i.e. most recent system first in the list." }, "product": { "$ref": "#/definitions/ProductRefOrValue", "description": "This data structure captures the product information." }, "productReservationRef": { "$ref": "#/definitions/ReserveProductStockRef" }, "productStockRef": { "$ref": "#/definitions/ProductStockRef" }, "shipmentItemPrice": { "$ref": "#/definitions/Price", "description": "Item price details" }, "weight": { "$ref": "#/definitions/Quantity", "description": "Weight of the shipping item package/parcel" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShipmentItemActionType": { "type": "string", "description": "action to be performed on the shipment item", "enum": [ "add", "modify", "delete", "noChange" ] }, "ShipmentRef": { "type": "object", "description": "Shipment reference", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ShipmentRefOrValue": { "type": "object", "description": "A shipment defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the shipment entity and not the related ShipmentRefOrValue class itself", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "collectionDate": { "example": "2020-11-18T08:00:00Z", "type": "string", "format": "date-time", "description": "The date the package was collected from the carrier (Collection scenario)" }, "completionDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Effective delivery date amended by the provider" }, "deliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Is the date at which the shipment was completed (customer has taken ownership of the package)" }, "description": { "example": "Cartridges for Ink Ltd", "type": "string", "description": "Description of the shipment. It could be the same as the description of the shipment specification." }, "expectedDeliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "The date that the shipment will be delivered" }, "name": { "type": "string", "description": "Name of the related entity." }, "requestedDeliveryDate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "The date requester by the sender for shipment delivery" }, "state": { "example": "labelPrinted", "type": "string", "description": "The current status of the shipment." }, "attachment": { "type": "array", "items": { "$ref": "#/definitions/AttachmentRefOrValue" }, "description": "Attachments that may be of relevance to this shipment, such as shippingLabels, Signature or photos of the delivery\r\n" }, "externalIdentifier": { "type": "array", "items": { "$ref": "#/definitions/ExternalIdentifier" }, "description": "An identification of an entity that is owned by or originates in a software system different from the current system, for example a ProductOrder handed off from a commerce platform into an order handling system. The structure identifies the system itself, the nature of the entity within the system (e.g. class name) and the unique ID of the entity within the system. It is anticipated that multiple external IDs can be held for a single entity, e.g. if the entity passed through multiple systems on the way to the current system. In this case the consumer is expected to sequence the IDs in the array in reverse order of provenance, i.e. most recent system first in the list." }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipment" }, "paymentMethod": { "$ref": "#/definitions/PaymentMethodRef", "description": "Payment method to be used when delivering the package(e.g.: cash, credit card, ). Structure including at least attribute name. Notice that the use of a voucher can be managed as a specific methodtype, where he voucher code can be passed as value." }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the package. E.g. warehouse or shop location" }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the package. E.g. customer home address" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "A list of parties which are involved in this shipment and the role they are playing" }, "relatedShipment": { "type": "array", "items": { "$ref": "#/definitions/RelatedShipment" }, "description": "A list of existing shipments that has some form of correlation with the given shipment" }, "shipmentCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values" }, "shipmentItem": { "type": "array", "items": { "$ref": "#/definitions/ShipmentItem" }, "description": "List of items that are part of the shipment (parcel/package)" }, "shipmentPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipment price" }, "shipmentSpecification": { "$ref": "#/definitions/ShipmentSpecificationRefOrValue", "description": "A set of characteristics to describe the shipment" }, "shipmentTracking": { "$ref": "#/definitions/ShipmentTrackingRef", "description": "A reference number usually provided by the delivery partner(carrier) used to identify and track shipments across the delivery network" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "Shipping instructions, usually relevant for the carrier." }, "weight": { "$ref": "#/definitions/Quantity", "description": "Weight of the shipping package/parcel" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "ShipmentSpecification": { "type": "object", "description": "Definition of the nature of a Shipment. For example, could be a standard ground delivery, overnight express with signature required by an adult, etc.", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "description": { "example": "Airmail delivery", "type": "string", "description": "Description of this REST resource" }, "isBundle": { "example": true, "type": "boolean", "description": "isBundle determines whether an ShipmentSpecification represents a single ShipmentSpecification (false), or a bundle of ShipmentSpecification (true)." }, "lastUpdate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Date and time of the last update of this REST resource" }, "lifecycleStatus": { "example": "active", "type": "string", "description": "Used to indicate the current lifecycle status of this catalog item" }, "name": { "example": "Shipment Spec", "type": "string", "description": "Name given to this REST resource" }, "version": { "example": "4.0.1", "type": "string", "description": "Entity specification version" }, "attachment": { "type": "array", "items": { "$ref": "#/definitions/AttachmentRefOrValue" }, "description": "Attachments that may be of relevance to this specification, such as picture, document, media\r\n" }, "constraint": { "type": "array", "items": { "$ref": "#/definitions/ConstraintRef" }, "description": "This is a list of constraint references applied to this specification\r\n" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedParty" }, "description": "Parties who manage or otherwise have an interest in this shipment specification" }, "shipmentSpecRelationship": { "type": "array", "items": { "$ref": "#/definitions/ShipmentSpecificationRelationship" }, "description": "Relationship to another shipment specification, might be dependency, substitution, etc.\r\n" }, "shipmentSpecificationCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/CharacteristicSpecification" }, "description": "List of characteristics that the shipment can take" }, "targetShipmentSchema": { "$ref": "#/definitions/TargetShipmentSchema", "description": "Pointer to a schema that defines the target shipment" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period for which this REST resource is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShipmentSpecificationRef": { "type": "object", "description": "Shipment specification reference", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ShipmentSpecificationRefOrValue": { "type": "object", "description": "A shipment specification defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the shipment specification entity and not the related ShipmentSpecificationRefOrValue class itself", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "description": { "example": "Airmail delivery", "type": "string", "description": "Description of this REST resource" }, "isBundle": { "example": true, "type": "boolean", "description": "isBundle determines whether an ShipmentSpecification represents a single ShipmentSpecification (false), or a bundle of ShipmentSpecification (true)." }, "lastUpdate": { "example": "2020-11-20T08:00:00Z", "type": "string", "format": "date-time", "description": "Date and time of the last update of this REST resource" }, "lifecycleStatus": { "example": "active", "type": "string", "description": "Used to indicate the current lifecycle status of this catalog item" }, "name": { "type": "string", "description": "Name of the related entity." }, "version": { "example": "4.0.1", "type": "string", "description": "Entity specification version" }, "attachment": { "type": "array", "items": { "$ref": "#/definitions/AttachmentRefOrValue" }, "description": "Attachments that may be of relevance to this specification, such as picture, document, media\r\n" }, "constraint": { "type": "array", "items": { "$ref": "#/definitions/ConstraintRef" }, "description": "This is a list of constraint references applied to this specification\r\n" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedParty" }, "description": "Parties who manage or otherwise have an interest in this shipment specification" }, "shipmentSpecRelationship": { "type": "array", "items": { "$ref": "#/definitions/ShipmentSpecificationRelationship" }, "description": "Relationship to another shipment specification, might be dependency, substitution, etc.\r\n" }, "shipmentSpecificationCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/CharacteristicSpecification" }, "description": "List of characteristics that the shipment can take" }, "targetShipmentSchema": { "$ref": "#/definitions/TargetShipmentSchema", "description": "Pointer to a schema that defines the target shipment" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period for which this REST resource is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } } }, "ShipmentSpecificationRelationship": { "type": "object", "description": "A migration, substitution, dependency or exclusivity relationship between/among entity specifications.", "required": [ "relationshipType" ], "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "The name given to the target entity specification instance" }, "relationshipType": { "type": "string", "description": "Type of relationship such as migration, substitution, dependency, exclusivity" }, "role": { "type": "string", "description": "The association role for this entity specification" }, "associationSpec": { "$ref": "#/definitions/AssociationSpecificationRef", "description": "A specification for an association used by this relationship\r\n" }, "validFor": { "$ref": "#/definitions/TimePeriod", "description": "The period for which this REST resource is valid" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShipmentTrackingRef": { "type": "object", "description": "ShipmentTracking reference", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "name": { "type": "string", "description": "Name of the related entity." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" }, "@referredType": { "type": "string", "description": "The actual type of the target instance when needed for disambiguation." } }, "required": [ "id" ] }, "ShippingInstruction": { "type": "object", "description": "Instructions and details for the carrier", "properties": { "id": { "type": "string", "description": "unique identifier" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "carrierId": { "example": "1010123", "type": "string", "description": "The carrier identifier" }, "carrierName": { "example": "On Time Deliveries Ltd", "type": "string", "description": "The carrier name" }, "carrierServiceCode": { "example": "XH545554533GB", "type": "string", "description": "The service code used by the carrier to ship the package, royal mail ground, royal mail first class, etc" }, "deliveryAttempts": { "example": 3, "type": "integer", "description": "Shipping delivery attempts that should be performed" }, "deliverySpeed": { "example": "SameDay", "type": "string", "description": "Shipping delivery speed, same day, next day, next business day, etc" }, "labelMessage": { "example": "FAO Ink Industries", "type": "string", "description": "Shipping delivery message label" }, "packageType": { "example": "Bottle, gas", "type": "string", "description": "The type of packaging" }, "receiptConfirmation": { "example": "signature", "type": "string", "description": "Delivery confirmation required for the shipment (none, signature, over18Signature)" }, "shippingType": { "example": "large_package", "type": "string", "description": "The shipping type, e.g. thick_envelope, small_flat_rate_box, large_package, etc." }, "signatureRequired": { "example": "true", "type": "boolean" }, "warehouseId": { "example": "wh12345", "type": "string", "description": "The identification of the warehouse that the shipment is being shipped from." }, "deliveryTimeSlot": { "example": "12-4pm", "$ref": "#/definitions/TimePeriod", "description": "Shipping delivery time slot" }, "instructionCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "Additional shipping characteristics that maybe specific to one or another carrier" }, "insuredValue": { "$ref": "#/definitions/Money", "description": "Shipping delivery value" }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipment item" }, "signatureRequiredBy": { "$ref": "#/definitions/SignatureRequiredByType" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShippingOrder": { "type": "object", "description": "A Shipping Order is a document used by a business to specify what items are to be transferred from a storage location or warehouse to which person and to which new location. A Shipping Order can typically be sent along with a shipment of goods so that the person receiving them can verify that the document correctly reflects the items that they actually received.", "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f123", "type": "string", "description": "Identifier of the Shipping Order" }, "href": { "example": "http://host/Attachment/4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "description": "Shipping Order unique reference" }, "creationDate": { "example": "2020-11-10T08:00:00Z", "type": "string", "format": "date-time", "description": "Date of the Shipping Order" }, "lastUpdateDate": { "example": "2020-11-10T08:00:00Z", "type": "string", "format": "date-time", "description": "Date of the Shipping Order" }, "status": { "example": "active", "type": "string", "description": "status of shipping order e.g \"active\" , \"savedForLater\"" }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipping shipment" }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the item. E.g. warehouse or shop location. The location can be specified at the shipping order level or at the shipping order item level if multiple sources are specified part of the same shipping order." }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the item. E.g. customer home address. The location can be specified at the shipping order level or at the shipping order item level if multiple destinations are specified part of the same shipping order." }, "productOrder": { "$ref": "#/definitions/ProductOrderRef", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "An existing related party that has some form of correlation with the given shipping order. It can be recipient, payer, etc." }, "relatedShippingOrder": { "$ref": "#/definitions/RelatedShippingOrder", "description": "An existing shipping order that has some form of correlation with the given shipping order" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "shippingOrderCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values" }, "shippingOrderItem": { "type": "array", "items": { "$ref": "#/definitions/ShippingOrderItem" }, "description": "A list of shipping order items. Each shipping order item has a corresponding Shipment(e.g. parcel) which has one or multiple products in it" }, "shippingOrderOffering": { "$ref": "#/definitions/ProductOfferingRef", "description": "Shipping order can have a corresponding entry in the product catalog (product offering)" }, "shippingOrderPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipping Order price" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShippingOrder_Create": { "type": "object", "description": "A Shipping Order is a document used by a business to specify what items are to be transferred from a storage location or warehouse to which person and to which new location. A Shipping Order can typically be sent along with a shipment of goods so that the person receiving them can verify that the document correctly reflects the items that they actually received.\nSkipped properties: id,href,creationDate,lastUpdateDate", "required": [ "shippingOrderItem" ], "properties": { "status": { "example": "active", "type": "string", "description": "status of shipping order e.g \"active\" , \"savedForLater\"" }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipping shipment" }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the item. E.g. warehouse or shop location. The location can be specified at the shipping order level or at the shipping order item level if multiple sources are specified part of the same shipping order." }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the item. E.g. customer home address. The location can be specified at the shipping order level or at the shipping order item level if multiple destinations are specified part of the same shipping order." }, "productOrder": { "$ref": "#/definitions/ProductOrderRef", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "An existing related party that has some form of correlation with the given shipping order. It can be recipient, payer, etc." }, "relatedShippingOrder": { "$ref": "#/definitions/RelatedShippingOrder", "description": "An existing shipping order that has some form of correlation with the given shipping order" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "shippingOrderCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values" }, "shippingOrderItem": { "type": "array", "items": { "$ref": "#/definitions/ShippingOrderItem" }, "minItems": 1, "description": "A list of shipping order items. Each shipping order item has a corresponding Shipment(e.g. parcel) which has one or multiple products in it" }, "shippingOrderOffering": { "$ref": "#/definitions/ProductOfferingRef", "description": "Shipping order can have a corresponding entry in the product catalog (product offering)" }, "shippingOrderPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipping Order price" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShippingOrder_Update": { "type": "object", "description": "A Shipping Order is a document used by a business to specify what items are to be transferred from a storage location or warehouse to which person and to which new location. A Shipping Order can typically be sent along with a shipment of goods so that the person receiving them can verify that the document correctly reflects the items that they actually received.\nSkipped properties: id,href,creationDate,lastUpdateDate", "properties": { "status": { "example": "active", "type": "string", "description": "status of shipping order e.g \"active\" , \"savedForLater\"" }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this shipping shipment" }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the item. E.g. warehouse or shop location. The location can be specified at the shipping order level or at the shipping order item level if multiple sources are specified part of the same shipping order." }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the item. E.g. customer home address. The location can be specified at the shipping order level or at the shipping order item level if multiple destinations are specified part of the same shipping order." }, "productOrder": { "$ref": "#/definitions/ProductOrderRef", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "An existing related party that has some form of correlation with the given shipping order. It can be recipient, payer, etc." }, "relatedShippingOrder": { "$ref": "#/definitions/RelatedShippingOrder", "description": "An existing shipping order that has some form of correlation with the given shipping order" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "The product order for which the shipping order is created, if supplied as input the attribute id must be populated" }, "shippingOrderCharacteristic": { "type": "array", "items": { "$ref": "#/definitions/Characteristic" }, "description": "List of characteristics with values" }, "shippingOrderItem": { "type": "array", "items": { "$ref": "#/definitions/ShippingOrderItem" }, "description": "A list of shipping order items. Each shipping order item has a corresponding Shipment(e.g. parcel) which has one or multiple products in it" }, "shippingOrderOffering": { "$ref": "#/definitions/ProductOfferingRef", "description": "Shipping order can have a corresponding entry in the product catalog (product offering)" }, "shippingOrderPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipping Order price" }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShippingOrderItem": { "type": "object", "description": "A list of shipping order items", "required": [ "id", "action" ], "properties": { "id": { "example": "4aafacbd-11ff-4dc8-b445-305f2215715f", "type": "string", "description": "Identifier of the Shipping Order Item" }, "href": { "type": "string", "format": "uri", "description": "Hyperlink reference" }, "quantity": { "example": "10 units", "type": "string", "description": "Quantity the individual shipment line item" }, "status": { "example": "active", "type": "string", "description": "status of shipping order item. e.g \"active\" , \"savedForLater\"" }, "action": { "$ref": "#/definitions/ShippingOrderItemActionType", "description": "The action to be carried out on the Product. Can be: add, modify, delete, noChange" }, "placeFrom": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Source location of the item. E.g. warehouse or shop location" }, "placeTo": { "$ref": "#/definitions/RelatedPlaceRefOrValue", "description": "Destination of the item. E.g. customer home address. " }, "product": { "$ref": "#/definitions/ProductRef", "description": "The product for which the shipping order is created, if supplied as input the attribute id must be populated" }, "productOffering": { "$ref": "#/definitions/ProductOfferingRef", "description": "Item has a corresponding offering in the product catalog." }, "productOrderItem": { "$ref": "#/definitions/ProductOrderItemRef", "description": "The product order item for which the shipping order is created, if supplied as input the attribute id must be populated" }, "relatedParty": { "type": "array", "items": { "$ref": "#/definitions/RelatedPartyWithContactInfo" }, "description": "A party which is involved in this shipment and the role they are playing and address. In case of shipping to addresses where a geo location is needed than then PlaceTo,PlaceFrom can be used." }, "shipment": { "$ref": "#/definitions/ShipmentRefOrValue", "description": "A set of goods to be shipped" }, "shippingInstruction": { "$ref": "#/definitions/ShippingInstruction", "description": "Shipping instructions, usually relevant for the carrier." }, "shippingOrderItemOffering": { "$ref": "#/definitions/ProductOfferingRef", "description": "Each shipping order item can have a corresponding product offer in the product catalog." }, "shippingOrderItemPrice": { "$ref": "#/definitions/ProductPrice", "description": "Shipping Order Item price. The price of shipping this item. It depends if there is a ShippingOrder level price or per each individual item." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class" }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class Extensible name" } } }, "ShippingOrderItemActionType": { "type": "string", "description": "action to be performed on the shipping order item", "enum": [ "add", "modify", "delete", "noChange" ] }, "SignatureRequiredByType": { "type": "string", "description": "Possible values for the signature requirement upon receiving the shipment", "enum": [ "adult", "receiver" ] }, "TargetProductSchema": { "type": "object", "description": "The reference object to the schema and type of target product which is described by product specification", "required": [ "@schemaLocation", "@type" ], "properties": { "@schemaLocation": { "type": "string", "format": "uri", "description": "This field provides a link to the schema describing the target product" }, "@type": { "type": "string", "description": "Class type of the target product" } } }, "TargetShipmentSchema": { "type": "object", "description": "The reference object to the schema and type of target shipment which is described by shipment specification", "required": [ "@schemaLocation", "@type" ], "properties": { "@schemaLocation": { "type": "string", "description": "This field provides a link to the schema describing the target shipment\r\n" }, "@type": { "type": "string", "description": "Class type of the target shipment" } } }, "TimePeriod": { "type": "object", "description": "A period of time, either as a deadline (endDateTime only) a startDateTime only, or both", "properties": { "endDateTime": { "example": "1985-04-12T23:20:50.52Z", "type": "string", "format": "date-time", "description": "End of the time period, using IETC-RFC-3339 format" }, "startDateTime": { "example": "1985-04-12T23:20:50.52Z", "type": "string", "format": "date-time", "description": "Start of the time period, using IETC-RFC-3339 format" } } }, "EventSubscription": { "type": "object", "description": "Sets the communication endpoint address the service instance must use to deliver notification information", "required": [ "id", "callback" ], "properties": { "id": { "type": "string", "description": "Id of the listener" }, "callback": { "type": "string", "description": "The callback being registered." }, "query": { "type": "string", "description": "additional data to be passed" } } }, "EventSubscriptionInput": { "type": "object", "description": "Sets the communication endpoint address the service instance must use to deliver notification information", "required": [ "callback" ], "properties": { "callback": { "type": "string", "description": "The callback being registered." }, "query": { "type": "string", "description": "additional data to be passed" } } }, "ShippingOrderCreateEvent": { "type": "object", "description": "The notification data structure", "properties": { "event": { "description": "The event payload linked to the involved resource object", "$ref": "#/definitions/ShippingOrderCreateEventPayload" }, "eventId": { "type": "string", "description": "The identifier of the notification." }, "eventTime": { "type": "string", "format": "date-time", "description": "Time of the event occurrence." }, "eventType": { "type": "string", "description": "The type of the notification." }, "correlationId": { "type": "string", "description": "The correlation id for this event." }, "domain": { "type": "string", "description": "The domain of the event." }, "title": { "type": "string", "description": "The title of the event." }, "description": { "type": "string", "description": "An explnatory of the event." }, "priority": { "type": "string", "description": "A priority." }, "timeOcurred": { "type": "string", "format": "date-time", "description": "The time the event occured." } } }, "ShippingOrderCreateEventPayload": { "type": "object", "description": "The event data structure", "properties": { "shippingOrder": { "description": "The involved resource data for the event", "$ref": "#/definitions/ShippingOrder" } } }, "ShippingOrderAttributeValueChangeEvent": { "type": "object", "description": "The notification data structure", "properties": { "eventId": { "type": "string", "description": "The identifier of the notification." }, "eventTime": { "type": "string", "format": "date-time", "description": "Time of the event occurrence." }, "eventType": { "type": "string", "description": "The type of the notification." }, "correlationId": { "type": "string", "description": "The correlation id for this event." }, "domain": { "type": "string", "description": "The domain of the event." }, "title": { "type": "string", "description": "The title of the event." }, "description": { "type": "string", "description": "An explnatory of the event." }, "priority": { "type": "string", "description": "A priority." }, "timeOcurred": { "type": "string", "format": "date-time", "description": "The time the event occured." }, "fieldPath": { "type": "string", "description": "The path identifying the object field concerned by this notification." }, "event": { "description": "The event payload linked to the involved resource object", "$ref": "#/definitions/ShippingOrderAttributeValueChangeEventPayload" } } }, "ShippingOrderAttributeValueChangeEventPayload": { "type": "object", "description": "The event data structure", "properties": { "shippingOrder": { "description": "The involved resource data for the event", "$ref": "#/definitions/ShippingOrder" } } }, "ShippingOrderDeleteEvent": { "type": "object", "description": "The notification data structure", "properties": { "event": { "description": "The event payload linked to the involved resource object", "$ref": "#/definitions/ShippingOrderDeleteEventPayload" }, "eventId": { "type": "string", "description": "The identifier of the notification." }, "eventTime": { "type": "string", "format": "date-time", "description": "Time of the event occurrence." }, "eventType": { "type": "string", "description": "The type of the notification." }, "correlationId": { "type": "string", "description": "The correlation id for this event." }, "domain": { "type": "string", "description": "The domain of the event." }, "title": { "type": "string", "description": "The title of the event." }, "description": { "type": "string", "description": "An explnatory of the event." }, "priority": { "type": "string", "description": "A priority." }, "timeOcurred": { "type": "string", "format": "date-time", "description": "The time the event occured." } } }, "ShippingOrderDeleteEventPayload": { "type": "object", "description": "The event data structure", "properties": { "shippingOrder": { "description": "The involved resource data for the event", "$ref": "#/definitions/ShippingOrder" } } }, "ShippingOrderStateChangeEvent": { "type": "object", "description": "The notification data structure", "properties": { "event": { "description": "The event payload linked to the involved resource object", "$ref": "#/definitions/ShippingOrderStateChangeEventPayload" }, "eventId": { "type": "string", "description": "The identifier of the notification." }, "eventTime": { "type": "string", "format": "date-time", "description": "Time of the event occurrence." }, "eventType": { "type": "string", "description": "The type of the notification." }, "correlationId": { "type": "string", "description": "The correlation id for this event." }, "domain": { "type": "string", "description": "The domain of the event." }, "title": { "type": "string", "description": "The title of the event." }, "description": { "type": "string", "description": "An explnatory of the event." }, "priority": { "type": "string", "description": "A priority." }, "timeOcurred": { "type": "string", "format": "date-time", "description": "The time the event occured." } } }, "ShippingOrderStateChangeEventPayload": { "type": "object", "description": "The event data structure", "properties": { "shippingOrder": { "description": "The involved resource data for the event", "$ref": "#/definitions/ShippingOrder" } } }, "ShippingOrderInformationRequiredEvent": { "type": "object", "description": "The notification data structure", "properties": { "eventId": { "type": "string", "description": "The identifier of the notification." }, "eventTime": { "type": "string", "format": "date-time", "description": "Time of the event occurrence." }, "eventType": { "type": "string", "description": "The type of the notification." }, "correlationId": { "type": "string", "description": "The correlation id for this event." }, "domain": { "type": "string", "description": "The domain of the event." }, "title": { "type": "string", "description": "The title of the event." }, "description": { "type": "string", "description": "An explnatory of the event." }, "priority": { "type": "string", "description": "A priority." }, "timeOcurred": { "type": "string", "format": "date-time", "description": "The time the event occured." }, "fieldPath": { "type": "string", "description": "The path identifying the object field concerned by this notification." }, "event": { "description": "The event payload linked to the involved resource object", "$ref": "#/definitions/ShippingOrderInformationRequiredEventPayload" } } }, "ShippingOrderInformationRequiredEventPayload": { "type": "object", "description": "The event data structure", "properties": { "shippingOrder": { "description": "The involved resource data for the event", "$ref": "#/definitions/ShippingOrder" } } }, "Error": { "description": "Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)", "type": "object", "required": [ "code", "reason" ], "properties": { "code": { "type": "string", "description": "Application relevant detail, defined in the API or a common list." }, "reason": { "type": "string", "description": "Explanation of the reason for the error which can be shown to a client user." }, "message": { "type": "string", "description": "More details and corrective actions related to the error which can be shown to a client user." }, "status": { "type": "string", "description": "HTTP Error code extension" }, "referenceError": { "type": "string", "format": "uri", "description": "URI of documentation describing the error." }, "@baseType": { "type": "string", "description": "When sub-classing, this defines the super-class." }, "@schemaLocation": { "type": "string", "format": "uri", "description": "A URI to a JSON-Schema file that defines additional attributes and relationships" }, "@type": { "type": "string", "description": "When sub-classing, this defines the sub-class entity name." } } } } }