---
agentTools:
  projectIndex: https://developer.taskrabbit.com/llms.txt
---

# Create an Order

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Partner Public API — ep-v2",
    "description": "EP V1 and PAPI V1 endpoints for partner integrations",
    "version": "1.0.0",
    "contact": {}
  },
  "paths": {
    "/v2/orders": {
      "post": {
        "operationId": "EpV2OrdersController_createOrder",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderV2Dto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Idempotent repeat — order already exists",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "201": {
            "description": "Order created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "booked"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request — validation error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — missing or invalid JWT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Business partner not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Duplicate order conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Pricing error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "errorCode": {
                          "type": "string"
                        },
                        "errorMessage": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "error"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Create an Order",
        "tags": [
          "ep-v2"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "CreateOrderV2Dto": {
        "type": "object",
        "properties": {
          "externalOrderId": {
            "type": "string"
          },
          "businessId": {
            "type": "string"
          },
          "services": {
            "minItems": 1,
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "on_site": "#/components/schemas/CreateOnSiteServiceDto",
                "transport": "#/components/schemas/CreateLogisticsServiceDto",
                "moving": "#/components/schemas/CreateLogisticsServiceDto"
              }
            },
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CreateOnSiteServiceDto"
                },
                {
                  "$ref": "#/components/schemas/CreateLogisticsServiceDto"
                }
              ]
            }
          },
          "customerAddress": {
            "$ref": "#/components/schemas/EpV2AddressDto"
          },
          "customerContact": {
            "$ref": "#/components/schemas/ContactDto"
          },
          "accountingReference": {
            "type": "string",
            "nullable": true
          },
          "customerLocation": {
            "$ref": "#/components/schemas/LocationDto"
          },
          "notes": {
            "type": "string"
          },
          "hasAcceptedTaskrabbitPolicy": {
            "type": "boolean"
          }
        },
        "required": [
          "externalOrderId",
          "businessId",
          "services",
          "customerAddress",
          "customerContact"
        ]
      },
      "CreateOnSiteServiceDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "on_site"
            ]
          },
          "categoryId": {
            "type": "string",
            "enum": [
              "home services assembly",
              "home services mounting"
            ],
            "description": "The Taskrabbit service category for this on-site service. Only the values listed here are accepted."
          },
          "serviceWindowStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "serviceWindowEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string"
          },
          "orderLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderLineItemV2Dto"
            }
          },
          "serviceLevel": {
            "type": "string",
            "enum": [
              "standard",
              "threshold",
              "room-of-choice"
            ]
          },
          "totalQuantity": {
            "type": "number"
          },
          "totalWeight": {
            "type": "number"
          },
          "totalVolume": {
            "type": "number"
          },
          "totalEstimatedLaborTime": {
            "type": "number",
            "description": "Total estimated labor time in minutes"
          },
          "size": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "categoryId",
          "serviceWindowStartTime"
        ]
      },
      "OrderLineItemV2Dto": {
        "type": "object",
        "properties": {
          "serviceItemId": {
            "type": "string"
          },
          "pricingDescriptor": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "itemWeight": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "length": {
            "type": "number"
          },
          "width": {
            "type": "number"
          },
          "uomItemWeight": {
            "type": "string"
          },
          "uomDimension": {
            "type": "string"
          },
          "estimatedLaborTime": {
            "type": "number"
          }
        }
      },
      "CreateLogisticsServiceDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "transport",
              "moving"
            ]
          },
          "categoryId": {
            "type": "string"
          },
          "pickupAddress": {
            "$ref": "#/components/schemas/EpV2AddressDto"
          },
          "pickupWindowStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "pickupWindowEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "dropOffWindowStartTime": {
            "type": "string",
            "format": "date-time"
          },
          "dropOffWindowEndTime": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string"
          },
          "estimatedVolume": {
            "type": "string"
          },
          "pickupLocation": {
            "$ref": "#/components/schemas/LocationDto"
          },
          "orderLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderLineItemV2Dto"
            }
          },
          "serviceLevel": {
            "type": "string",
            "enum": [
              "standard",
              "threshold",
              "room-of-choice"
            ]
          },
          "totalQuantity": {
            "type": "number"
          },
          "totalWeight": {
            "type": "number"
          },
          "totalVolume": {
            "type": "number"
          },
          "totalEstimatedLaborTime": {
            "type": "number",
            "description": "Total estimated labor time in minutes"
          },
          "size": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "categoryId",
          "pickupAddress",
          "pickupWindowStartTime",
          "pickupWindowEndTime",
          "dropOffWindowStartTime"
        ]
      },
      "EpV2AddressDto": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "description": "State, province, or region"
          },
          "postalCode": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "addressLine2": {
            "type": "string"
          },
          "neighborhood": {
            "type": "string"
          }
        },
        "required": [
          "addressLine1",
          "city",
          "region",
          "postalCode",
          "country"
        ]
      },
      "LocationDto": {
        "type": "object",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/AddressDto"
          },
          "geo_point": {
            "$ref": "#/components/schemas/GeoPointDto"
          }
        },
        "required": [
          "address"
        ]
      },
      "AddressDto": {
        "type": "object",
        "properties": {
          "line_1": {
            "type": "string"
          },
          "line_2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          }
        },
        "required": [
          "line_1",
          "city",
          "region",
          "country",
          "postal_code"
        ]
      },
      "GeoPointDto": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number"
          },
          "lng": {
            "type": "number"
          }
        }
      },
      "ContactDto": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "firstName",
          "lastName",
          "phone"
        ]
      }
    }
  },
  "servers": [],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 168,
      "2": 87,
      "3": 243,
      "4": 213,
      "5": 190,
      "6": 230,
      "7": 90,
      "8": 47,
      "9": 56,
      "10": 134,
      "11": 153
    }
  }
}
```