create_dispute
Open a payment dispute: pass payment_id and amount, and optionally currency (default USD), customer_id, reason, status (default open) and metadata. Workspace owners and admins are emailed and subscribed endpoints get dispute.opened. Needs a claimed Last Price credential. 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 disputed amount. | |
| reason | No | Why it is disputed. | |
| status | No | The dispute status. | |
| currency | No | The currency code. Defaults to USD. | |
| metadata | No | Anything worth keeping with the record. | |
| payment_id | Yes | The payment that is disputed. | |
| customer_id | No | The customer who disputed it. |