Update a wallet program's settings
Only the fields matching the program’s own type are applied — points_* fields for a PointsProgram, credits_* for a CreditProgram.
PUT
/wallet_programs/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idintegerrequiredRequest body
application/jsonnamestringpoints_namestringpoints_minintegerpoints_durationstringpoints_dividerintegerpoints_divider_scopestringAllowed:
cart_totaltotalcredits_renewalstringAllowed:
manualautomaticcredits_reservebooleanResponses
200Updated wallet program
_linksHalLinksidintegertypestringAllowed:
pointscreditnamestringstatusstringAllowed:
activedeletedpoints_namestringDisplay name for points (e.g. "points", "coins").
points_minintegerMinimum points balance required to redeem.
points_durationstringHow long earned points remain valid, e.g. "1_year".
points_dividerintegerAmount of currency per point earned.
points_divider_scopestringAllowed:
cart_totaltotalcredits_renewalstringAllowed:
manualautomaticcredits_reservebooleancreated_onstring<date-time>updated_onstring<date-time>Request
curl -X PUT "https://api.onbolder.com/v2/wallet_programs/0" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"points_name": "coins",
"points_min": 1000
}'const response = await fetch("https://api.onbolder.com/v2/wallet_programs/0", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"points_name": "coins",
"points_min": 1000
})
});import requests
response = requests.put(
"https://api.onbolder.com/v2/wallet_programs/0",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"points_name": "coins",
"points_min": 1000
},
)Response
{
"_links": {
"property1": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
},
"property2": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
}
},
"id": 0,
"type": "points",
"name": "string",
"status": "active",
"points_name": "string",
"points_min": 0,
"points_duration": "string",
"points_divider": 0,
"points_divider_scope": "cart_total",
"credits_renewal": "manual",
"credits_reserve": true,
"created_on": "2019-08-24T14:15:22Z",
"updated_on": "2019-08-24T14:15:22Z"
}