Cancel a Product Order
post
https://serverRoot/tmf-api/productOrderingManagement/v4.0.0.1.0/cancelProductOrder
This operation creates a CancelProductOrder entity.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json;charset=utf-8
Root Schema : schema
Type:
object
Request for cancellation of an existing product order.
Skipped properties: id, href, state, effectiveCancellationDate
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
cancellationReason: string
Reason why the order is cancelled.
-
productOrder(required): object
ProductOrderRef
ProductOrder (ProductOrder). The product order that the recommendation is related to.
-
requestedCancellationDate: string
(date-time)
Date when the customer wants the order to be cancelled.
Nested Schema : ProductOrderRef
Type:
object
ProductOrder (ProductOrder). The product order that the recommendation is related to.
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
Response
Supported Media Types
- application/json;charset=utf-8
201 Response
Created
Root Schema : Discriminator: @type
Type:
object
Discriminator: @type
Discriminator Values
Request for the cancellation of an existing product order.
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
cancellationReason: string
Reason why the order is cancelled.
-
effectiveCancellationDate: string
(date-time)
Date when the order is cancelled.
-
href: string
Hyperlink to access the cancellation request.
-
id: string
ID of the cancellation request (this is not an order id).
-
productOrder(required): object
ProductOrderRef
ProductOrder (ProductOrder). The product order that the recommendation is related to.
-
requestedCancellationDate: string
(date-time)
Date when the order was requested to be cancelled.
-
state: string
Allowed Values:
[ "acknowledged", "terminatedWithError", "inProgress", "done", "queued", "terminated", "skipped" ]
Possible values for the state of a task.
Nested Schema : ProductOrderRef
Type:
object
ProductOrder (ProductOrder). The product order that the recommendation is related to.
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
400 Response
Bad Request
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.
401 Response
Unauthorized
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.
403 Response
Forbidden
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.
405 Response
Method Not allowed
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.
409 Response
Conflict
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.
500 Response
Internal Server Error
Root Schema : Error
Type:
object
Used when an API throws an error. Typically, with an HTTP error response-code (3xx, 4xx, 5xx).
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error shown to a client user.
-
reason(required): string
Explanation of the reason for the error shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
state: string
HTTP error code extension.