Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview

Cancel offer

Cancels an offer. The offer must not already be in a resolved status (canceled, buyout accepted, order placed, or expired).

POST/{id}/cancel
Path parameters
idstringrequired
The ID of the offer to cancel
Responses
200Offer canceled successfully
offerIdstringrequired
Unique identifier for the canceled offer
statusstringrequired
Status of the offer after cancellation
canceledAtstring<date-time>required
Timestamp when the offer was canceled
400Bad request - Offer is not in a cancelable state
codestringrequired
Error code indicating the type of error
messagestringrequired
Human-readable error message explaining what went wrong
detailsobject[]
Detailed validation errors when applicable
Show properties
Array of object
fieldstringrequired
errorstringrequired
401Unauthorized - Missing or invalid authentication
codestringrequired
Error code indicating the type of error
messagestringrequired
Human-readable error message explaining what went wrong
detailsobject[]
Detailed validation errors when applicable
Show properties
Array of object
fieldstringrequired
errorstringrequired
403Forbidden - Caller can view this offer but is not allowed to cancel it
codestringrequired
Error code indicating the type of error
messagestringrequired
Human-readable error message explaining what went wrong
detailsobject[]
Detailed validation errors when applicable
Show properties
Array of object
fieldstringrequired
errorstringrequired
404Not found - Offer does not exist or caller is not allowed to view it
codestringrequired
Error code indicating the type of error
messagestringrequired
Human-readable error message explaining what went wrong
detailsobject[]
Detailed validation errors when applicable
Show properties
Array of object
fieldstringrequired
errorstringrequired
500Internal server error
codestringrequired
Error code indicating the type of error
messagestringrequired
Human-readable error message explaining what went wrong
detailsobject[]
Detailed validation errors when applicable
Show properties
Array of object
fieldstringrequired
errorstringrequired
Request
curl -X POST "https://api.sibipro.com/prod/offers/string/cancel"
Response
{
  "offerId": "offer-123",
  "status": "CANCELED",
  "canceledAt": "2024-01-20T12:00:00Z"
}