---
search:
  tags:
    - Offers
    - POST
seo:
  description: >-
    Accepts an offer by placing orders for its included offering. Reference for
    the POST /offers/{id}/accept endpoint in the Sibi API.
sidebar:
  label: Accept offer
  badge: POST
title: Accept offer
type: openapi-operation
---
Accepts an offer by placing orders for its included offering.

`POST /offers/{id}/accept`

**Responses**

- `200` — Offer accepted successfully
- `400` — Bad request - Offer is not in an acceptable state
- `401` — Unauthorized - Missing or invalid authentication
- `403` — Forbidden - Caller can view this offer but is not allowed to accept it
- `404` — Not found - Offer does not exist or caller is not allowed to view it
- `500` — Internal server error

Response example, 200:

```json
{
  "success": true,
  "acceptedAt": "2024-01-20T12:00:00Z"
}
```

Response example, 400 · offerAcceptanceNotAllowed:

```json
{
  "code": "OFFER_ACCEPTANCE_NOT_ALLOWED",
  "message": "Offer cannot be accepted in its current status"
}
```

Response example, 400 · includedOfferingNotFound:

```json
{
  "code": "INCLUDED_OFFERING_NOT_FOUND",
  "message": "Offer has no included offering"
}
```

Response example, 400 · offerAcceptanceError:

```json
{
  "code": "OFFER_ACCEPTANCE_ERROR",
  "message": "Failed to accept offer"
}
```

Response example, 401:

```json
{
  "code": "UNAUTHORIZED",
  "message": "Missing authentication token"
}
```

Response example, 403 · insufficientScope:

```json
{
  "code": "INSUFFICIENT_SCOPE",
  "message": "The presented token is missing the `write:offers` scope, which this endpoint requires. Create a token with the scopes you need at https://developer.sibipro.com."
}
```

Response example, 403 · permissionDenied:

```json
{
  "code": "FORBIDDEN",
  "message": "User does not have permission to accept this offer"
}
```

Response example, 404:

```json
{
  "code": "OFFER_NOT_FOUND",
  "message": "Offer not found"
}
```

Response example, 500:

```json
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred"
}
```
