Customers
Grant credits to a customer
Changed onAdds credits to a customer balance. Use Idempotency-Key to make grants safe to retry.
post/v1/sdk/customers/{reference}/credits
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
referencestring required
Example:cus_3c4d5e6f7g8h
Customer reference identifier
Headers
Idempotency-Keystring
Provider-scoped idempotency key for safe grant retries
Request body
Response
Credits granted successfully
Changes
- breaking
added the pattern
^[\p{L}\p{N}\s.,'"&\/()+:%;?!@#_[\]\-]*$to the request property
- breaking
- info
endpoint added
- info