HyperTrackDocs
Orders

Create Order Tasks

Creates tasks for an order. The tasks are created based on the provided request parameters. This endpoint is used to manage tasks associated with orders in the system.

POST
/orders/{order_handle}/tasks

Creates tasks for an order. The tasks are created based on the provided request parameters. This endpoint is used to manage tasks associated with orders in the system.

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

order_handle*string

Query Parameters

fulfillment_attempt?|

The attempt number for order fulfillment.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/orders/string/tasks" \  -H "Content-Type: application/json" \  -d '{    "tasks": [      {        "label": "string"      }    ]  }'
{  "tasks": [    {      "task_id": "b7e6f8c2-1d2a-4e3b-9c3d-2e5a6b7c8d9e",      "label": "order_summary",      "description": "Generate order summary for order 001",      "status": "created",      "priority": "high",      "created_at": "2023-10-01T12:00:00Z",      "updated_at": "2023-10-01T12:00:00Z"    },    {      "task_id": "a2f4c6e8-3b1d-4c2e-8f9a-1b2c3d4e5f6a",      "label": "order_billing_summary",      "description": "Generate billing summary for order 001",      "status": "created",      "priority": "medium",      "created_at": "2023-10-01T12:00:00Z",      "updated_at": "2023-10-01T12:00:00Z"    }  ]}
{  "detail": {},  "message": "string"}
{  "code": "order_not_found",  "title": "Order Not Found",  "detail": {    "description": "Order not found for handle <order_handle>"  }}
{  "detail": {    "<location>": {      "<field_name>": [        "string"      ]    }  },  "message": "string"}