Search Checkout Sessions
This endpoint allows you to search for checkout sessions based on various criteria such as status, date range, and customer information.Endpoint
- Endpoint:
GET /v1/checkout/search - Description: Search for checkout sessions using query parameters.
- Query Parameters:
status(string, optional): Filter by checkout session status (e.g., “completed”, “pending”).start_date(string, optional): The start date for the search range (ISO 8601 format).end_date(string, optional): The end date for the search range (ISO 8601 format).customer_id(string, optional): Filter by customer ID.
- Response:
Parameters
status(string, optional): Filter by checkout session status (e.g., “completed”, “pending”).start_date(string, optional): The start date for the search range (ISO 8601 format).end_date(string, optional): The end date for the search range (ISO 8601 format).customer_id(string, optional): Filter by customer ID.
Example Request
Example Response
Notes
- You can combine multiple query parameters to refine your search results.
- The response includes a list of checkout sessions that match the search criteria along with the total count.
Errors
400 Bad Request: Invalid query parameters.401 Unauthorized: Invalid or missing API key.
See Also
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.