PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

WebHookRequest

The following routes are available for this service:
POST/PayWithBankWebHook
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WebHookRequest:
    authorization: Optional[str] = None
    merchant_id: Optional[str] = None
    merchant_reference: Optional[str] = None
    payment_type: Optional[str] = None
    transaction_type: Optional[str] = None
    event_id: Optional[str] = None
    event_type: Optional[str] = None
    object_id: Optional[str] = None
    object_type: Optional[str] = None
    message: Optional[str] = None
    parent_object_id: Optional[str] = None
    time_zone: Optional[str] = None
    created_at: Optional[str] = None
    access_id: Optional[str] = None
    transaction_id: Optional[str] = None
    error_code: Optional[str] = None
    split_token: Optional[str] = None
    request_signature: Optional[str] = None
    form_data: Optional[str] = None
    status: Optional[str] = None
    payment_provider_transactionstatus: Optional[str] = None
    payment_provider_transactionstatus_message: Optional[str] = None
    third_party_decline_code: Optional[str] = None

Python WebHookRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PayWithBankWebHook HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Authorization":"String","merchantId":"String","merchantReference":"String","paymentType":"String","transactionType":"String","eventId":"String","eventType":"String","objectId":"String","objectType":"String","message":"String","parentObjectId":"String","timeZone":"String","createdAt":"String","accessId":"String","transactionId":"String","errorCode":"String","splitToken":"String","requestSignature":"String","formData":"String","status":"String","paymentProviderTransactionstatus":"String","paymentProviderTransactionstatusMessage":"String","thirdPartyDeclineCode":"String"}