B2B API Specification

Version 3.11.0

production
sandbox

Webhook Settings

Webhooks enable real-time data delivery from PayTrace to external applications. Manage the endpoint configuration used to receive notifications, allowing your application to respond to payment activity instantly.

Create Webhook Settings

post /v3/webhook/settings

Configures an HTTPS endpoint to receive real-time, event-driven notification posts for checkout events.

Parameters
X-Integrator-Id
Type
string
Maximum Length
12

Loading...

X-Permalinks
Type
string
Maximum Length
4

Loading...

Request Schema
webhook_settings required
Type
array

Loading...

merchant_id required
Type
integer
Example
10123

Loading...

product_name required
Type
string
Example
TraceARCheckout

Loading...

Example Request
{
  "webhook_settings": {
    "event_type": "::card-sale-created",
    "target_url": "https://merchant.example.com/webhooks",
    "is_enabled": true
  },
  "merchant_id": 10123,
  "product_name": "TraceARCheckout"
}
Example Response
201 Successful Response
422 Validation Error

Get Webhook Settings by Merchant ID

get /v3/webhook/settings/by-merchant-id/{merchant_id}

Retrieves the webhook configuration details, subscribed events, and status for a specific webhook endpoint assigned to a specific merchant account.

Parameters
merchant_id required
Type
integer

Loading...

event_type
Type
string

Loading...

is_enabled
Type
boolean

Loading...

X-Integrator-Id
Type
string
Maximum Length
12

Loading...

X-Permalinks
Type
string
Maximum Length
4

Loading...

Example Response
200 Successful Response
422 Validation Error

Update Webhook Settings by Merchant ID

patch /v3/webhook/settings/by-merchant-id/{merchant_id}

Modifies an existing webhook configuration details assigned to a specific merchant account.

Parameters
merchant_id required
Type
integer

Loading...

X-Integrator-Id
Type
string
Maximum Length
12

Loading...

X-Permalinks
Type
string
Maximum Length
4

Loading...

Request Schema
product_name
Type
string
Example
TraceARCheckout

Loading...

webhook_settings required
Type
array

Loading...

Example Request
{
  "product_name": "TraceARCheckout",
  "webhook_settings": {
    "event_type": "::card-sale-created",
    "target_url": "https://merchant.example.com/webhooks",
    "is_enabled": true,
    "webhook_id": "273f5f64-5717-4802-b3fc-2c963f66af32"
  }
}
Example Response
200 Successful Response
422 Validation Error

Contact Us

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.