Skip to main content
POST
Przypisz webhook do produktu

Autoryzacje

X-API-KEY
string
header
wymagane

Klucz API dostarczony przez Paymove po zakończeniu procesu KYC. Przykład: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Parametry ścieżki

webhookId
string<uuid>
wymagane

Identyfikator webhooka

Przykład:

"18e19688-bdda-4843-8777-0f04d0143c77"

productId
string<uuid>
wymagane

Identyfikator produktu (id z odpowiedzi przy tworzeniu produktu)

Przykład:

"d0a834f9-94a4-4b3a-aa10-27d911e3633f"

Odpowiedź

200 - application/json

Webhook przypisany - zwraca obiekt webhooka potwierdzający powiązanie

Obiekt webhooka zwracany przez API

id
string<uuid>

Identyfikator webhooka (webhookId)

name
string
endpoint
string<uri>
method
string
requestTemplate
object
responseTemplate
object
expectedCode
integer
expectedResponse
string
retries
integer
type
string
headers
object
signingSecret
string

Sekret do weryfikacji podpisu żądań przychodzących od Paymove - przechowuj bezpiecznie

partnerId
string<uuid>
productIds
string<uuid>[]

Identyfikatory produktów, do których webhook jest przypisany

retryOnCodes
integer[]

Kody HTTP, które uruchamiają ponowienie