ShiftxPay
API Reference

Enable or disable a webhook endpoint

PATCH
/v1/merchants/me/webhooks/{id}
AuthorizationBearer <token>

A secret API key, e.g. Authorization: Bearer sk_test_....

In: header

Path Parameters

id*string

Endpoint id (whk_...).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/merchants/me/webhooks/string" \  -H "Content-Type: application/json" \  -d '{    "status": "active"  }'
{  "id": "string",  "status": "string"}

{  "error": {    "code": "invalid_body",    "message": "invalid request body"  }}

{  "error": {    "code": "not_found",    "message": "not found"  }}