Credits - Admin

Use Credits Endpoint

Allows a PV to spend credits on a platform action.

Reads the PV from current_user["idpointofsale"] so admin/PV impersonation overrides are honored — credits are deducted from the active context, not the real user's home PV.

post/api/credits/use

Headers

x-api-tokenstring nullable

Request body

amountnumber required

Amount of credits to use, e.g., 10.50

reasonstring required

Response

Successful Response

{"stackTrail":"paths:/api/credits/use:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes