Quickstart
Send your first event and create an invoice in under 5 minutes
This guide walks you through the core Afternoon workflow: authenticating, creating a customer, sending a billable event, and generating an invoice.
Prerequisites
- An Afternoon account with access to the dashboard
- An API key (see Authentication)
1. Create a customer
Response
Save the customer.id — you’ll need it in the next steps.
2. Send a billable event
Response
Events are queued for asynchronous processing. Use the idempotency_key to safely retry requests without creating duplicate events.
3. Create a draft invoice
Response
4. Finalize the invoice
Finalizing transitions the invoice from draft to open, assigns an invoice number, and generates a public payment URL.
Response
