---
title: "Declines a pending request or a waitlist place, giving back any seats it holds."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › customer

`POST /v1/stores/{store}/products/{product}/requests/{request}/decline`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `customer:write`

## Path parameters

- `store` (`declineProductRequest.path.store`; string, required) — The store's id.
- `product` (`declineProductRequest.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1
- `request` (`declineProductRequest.path.request`; string, required)
  - minLength 1

## Header parameters

- `Idempotency-Key` (`declineProductRequest.header.Idempotency-Key`; string, optional) — Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.
  - minLength 1; maxLength 255; pattern `^[\x21-\x7E]+$`

## Request body

_Optional._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/requests/<request>/decline' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/requests/<request>/decline';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/requests/<request>/decline"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Declines a pending request or a waitlist place, giving back any seats it holds.

#### Example

```json
{
  "id": "string",
  "product_id": "string",
  "customer_id": "string",
  "status": "string",
  "tier": {
    "id": "string",
    "name": "string",
    "rank": 0
  },
  "price_id": "string",
  "payment": "string",
  "hold_expires_at": "string",
  "quantity": 1,
  "order_item_id": "string",
  "grant_id": "string",
  "created_at": "string",
  "decided_at": "string",
  "closed_reason": "string",
  "customer": {
    "id": "string",
    "name": "string",
    "email": "string",
    "phone": "string",
    "erased": true
  },
  "answers": [
    {
      "question_id": "string",
      "value": true
    }
  ]
}
```

- `id` (`declineProductRequest.response.200.id`; string, required)
- `product_id` (`declineProductRequest.response.200.product_id`; string, required)
- `customer_id` (`declineProductRequest.response.200.customer_id`; string, required)
- `status` (`declineProductRequest.response.200.status`; string, required) — `pending` until the seller decides, `waitlisted` while it waits for a seat, then `approved` or `declined`.
- `tier` (`declineProductRequest.response.200.tier`; any of, required) — The tier asked for; null for none.
  - any of: `object`, `null`
- `price_id` (`declineProductRequest.response.200.price_id`; any of, required) — The price asked at.
  - any of: `string`, `null`
- `payment` (`declineProductRequest.response.200.payment`; any of, required) — A paid request's payment: `saved` while its card waits to be charged on approval, `held` while its total is held on the card, `charging` once approved, `due` from the buyer once a charge failed or found no card; null for a free one or once decided.
  - any of: `string`, `null`
- `hold_expires_at` (`declineProductRequest.response.200.hold_expires_at`; any of, required) — When a `held` request's card hold is released, closing it as expired unless decided first; null otherwise.
  - any of: `string`, `null`
- `quantity` (`declineProductRequest.response.200.quantity`; integer, required) — How many tickets it asks for.
  - min 1
- `order_item_id` (`declineProductRequest.response.200.order_item_id`; any of, required) — The order line that asked, or the one a promotion recorded; null while on a waitlist.
  - any of: `string`, `null`
- `grant_id` (`declineProductRequest.response.200.grant_id`; any of, required) — The grant an approval gave.
  - any of: `string`, `null`
- `created_at` (`declineProductRequest.response.200.created_at`; string, required)
- `decided_at` (`declineProductRequest.response.200.decided_at`; any of, required)
  - any of: `string`, `null`
- `closed_reason` (`declineProductRequest.response.200.closed_reason`; any of, required) — `expired` for a request declined because its card hold was released before anyone decided; null otherwise.
  - any of: `string`, `null`
- `customer` (`declineProductRequest.response.200.customer`; any of, required) — Who they are, `erased` once their details are wiped.
  - any of: `object`, `null`
- `answers` (`declineProductRequest.response.200.answers`; array<object>, required) — Their answers to the product's registration questions, in the questions' order; none without `customer:read`.
  - `question_id` (`declineProductRequest.response.200.answers.question_id`; string, required)
  - `value` (`declineProductRequest.response.200.answers.value`; any of, required)
    - any of: `boolean`, `string`, `array<string>`

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`declineProductRequest.response.default.type`; string, required)
  - format `uri`
- `title` (`declineProductRequest.response.default.title`; string, required)
- `status` (`declineProductRequest.response.default.status`; integer, required)
- `detail` (`declineProductRequest.response.default.detail`; string, required)
- `code` (`declineProductRequest.response.default.code`; string, optional)
- `context` (`declineProductRequest.response.default.context`; object, optional)
- `reached_core` (`declineProductRequest.response.default.reached_core`; boolean, optional)
- `core_answer` (`declineProductRequest.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/decline-product-request/index.md
