Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hack4impact-umd/breastfeeding-center-gw/llms.txt
Use this file to discover all available pages before exploring further.
Overview
These endpoints proxy data from the Squarespace Commerce API. Order data is fetched live from Squarespace on each request. Squarespace client data is also synced automatically into Firestore by thesquarespaceSync scheduled function, which runs every 6 hours over a rolling 1-week window.
All endpoints require a valid Firebase Auth ID token.
Base URL: https://us-east4-breastfeeding-center-gw.cloudfunctions.net/api
GET /squarespace/orders
Returns all Squarespace commerce orders placed within a date range. Auth required: YesQuery parameters
ISO 8601 start of the order window (inclusive). Example:
2024-01-01T00:00:00Z.ISO 8601 end of the order window (inclusive). Example:
2024-02-01T00:00:00Z.Example
Response
Returns a JSON array of Squarespace order objects.Error codes
| Status | Reason |
|---|---|
400 | startDate or endDate is missing, or the Squarespace API request failed |
403 | Missing or invalid auth token |
GET /squarespace/orders/customer/:customerId
Returns all Squarespace orders placed by a specific customer, identified by their Squarespace customer ID. Auth required: YesPath parameters
The Squarespace customer ID. This corresponds to the
squarespaceCustomerId field on a Client record in Firestore.Example
Response
Returns a JSON array of Squarespace order objects for the specified customer.Error codes
| Status | Reason |
|---|---|
400 | customerId is missing, or the Squarespace API request failed |
403 | Missing or invalid auth token |
GET /squarespace/profile
Returns the Squarespace customer profile for a given email address. Auth required: YesQuery parameters
The email address of the customer to look up.
Example
Response
Returns the Squarespace customer profile object for the given email.Error codes
| Status | Reason |
|---|---|
400 | email is missing, or the Squarespace API request failed |
403 | Missing or invalid auth token |
