API ReferencePayment
payment.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| invoiceId | string | Yes | — | ID of the associated invoice |
| amount | number | Yes | — | Amount |
| paymentMethod | enum(stripe, check, ach, wire, cash, other) | Yes | — | Payment method |
| currency | string | Yes | "USD" | Currency |
| status | enum(pending, processing, completed, failed, refunded) | Yes | "pending" | Status |
| stripePaymentIntentId | string | No | — | ID of the associated stripe payment intent |
| stripeChargeId | string | No | — | ID of the associated stripe charge |
| reference | string | No | — | Reference |
| paidAt | string.date-time | No | — | Paid at |
| notes | string | No | — | Notes |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"invoiceId": "550e8400-e29b-41d4-a716-446655440000",
"amount": 0,
"paymentMethod": "stripe",
"currency": "USD",
"status": "pending",
"stripePaymentIntentId": "550e8400-e29b-41d4-a716-446655440000",
"visibilityMode": "global"
}