Skip to main content
POST
/
{id}
/
credit
Update offer credit amount
curl --request POST \
  --url https://api.sibipro.com/offers/{id}/credit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "creditAmount": 10000
}
'
{
  "success": true,
  "creditAmount": 10000,
  "updatedAt": "2024-01-20T12:00:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.sibipro.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the offer to update

Body

application/json
creditAmount
integer
required

Credit amount in cents (e.g., 10000 = $100.00). Must be a non-negative integer.

Required range: x >= 0
Example:

10000

Response

Offer credit amount updated successfully

success
boolean
required

Whether the credit amount was updated successfully

Example:

true

creditAmount
integer
required

The credit amount that was persisted, in cents. Callers should verify this matches their request.

Required range: x >= 0
Example:

10000

updatedAt
string<date-time>
required

Timestamp when the credit amount was updated

Example:

"2024-01-20T12:00:00Z"