---
title: "Delivery Attempt Failed"
method: POST
path: "/{tenant}/orders/{orderId}/queries/attempteddelivery"
tags: ["Attempted Delivery API", "publicly-accessible"]
---

# Delivery Attempt Failed

`POST /{tenant}/orders/{orderId}/queries/attempteddelivery`

## Request

- Base URL: `https://uk.api.just-eat.io`
- URL: `https://uk.api.just-eat.io/{tenant}/orders/{orderId}/queries/attempteddelivery`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/just-eat/apis/just-eat-api/docs/:tenant/orders/:orderId/queries/attempteddelivery/post.ts> (a function with typed inputs; its response is checked against the schema)

If the customer hasn't answered the door to collect the order, then an attempted delivery event can be created using this endpoint.

## Path parameters

- `tenant` string, required
- `orderId` string, required

## Headers

- `Authorization` string, required

## Request body

- CreateAttemptedDelivery
  - `ReasonCode` 'problem_with_address' | 'no_answer': The reason the attempted delivery event was created

## Response `200`

OK

## Other responses

- `400`: Bad Request - returned if providing invalid data such as an unacceptable reason code
- `401`: Unauthorized - consumer has not provided the necessary credentials
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/just-eat/apis/just-eat-api.md) - [All operations](https://skmtc.dev/just-eat/apis/just-eat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/just-eat/apis/just-eat-api/revisions/4b25c7d97a53?raw)
