Search Overlay

Webhooks

Requêtes de paiement

"Payment Handle" payable

Condition pour le déclencheur de webhook : déclenché lorsque le code QR Venmo d’un nouveau client est numérisé ou lorsqu’il s’agit d’un client existant.

Réponse de webhook

{
"payload":
{
"accountId":"1005731030",
"id":"33e82d3b-9706-4495-80b1-a387fcfcbbae",
"merchantRefNum":"hhj90097k99oo29",
"paymentHandleToken":"PHu44cSJ0fLdkGXR",
"transactionType":"PAYMENT",
"amount":500,
"currencyCode":"USD",
"status":"PAYABLE",
"paymentType":"VENMO",
"billingDetails":{"zip":"05713570","country":"US"},
"statusTime":"2022-06-27T17:52:05Z",
"updatedTime":"2022-06-27T17:52:05Z",
"customerIp":"10.195.188.95",
"profile":
{
"firstName":"John",
"lastName":"Deo"
},
"txnTime":"2022-06-27T17:50:16Z"
},
"eventType":"PAYMENT_HANDLE_PAYABLE",
"attemptNumber":"1",
"resourceId":"33e82d3b-9706-4495-80b1-a387fcfcbbae",
"eventDate":"2022-06-27T17:50:16Z",
"links":[{"href":"https://api.dev.paysafe.com/alternatepayments/v1/accounts/1005731030/paymenthandles/33e82d3b-9706-4495-80b1-a387fcfcbbae","rel":"payment_handle"}],
"mode":"live",
"eventName":"PAYMENT_HANDLE_PAYABLE"
}

"Payment Handle" expiré

État : Y

Condition pour le déclencheur de webhook : déclenché lors de l’utilisation de la requête GET pour vérifier l’état de l’identifiant du "payment handle".

Requêtes de crédit autonome

Crédit autonome terminé

Condition pour le déclencheur de webhook : déclenché lorsque la requête de crédit autonome est terminée.

Réponse de webhook

{
"payload":
{
"accountId":"1020543340",
"id":"b885e54c-0d6e-452d-9a6a-98546e672113",
"merchantRefNum":"1658413227",
"paymentHandleToken":"PHZjkj2IAiHlDXP9",
"transactionType":"STANDALONE_CREDIT",
"amount":888,"currencyCode":"USD",
"status":"COMPLETED",
"paymentType":"VENMO",
"statusTime":"2022-07-21T14:29:36Z",
"updatedTime":"2022-07-21T14:29:36Z",
"customerIp":"10.195.189.182",
"txnTime":"2022-07-21T14:20:27Z"
},
"eventType":"PAYMENT_HANDLE_COMPLETED",
"attemptNumber":"1",
"resourceId":"b885e54c-0d6e-452d-9a6a-98546e672113",
"eventDate":"2022-07-21T14:20:27Z",
"links":[{"href":"https://api.qa.paysafe.com/alternatepayments/v1/accounts/1020543340/paymenthandles/b885e54c-0d6e-452d-9a6a-98546e672113","rel":"payment_handle"}],
"mode":"live",
"eventName":"PAYMENT_HANDLE_COMPLETED"
}

Crédit autonome échoué

Condition pour le déclencheur de webhook : déclenché lorsque l’appel de traitement de la requête de crédit autonome est effectué sans paiement.

Réponse de webhook

{
"payload":
{
"accountId":"1020543340",
"id":"1c954717-85ec-4b8e-b6f4-e0af6c570ade",
"merchantRefNum":"ed8f9565-7ede-46ed-bc15-7712aeb6df6f",
"transactionType":"PAYMENT",
"amount":10000,
"currencyCode":"USD",
"status":"ERROR",
"paymentType":"VENMO",
"statusTime":"2022-07-21T12:48:32Z",
"updatedTime":"2022-07-21T12:48:32Z",
"customerIp":"10.195.189.159",
"txnTime":"2022-07-21T12:48:32Z",
"error":{
"code":"5068",
"message":"Field error(s)",
"details":["Either you submitted a request that is missing a mandatory field or the value of a field does not match the format expected."]
}
},
"eventType":"PAYMENT_HANDLE_ERRORED",
"attemptNumber":"1",
"resourceId":"1c954717-85ec-4b8e-b6f4-e0af6c570ade",
"eventDate":"2022-07-21T12:48:32Z",
"links":[{"href":"https://api.qa.paysafe.com/alternatepayments/v1/accounts/1020543340/paymenthandles/1c954717-85ec-4b8e-b6f4-e0af6c570ade","rel":"payment_handle"}],
"mode":"live",
"eventName":"PAYMENT_HANDLE_ERRORED"
}

Erreur de crédit autonome

Condition pour le déclencheur de webhook : déclenché lorsque le crédit autonome échoue dans le cadre d’une tâche par lot.

Réponse de webhook

{
"payload":
{
"accountId":"1020543340",
"id":"02093285-e57f-4582-8df7-42952f439d03",
"merchantRefNum":"dbcd23d4e17af96ee971",
"paymentHandleToken":"PHTVDbf3nqYnAqk9",
"amount":777,
"currencyCode":"USD",
"status":"ERROR",
"paymentType":"VENMO",
"txnTime":"2022-07-21T11:57:20Z",
"error":
{
"code":"5283",
"message":"Payment Handle is invalid",
"details":["The requested operation can only be executed on a Payment Handle with status PAYABLE."]
},
"statusTime":"2022-07-21T11:57:20Z","updatedTime":"2022-07-21T11:57:20Z"
},
"eventType":"SA_CREDIT_ERRORED",
"attemptNumber":"1",
"resourceId":"02093285-e57f-4582-8df7-42952f439d03",
"eventDate":"2022-07-21T11:57:20Z",
"links":[{"href":"https://api.qa.paysafe.com/alternatepayments/v1/accounts/1020543340/standalonecredits/02093285-e57f-4582-8df7-42952f439d03","rel":"standalone_credit"}],
"mode":"live",
"eventName":"SA_CREDIT_ERRORED"
}