Create (or find) a wallet for a contact
Idempotent per contact + program: if a wallet already exists for this contact and program, the existing wallet is returned rather than a duplicate created.
POST
/walletsAuthorization
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsoncontact_idintegerrequiredprogram_idintegerDefaults to the seller's active program of the given type.
typestringdefault: "points"
Allowed:
pointscreditResponses
201
Wallet created (or found)
_linksHalLinksidintegertypestringAllowed:
pointscreditnamestringstatestringAllowed:
activeinactivebalanceintegercontact_idintegerprogram_idintegerconsentedbooleanlimit_amountintegerCredit wallets only — maximum spendable balance.
overdue_limit_amountintegerCredit wallets only — percentage of limit_amount allowed as overdue.
loan_termstringCredit wallets only — e.g. "2.days", "3.months".
created_onstring<date-time>updated_onstring<date-time>