Request
Method:POST
Endpoint:
/api/get-invoices
Headers:
Content-Type
:application/json
Origin
: Must match the configured app URL
customerId
(string, required): The Stripe customer ID
Response
Success Response (200):400 Bad Request
: Customer ID is required403 Forbidden
: Unauthorized origin404 Not Found
: Invoices not found500 Internal Server Error
: Server error
Example
Notes
- This endpoint requires the request to come from the configured app URL
- Returns Stripe invoice objects with full billing details
- Only accessible from the official Phonely application
Body
application/json
Stripe customer ID