StripeWebhook ============= Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - POST - /api/webhooks/stripe/handle - * - POST - /api/webhooks/stripe/connect/handle - * - POST - /api/webhooks/stripe/checkout.session.completed - .. _post-apiwebhooksstripehandle: POST /api/webhooks/stripe/handle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/webhooks/stripe/handle" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/webhooks/stripe/handle .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/webhooks/stripe/handle' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apiwebhooksstripeconnecthandle: POST /api/webhooks/stripe/connect/handle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/webhooks/stripe/connect/handle" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/webhooks/stripe/connect/handle .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/webhooks/stripe/connect/handle' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apiwebhooksstripecheckoutsessioncompleted: POST /api/webhooks/stripe/checkout.session.completed ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/webhooks/stripe/checkout.session.completed" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/webhooks/stripe/checkout.session.completed .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/webhooks/stripe/checkout.session.completed' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" }