Key concepts
- Customer invoice
- An invoice you issue to a customer in the console. It is paid online by card or PayPal, or you record a payment yourself.
- Amounts
- Every amount is in whole cents of
currency, and subtotalCents - discountCents + taxCents = totalCents. - Status
- The invoice status when the event fired, such as
ISSUED, PARTIALLY_PAID, PAID, UNCOLLECTIBLE or CANCELLED. New statuses are added over time, so tolerate one you do not know. - Your customer id
customerExternalRef is your own id for the customer, when you have set one. Use it to match the invoice to your records.- Shared expenses
- Expenses and settle-ups recorded in a group or between two friends. Their events carry amounts and user ids only, never the description or who owes what.
- No API key access
- Invoicing cannot be called with an API key. Work in the console; your app hears what happened through the events below.
There are no Invoicing calls for an API key today. You issue invoices, take payments and split expenses in the console, and your systems hear what happened through the events below. Add an endpoint to your Pickcell events application, as the webhooks guide shows, and update your own records as each one arrives.
An invoice event is a summary. Line items and notes are never sent; read them in the console. A group entry has a groupId and a null friendshipId, and an entry between two friends is the other way round.