Pular para o conteúdo

Create webhook subscriptions

Requisição

Create one or more new webhook subscription

Segurança
TokenAuth
Caminho
webhookIdstringobrigatório

The webhook ID

Corpoapplication/jsonobrigatório
Array [
domainstring(v2SubscriptionDomain)obrigatório

The domain to subscribe to

Enum:"TRANSACTION""WALLET""APPROVAL"
Exemplo:"TRANSACTION"
scopestring(v2SubscriptionScope)obrigatório

The scope to subscribe to

Value:"ORG"
Exemplo:"ORG"
]
curl -i -X POST \
  'https://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/webhooks/{webhookId}/subscriptions' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "domain": "TRANSACTION",
      "scope": "ORG"
    }
  ]'

Respostas

Corpoapplication/json
Array [
idstringobrigatório

The webhook subscription ID

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
webhookIdstringobrigatório

The webhook ID

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
createdBystringobrigatório

The ID of the user who created this webhook

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
createdAtstring, (date-time)obrigatório

The date and time the webhook was created

Exemplo:"2022-03-29T10:22:22.420Z"
updatedBystringobrigatório

The ID of the user who updated this webhook

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
updatedAtstring, (date-time)obrigatório

The date and time the webhook was updated

Exemplo:"2022-03-29T10:22:22.420Z"
configobject(v2SubscriptionConfig)obrigatório

The configuration for the webhook subscription

Exemplo:
{ "domain": "TRANSACTION", "scope": "ORG" }
]
Resposta
[ { "id": "ce4918bf-a199-4ce2-85a3-d0d296855384", "webhookId": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdAt": "2022-03-29T10:22:22.420Z", "updatedBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "updatedAt": "2022-03-29T10:22:22.420Z", "config": { … } } ]