Customize an invoice
Collection method
Control how payment is collected on an invoice:
Payment terms
Set due_date to specify when payment is due. For subscription invoices, the net_d field on the subscription controls due dates automatically.
Custom fields
Attach structured custom data to invoices. Custom field keys must match field definitions configured for the invoice entity type in your account.
Set custom fields at creation
Retrieve custom fields
Include expand=custom_fields when fetching an invoice:
Delete a custom field value
Set a field key to null to remove it:
Metadata
Attach free-form key-value data to an invoice using the metadata field. Unlike custom fields, metadata does not require predefined field definitions.
Invoice documents
PaymentKit automatically generates PDF documents for finalized invoices.
PDF URLs are available on the invoice object via invoice_pdf_url and receipt_pdf_url.
Hosted invoice page
Every invoice has a public hosted URL that customers can access without authentication. The hosted invoice URL is included automatically in customer-facing emails sent by PaymentKit.
PaymentKit automatically includes the hosted invoice URL in customer-facing emails to provide a self-service payment experience.