Credits

Grant credits to customer

Changed on
post/v1/credits/grant

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/v1/credits/grant
  • Auth: HTTP bearer

Request body

customer_idstring required
amount_centsinteger required
descriptionstring
expires_atstring date-time

Optional expiry; must be in the future. Omitted = never expires.

grant_kind'promotional'

Optional cost-basis class (ADR-078). promotional marks free/marketing credits, drained BEFORE all paid-class blocks. Omitted = unclassified (drains in the paid class). commit is reserved for the invoice-finalize funding path and rejected here.

Response

Credits granted

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property