Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

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

The store-credits module manages a credit balance per customer. Admins issue or revoke credit; customers can apply available credit at checkout in lieu of payment. Every credit change is recorded with reason and source, and the running balance never goes negative. Source: modules/store-credits · npm: @86d-app/store-credits

Installation

86d module add store-credits

Store endpoints

MethodPathDescription
GET/store-credits/me/balanceCurrent balance
GET/store-credits/me/transactionsCredit history
POST/store-credits/me/applyApply credit at checkout

Admin endpoints

MethodPathDescription
POST/admin/store-credits/:customerId/issueAdd credit
POST/admin/store-credits/:customerId/revokeSubtract credit
GET/admin/store-credits/:customerIdDetail with history