Skip to content

Commit

Permalink
Add integration webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Dec 30, 2024
1 parent 616cf15 commit 4dc2e69
Showing 1 changed file with 73 additions and 4 deletions.
77 changes: 73 additions & 4 deletions docs/technical/webhooks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ BillaBear supports sending internal notification to internal services via webhoo

```json
{
plan: "plan_created",
type: "plan_created",
plan: {
id: "uuid-for-plan",
name: "Name Of Plan",
Expand All @@ -207,7 +207,7 @@ BillaBear supports sending internal notification to internal services via webhoo

```json
{
plan: "plan_updated",
type: "plan_updated",
plan: {
id: "uuid-for-plan",
name: "Name Of Plan",
Expand All @@ -223,7 +223,7 @@ BillaBear supports sending internal notification to internal services via webhoo

```json
{
plan: "plan_deleted",
type: "plan_deleted",
plan: {
id: "uuid-for-plan",
name: "Name Of Plan",
Expand All @@ -234,4 +234,73 @@ BillaBear supports sending internal notification to internal services via webhoo
},
}

```
```

## Accounting Integration Failure

```json
{
type: "integration_accounting_failure",
exception: {
message: "Something bad happened",
code: 32,
request: {
method: "GET",
uri: "https://www.example.org",
body: "request body",
},
response: {
status: 404,
body: "the return body",
}
}
}
```

`request` and `response` are only available for some failure

## Customer Support Integration Failure

```json
{
type: "integration_customer_support_failure",
exception: {
message: "Something bad happened",
code: 32,
request: {
method: "GET",
uri: "https://www.example.org",
body: "request body",
},
response: {
status: 404,
body: "the return body",
}
}
}
```

`request` and `response` are only available for some failure

## Newsletter Integration Failure

```json
{
type: "integration_newsletter_failure",
exception: {
message: "Something bad happened",
code: 32,
request: {
method: "GET",
uri: "https://www.example.org",
body: "request body",
},
response: {
status: 404,
body: "the return body",
}
}
}
```

`request` and `response` are only available for some failures

0 comments on commit 4dc2e69

Please sign in to comment.