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

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/credits/use
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Headers

x-api-tokenstring nullable

Request body

amountnumber required

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

reasonstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.