For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhook Management

Configure or remove the default webhook URL for a terminal. Each terminal can have one default webhook URL for payment status events. You can also provide payment-specific webhook URLs when creating a payment.

Set or update the webhook URL

Use this operation to create or replace the default payment status webhook URL for a terminal.

Endpoint

PUT https://api.test.devs.beadpay.io/Terminals/{id}/webhook

Authentication

Use your admin API key in the request header for terminal management operations.

Request headers

Header
Value

X-Api-Key

{adminApiKey}

Content-Type

application/json

Accept

application/json

Path parameter

Name
Type
Description

id

string

Terminal identifier returned by Create Terminal, List Terminals, or Get Terminal.

Request body

Field
Type
Required
Description

url

string

Yes

Fully qualified HTTPS URL where terminal-level payment status events should be delivered.

Example request

Example response

Success responses

Code
Meaning

200

Webhook URL set or updated successfully.

202

Request accepted for processing.

204

Request completed with no response body.

Error responses

Code
Meaning

400

The request body is invalid, such as a missing or malformed URL.

401

The admin API key is missing or invalid.

403

The caller is authenticated but not permitted to manage the specified terminal.

404

No terminal was found for the supplied id.

409

A conflicting terminal state prevented the update.

Delete the webhook URL

Use this operation to remove the default webhook URL from a terminal. After removal, terminal-level payment status events are no longer sent to a default terminal webhook URL.

Endpoint

DELETE https://api.test.devs.beadpay.io/Terminals/{id}/webhook

Authentication

Use your admin API key in the request header for terminal management operations.

Request headers

Header
Value

X-Api-Key

{adminApiKey}

Accept

application/json

Path parameter

Name
Type
Description

id

string

Terminal identifier returned by Create Terminal, List Terminals, or Get Terminal.

Example request

Success response

204 No Content

No response body is returned on success.

Error responses

Code
Meaning

400

The request is invalid.

401

The admin API key is missing or invalid.

403

The caller is authenticated but not permitted to manage the specified terminal.

404

No terminal was found for the supplied id.

Signature verification

When you set or update a terminal webhook, store the returned signingSecret securely. Use that value to verify incoming webhook signatures before processing the event.

Delivery behavior

The terminal webhook acts as the default event destination for that terminal. You can also supply payment-specific webhookUrls when creating a payment if a single payment needs additional event destinations.

Best practices

  • Return a 2xx response quickly from your webhook consumer.

  • Make webhook processing idempotent so retries do not create duplicate work.

  • Use environment-specific webhook URLs for Sandbox and Production.

  • Treat the signing secret like any other credential and do not log it.

Notes

  • This page documents terminal-level webhook configuration only.

  • Use your admin API key for terminal webhook management.

  • Use the terminal payments API key for payment operations, not for terminal configuration changes.

Last updated