P2C Webhooks

Webhook reports

Call

Description

CardAuthorized

Reports when a card authorization attempt is completed and the status of the card.

CardStatusChanged

Reports if a card changed status - active or inactive.

Transaction

Reports any transactions.

TransactionStatusChanged

Reports the changed status of a transaction.

TransactionBatchCompleted

Reports the completion of a batch transaction request.

Webhook Responses

Sample response - CardAuthorized

{
   "EventId":"53e0d945-4f04-477c-901c-010ee5df73c3",
   "EventName":"CardAuthorized",
   "Data":{
      "RequestId":"101f1ed0-501b-4e69-a081-36a06064bcac",
      "CardToken":"W5AXTOSK4AUOVRZ4F9M1G9X5JGZUF4SUMTQBTC",
      "Authorized":true,
      "ResponseReceived":true,
      "ResponseCode":"OK",
      "ResponseDescription":"OK",
      "Error":null,
      "AddressVerified":true,
      "Rail":1,
      "CustomerReferenceNumber":"1"
   }
}

Sample response - TransactionCompleted

{
   "EventId":"35ad28ca-b10c-4ce9-8427-0177c9e33759",
   "EventName":"TransactionCompleted",
   "Data":{
      "TransactionId":"00000000-0000-0000-0000-00000abcd000",
      "Amount":333.0,
      "TransactionRequestedAt":"2020-03-11T10:37:59.4",
      "TransactionStatus":2,
      "ErrorDescription":"{\r\n  \"PushCardID\": \"00000000-0000-0000-0000-00000abcd000\",\r\n  \"PaymentSent\": false,\r\n  \"ResponseReceived\": false,\r\n  \"ResponseCode\": null,\r\n  \"ResponseDescription\": null,\r\n  \"Network\": null,\r\n  \"TransactionDate\": null,\r\n  \"Error\": \"Card token not found\",\r\n  \"TraceNumber\": null\r\n}",
      "CreditCardId":"7P1TU68DX3YDFANU1VXPRAKZ9QZFFDTL2NHRER",
      "Rail":null
   }
}

Sample response - CardStatusChanged

{
  "EventId": "ce1dbd4f-6830-4c20-ab64-000a946a2cfc",
  "EventName": "CardStatusChanged",
  "Data": {
    "StatusChangedAt": "2020-02-04T15:32:28.7632522Z",
    "CreditCardId": "1IHF11OZEYANB73FVQYDD6AXBMGHLUU22Z8KK0",
    "OldStatus": "active",
    "NewStatus": "inactive"
  }
}

Sample response - TransactionStatusChanged

{
  "EventId": "dc51a5f9-581b-4de9-b5fb-050994f02716",
  "EventName": "TransationStatusChanged",
  "Data": {
    "TransactionId": "10000000-0000-0000-0000-0000abcd0e00",
    "Amount": 3.0,
    "TransactionRequestedAt": "2019-12-17T06:34:26.95",
    "OldTransactionStatus": "succeeded",
    "NewTransactionStatus": "pending",
    "StatusChangedAt": "2020-01-09T13:13:35.4068128Z",
    "CreditCardId": "09XCCEE5CCEQ1UGC6NPVKPUT0FSUDXTLZOID7R",
    "Rail": "mcSend"
  }
}

Sample response - TransactionBatchCompleted

{
  "EventId": "3bf32cd9-7fbe-4a83-90e7-abc200ac7e7e",
  "EventName": "TransactionBatchCompleted",
  "Data": {
    "BatchId": "b18cadfc-dd86-4979-98a7-4db74a0dba4e",
    "TotalTransactionsCount": 1,
    "FailedTransactionCount": 0,
    "InvalidTransactionCount": 1,
    "SuccessTransactionCount": 0,
    "TransactionInProcessCount": 0,
    "RequestedAt": "2020-05-21T14:27:59.447",
    "CompletedAt": "2020-05-21T14:28:01.27"
  }
}

Did this page help you?