---
agentTools:
  projectIndex: https://quiver.readme.io/llms.txt
---

# /deliveries/{taskId}/statuses

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Task",
    "description": "Create and manage deliveries and store collections. For a collection, use the location's merchantLocationId and the QUIV_COL rate returned by /quotes. Store collection is stock-only in v1; select a location that has collection enabled and current stock for the full basket.",
    "version": "1.0"
  },
  "tags": [
    {
      "name": "TaskService"
    }
  ],
  "paths": {
    "/deliveries/{taskId}/statuses": {
      "post": {
        "operationId": "TaskService_CreateDeliveryStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/taskTaskStatusUpdate"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "$ref": "#/components/schemas/sharedTaskStatus"
                  },
                  "subvalue": {
                    "$ref": "#/components/schemas/sharedTaskSubstatus"
                  },
                  "note": {
                    "type": "string"
                  },
                  "productIdsToZeroAvailableInventory": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "tags": [
          "TaskService"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.quiver.london/task"
    }
  ],
  "components": {
    "schemas": {
      "protobufAny": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string"
          }
        },
        "additionalProperties": {}
      },
      "rpcStatus": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/protobufAny"
            }
          }
        }
      },
      "sharedTaskStatus": {
        "type": "string",
        "enum": [
          "NOT_STARTED",
          "READY_FOR_COLLECTION",
          "OUT_FOR_COLLECTION",
          "COLLECTED",
          "OUT_FOR_DELIVERY",
          "COMPLETED",
          "FAILED",
          "CANCELLED"
        ]
      },
      "sharedTaskSubstatus": {
        "type": "string",
        "enum": [
          "UNDELIVERABLE",
          "ATTEMPT"
        ]
      },
      "sharedUserGroup": {
        "type": "string",
        "enum": [
          "CUSTOMER",
          "MERCHANT",
          "QUIVER",
          "CONTROLLER"
        ]
      },
      "taskTaskStatusUpdate": {
        "type": "object",
        "properties": {
          "taskStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "userGroup": {
            "$ref": "#/components/schemas/sharedUserGroup"
          },
          "taskId": {
            "type": "integer",
            "format": "int32"
          },
          "value": {
            "$ref": "#/components/schemas/sharedTaskStatus"
          },
          "subvalue": {
            "$ref": "#/components/schemas/sharedTaskSubstatus"
          },
          "note": {
            "type": "string"
          }
        },
        "title": "In controller service this is used as the create request as well as the type"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 231,
      "2": 25,
      "3": 199,
      "4": 19,
      "5": 95,
      "6": 86,
      "7": 0,
      "8": 65,
      "9": 210,
      "10": 115,
      "11": 26
    }
  }
}
```