---
search:
  tags:
    - Operations
    - POST
seo:
  description: >-
    Accepts the buyout on an offer. The offer must be in "pending" or
    "awaiting_customer"… Reference for the POST /{id}/accept-buyout endpoint in
    the Offers API.
sidebar:
  label: Accept offer buyout
  badge: POST
title: Accept offer buyout
type: openapi-operation
---
Accepts the buyout on an offer. The offer must be in "pending" or "awaiting_customer" status.

`POST /{id}/accept-buyout`

**Responses**

- `200` — Offer buyout accepted successfully
- `400` — Bad request - Offer buyout could not be accepted
- `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 · offerBuyoutNotAllowed:

```json
{
  "code": "OFFER_BUYOUT_NOT_ALLOWED",
  "message": "Offer buyout cannot be accepted because it is in \"canceled\" status"
}
```

Response example, 400 · offerBuyoutAcceptanceError:

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

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"
}
```
