create_payment
Record a payment against a customer: pass customer_id and amount, and optionally invoice_id, currency (default USD), status (pending, completed or refunded; default pending), payment_method and metadata. It records the payment in Last Price; it does not charge anyone. 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. | |
| status | No | The payment status. Defaults to pending. | |
| currency | No | The currency code. Defaults to USD. | |
| metadata | No | Anything worth keeping with the record. | |
| invoice_id | No | The invoice: its id, as list_invoices shows it. | |
| customer_id | Yes | The customer: its id, as list_customers shows it. | |
| payment_method | No | How it was paid. |