payments
Register a webhook endpoint
Subscribes a URL to one or more completion events. The signing secret is returned ONLY in this response and is not re-readable afterwards — store it before discarding the response, or rotate to obtain a new one.
The URL must resolve to a publicly routable address; it is re-checked at delivery time, not only here.
POST
Register a webhook endpoint
Authorizations
Body
application/json
Response
Webhook registered; the signing secret is returned only here.
Domain error code. OK on success; non-OK values come with a non-null error.
Available options:
OK, BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT, RATE_LIMITED, PAYLOAD_TOO_LARGE, UNSUPPORTED_CHAIN, INTERNAL_ERROR, UPSTREAM_TIMEOUT, UPSTREAM_ERROR, SERVICE_UNAVAILABLE, KILL_SWITCH_ACTIVE, CIRCUIT_BREAKER_OPEN, NO_QUOTE_AVAILABLE, QUOTE_STALE, SIMULATION_REVERTED, INVALID_PARAMS, AMOUNT_OUT_OF_BOUNDS, PAYOUT_TOKEN_NOT_ALLOWED, RECIPIENT_NOT_ALLOWLISTED, PAYMENT_EXPIRED, PAYMENT_NOT_FOUND, PAYMENT_IN_PROGRESS, NOT_CONFIGURED, INSUFFICIENT_LIQUIDITY, ROUTE_TEMPORARILY_UNAVAILABLE, UNSUPPORTED_ROUTE, OVER_DELIVERY_CAP, ORIGIN_NOT_CONFIGURED, ORIGIN_NOT_ALLOWED, PUBLISHABLE_DEPOSIT_NOT_ENABLED, PUBLISHABLE_WITHDRAWAL_NOT_ENABLED Example:
"OK"