v1

latestOpenAPI 3.0.32026-07-2488203535.0 KB
Invoicing

Close Invoice

Close an existing invoice. Once closed, the invoice cannot be modified or paid.

delete/v5/invoices/{invoice_id}

Path parameters

invoice_idinteger required

The invoice ID to be closed.

Response

Success

object'invoice' required

Resource type identifier

idinteger required

Invoice ID

status'open' | 'partially_paid' | 'paid' | 'closed' | 'overdue'

Current status of the invoice

amountstring

Total amount of the invoice. Format: x.xx

subtotalnumber nullable

Subtotal amount before tax and shipping

payment_termsstring

Payment terms for the invoice (e.g., 'Due Upon Receipt', '30 days')

payment_methods_allowedstring[]

Allowed payment methods: 'cc' = Credit Card, 'ck' = Check, 'cs' = Cash

processor_idstring nullable

Processor ID for payment processing

currencystring

Currency code (ISO 4217, e.g., USD, EUR)

created_datestring date-time nullable

Date and time when the invoice was created in UTC ISO 8601 format

updated_datestring date-time nullable

Date and time when the invoice was last updated in UTC ISO 8601 format

merchant_defined_fieldsobject

Merchant defined fields