Invoices
A bill you send to a customer, paid by card on a hosted page or through the API.
Endpoints
Guides that use it
Errors
The error object every failed Comecero API call returns, what each HTTP status code means, and what your code should do next, such as after a declined card.
Lists and pagination
How Comecero API lists return pages of up to 100 items, the difference between offset and cursor lists, and how to sort them and filter them by date.
Invoices
Bill a customer with an invoice. Add products or custom items, publish the draft, send a payment link, take payment by API and follow the invoice events.
Hosted shop and payment links
Your ready-made Comecero shop, its page addresses, and links you can build to fill a cart, ask for a payment of any amount or get an invoice paid.
Sell prepaid credit
Let customers buy prepaid usage credit with an invoice, add it once payment completes, and follow the balance, credit history, refunds and spending limits.
Void a payment POST
Cancels a `pending` payment (authorized but not captured), so the hold on the shopper's money is released. Any other status is `422`. The payment becomes `cancelled` and the `payment:voided` event fires. Any body is ignored. To give back money that was captured, refund the payment instead. Secret and trusted tokens only; a limited token gets `403`.
List invoices GET
Returns the invoices on your account, oldest first by `date_created` unless you change `date_type` or send `desc=true`. The list is cursor-based: page with `after_item` and `before_item`. Use `q` to search by invoice id, customer name, company name or exact customer email. Takes a secret or trusted token. Limited tokens cannot list invoices.