Webhook ingress
Payment provider webhook ingress
Verified over the raw body, 300 s tolerance, replay-guarded by event id. Server-to-server only.
POST
/
v1
/
webhooks
/
stripe
Payment provider webhook ingress
curl --request POST \
--url https://api.sempera.org/v1/webhooks/stripe \
--header 'Content-Type: application/json' \
--header 'Stripe-Signature: <api-key>' \
--data '
{
"id": "<string>",
"type": "<string>",
"data": {
"object": {}
}
}
'import requests
url = "https://api.sempera.org/v1/webhooks/stripe"
payload = {
"id": "<string>",
"type": "<string>",
"data": { "object": {} }
}
headers = {
"Stripe-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Stripe-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', type: '<string>', data: {object: {}}})
};
fetch('https://api.sempera.org/v1/webhooks/stripe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"received": true,
"result": "<string>",
"workspace_id": "<string>",
"invoice_id": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}Authorizations
Provider signature over the exact raw body, with a 300-second tolerance.
Body
application/json
⌘I
Payment provider webhook ingress
curl --request POST \
--url https://api.sempera.org/v1/webhooks/stripe \
--header 'Content-Type: application/json' \
--header 'Stripe-Signature: <api-key>' \
--data '
{
"id": "<string>",
"type": "<string>",
"data": {
"object": {}
}
}
'import requests
url = "https://api.sempera.org/v1/webhooks/stripe"
payload = {
"id": "<string>",
"type": "<string>",
"data": { "object": {} }
}
headers = {
"Stripe-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Stripe-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', type: '<string>', data: {object: {}}})
};
fetch('https://api.sempera.org/v1/webhooks/stripe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"received": true,
"result": "<string>",
"workspace_id": "<string>",
"invoice_id": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}