Empro sandbox
2010 West San Marcos Boulevard, Unit 82, San Marcos CA 92078, United States

EMPRO MyBooks

Configuration Status

Environment Variables:

All variables configured

Webhook Status:

Configured

Legally Required Company Information:

  • Company Name: Set
  • Company Address: Set
  • Company Email: Set
  • VAT ID: Set
  • Brand Color: Set
  • Logo: Set

Overview

This worker automates invoicing after a successful Stripe charge. It listens for charge.succeeded events via a signed webhook and, if the customer's delivery_mode metadata is pdf_invoice (or unset), emails them a branded PDF invoice.

API Usage

To manually send an invoice, use the following endpoint:

POST Example:
POST https://billing.empro.biz/api/send-invoice { "customerId": "your-customer-id", "chargeId": "your-charge-id" }

Customer Billing Portal

Customers can access their billing history and download invoices via a unique URL. Use their Stripe Customer ID and append it to the URL:

https://billing.empro.biz/billing/<customer-id>

Webhook Configuration

A scheduled task periodically ensures a Stripe webhook is registered for charge.succeeded against APP_DOMAIN. Webhook signatures are verified against STRIPE_WEBHOOK_SECRET.

Webhook URL:
https://billing.empro.biz/webhook/stripe