Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview

Update offer credit amount

Updates the credit amount on an offer. The offer must be in “pending” or “awaiting_customer” status.

POST/{id}/credit
Path parameters
idstringrequired
The ID of the offer to update
Request body
application/json
creditAmountintegerrequired
Credit amount in cents (e.g., 10000 = $100.00). Must be a non-negative integer.
min 0
Responses
200Offer credit amount updated successfully
successbooleanrequired
Whether the credit amount was updated successfully
creditAmountintegerrequired
The credit amount that was persisted, in cents. Callers should verify this matches their request.
min 0
updatedAtstring<date-time>required
Timestamp when the credit amount was updated
400Bad request - Offer credit could not be updated
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 update 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/credit" \
  -H "Content-Type: application/json" \
  -d '{
  "creditAmount": 10000
}'
Response
{
  "success": true,
  "creditAmount": 10000,
  "updatedAt": "2024-01-20T12:00:00Z"
}