Space Docs
API ReferencePayment

payment.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
invoiceIdstringYes—ID of the associated invoice
amountnumberYes—Amount
paymentMethodenum(stripe, credit_card, check, ach, wire, cash, other)Yes—Payment method
currencystringYes"USD"Currency
statusenum(pending, processing, completed, failed, refunded)Yes"pending"Status
stripePaymentIntentIdstringNo—ID of the associated stripe payment intent
stripeChargeIdstringNo—ID of the associated stripe charge
referencestringNo—Reference
paidAtstring.date-timeNo—Paid at
notesstringNo—Notes
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Example

{
  "invoiceId": "550e8400-e29b-41d4-a716-446655440000",
  "amount": 0,
  "paymentMethod": "stripe",
  "currency": "USD",
  "status": "pending",
  "stripePaymentIntentId": "550e8400-e29b-41d4-a716-446655440000"
}

On this page