Orders
Orders endpoints helps to store the customer information and associated data. The request should be submitted on JSON format from the Deamon application side. Order must be mapped with any one solution and if the order can be mapped with anyone entities such as DataFiles/DataRecords/Downloads and the status is submitted shouldn’t delete the order. There are four types of endpoints which helps to store the orders into Fusion.
Post Order
Http Method : Post
URL : /api/FusionApi/Orders
Create an Order using SolutionID.
Example JSON payload
{
"solutionsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"usageId": 0,
"subjectHandle": "string",
"quantity": 0
}
Responses
The below tabs show the list of expected response from post order endpoint.
Response parameter description
OrderCreateResponse
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Post - Order with DataRecords
Http Method : DataRecords
URL : /api/FusionApi/Orders
Post a request to create an order with the specific data records id. This endpoint accepts list of valid DataRecord Ids created earlier and not associated with any other order. On success, all the DataRecord Ids are associated with the new order.
Example JSON payload
{
"solutionsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"usage": 0,
"subjectHandle": "string",
"quantity": 0,
"dataRecords": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"dataRecordSubjectHandle": "string"
}
Responses
The below tabs show the list of expected response from post order with data records endpoint.
Response parameter description
OrderCreateResponse
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Patch - Order Status
Http Method : Patch
URL : /api/FusionApi/Orders
Use patch method endpoint to update the order status.
Request input parameter
Example JSON payload
{
"status": "string"
}
Responses
The below tabs show the list of expected response from update order status endpoint.
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Get order by OrderId
Http Method : Get
URL : /api/FusionApi/Orders
Get method endpoint returns the order information with specific id.
Request Body Parameter
Responses
The below tabs show the list of expected response from update order status endpoint.
Response parameter description
OrderResponse
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Delete Order
Http Method : Delete
URL : /api/FusionApi/Orders
Delete method endpoint deletes the order in Created status.
Request Body Parameter
Responses
The below tabs show the list of expected response from delete order endpoint.
Response parameter descriptions
DataRecordCreateResponse
Response parameter description
Response parameter description
Response parameter description
Response parameter description
Response parameter description