Skip to content
SIBISIBI Developers
Esc
↑↓navigate↵open⌘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
Authorization
AuthorizationBearer token · headerrequired

API token from the SIBI developer dashboard (developer.sibipro.com), sent as Authorization: Bearer <token>.

Scopes:write:offers
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
200

Offer 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

400

Bad 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
401

Unauthorized - 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
403

Forbidden - 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
404

Not 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
500

Internal 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 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "creditAmount": 10000
}'
Response
{
  "success": true,
  "creditAmount": 10000,
  "updatedAt": "2024-01-20T12:00:00Z"
}

Was this page helpful?