Skip to main content
POST
/
accounts
/
{accountId}
/
organizations
/
{organizationId}
/
webhooks
Create webhook
curl --request POST \
  --url https://api.opencard.io/api/v1/application/accounts/{accountId}/organizations/{organizationId}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://your-app.com/hooks/opencard",
  "card_transaction_cleared": true,
  "card_transaction_authorized": true
}
'
{
  "id": 5,
  "organization_id": 3,
  "url": "https://your-app.com/hooks/opencard",
  "active": true,
  "enabled": true,
  "card_transaction_authorized": true,
  "card_transaction_cleared": true,
  "card_transaction_deleted": true,
  "receipt_fetched": true
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
integer
required

Your account ID

organizationId
integer
required

Organization ID

Body

application/json
url
string
required
card_transaction_authorized
boolean
card_transaction_cleared
boolean
card_transaction_deleted
boolean
receipt_fetched
boolean
transaction_true_vat
boolean

Response

201 - application/json

Webhook created