StripeWebhook
Quick Reference
Method |
Endpoint |
Description |
|---|---|---|
POST |
/api/webhooks/stripe/handle |
|
POST |
/api/webhooks/stripe/connect/handle |
|
POST |
/api/webhooks/stripe/checkout.session.completed |
POST /api/webhooks/stripe/handle
Example Request:
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)
ab api raw post /api/webhooks/stripe/handle
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
'https://api.abconnect.co/api/webhooks/stripe/handle'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/webhooks/stripe/connect/handle
Example Request:
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)
ab api raw post /api/webhooks/stripe/connect/handle
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:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/webhooks/stripe/checkout.session.completed
Example Request:
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)
ab api raw post /api/webhooks/stripe/checkout.session.completed
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:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}