Skip to main content
PATCH
/
api
/
v1
/
stripe
/
webhooks
/
classic
Update webhook
curl --request PATCH \
  --url https://demo.api.loopcrypto.xyz/api/v1/stripe/webhooks/classic \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --header 'entity-id: <api-key>' \
  --data '{
  "postUrl": "https://loopcrypto.xyz/webhook"
}'
{
  "webhookId": "1234567890abcdef",
  "networkId": 1,
  "event": "CreatePayins",
  "postUrl": "https://example.com/webhook",
  "dateCreated": 1716211200
}

Authorizations

api-key
string
header
required
entity-id
string
header
required

Query Parameters

networkIds
string

(Optional) The blockchain network IDs to filter webhooks by, as a comma-separated list (e.g. "1,10,137"). If provided, the update will only apply to webhooks with these network IDs. If not provided, the update will apply to all webhooks regardless of their network IDs.

events
enum<string>

(Optional) The events to filter webhooks by, as a comma-separated list (e.g. "AgreementSignedUp,AgreementCancelled"). If provided, the update will only apply to webhooks with these specific events. If not provided, the update will apply to all webhooks regardless of their event subscriptions. Valid options are AgreementSignedUp, AgreementCancelled, ScheduledAgreementCancel, TransferProcessed, TransferCreated, TransferFinalized, LatePayment.

Available options:
AgreementSignedUp,
AgreementCancelled,
ScheduledAgreementCancel,
TransferProcessed,
TransferCreated,
TransferFinalized,
LatePayment

Body

application/json
postUrl
string
required

The URL to send the webhook to. Must be a valid HTTP/HTTPS URL (localhost is not allowed).

Example:

"https://loopcrypto.xyz/webhook"

Response

Ok

webhookId
string
required

The unique identifier that represents the webhook.

Example:

"1234567890abcdef"

networkId
number
required

The network ID the webhook is associated with.

Example:

1

event
string
required

The webhook event.

Example:

"CreatePayins"

postUrl
string
required

The URL to send the webhook event to.

Example:

"https://example.com/webhook"

dateCreated
number
required

The date the webhook was created, represented as a Unix timestamp in seconds.

Example:

1716211200

I