create_credit
Grant a customer a prepaid credit bundle: pass customer_id and amount, and optionally currency (default USD), expires_at and metadata. The balance starts at the amount. Needs a claimed Last Price credential with billing write scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount. | |
| currency | No | The currency code. Defaults to USD. | |
| metadata | No | Anything worth keeping with the record. | |
| expires_at | No | When the bundle expires, as an RFC 3339 date-time. | |
| customer_id | Yes | The customer: its id, as list_customers shows it. |