Skip to content

Pay Service Transaction ​

Returns transaction id if transaction succeed

Endpoint details ​

Method: POST
URL: BASE_URL/servicePayment/pay/
Header:

http
Authorization: Bearer <ACCESS_TOKEN>

Request Fields

Fieldsample_dataTypeRequiredDescription
transactionIdb6135bb4-ef3c-4ab1-a5aa-db174a9bdc26stringYestransactionId that is returned by the /servicePayment/create/ method
cardId9f877739-2149-4831-88a4-d1857309c77cstringYescardId that is created in Paylov system
userId007stringNouserId (ID declared by the merchant)
otp123456stringNofield is used to verify the OTP (One-Time Password) sent during the create method.Required when cardId included in the create method

Request example

json
{
"transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26",
"cardId": "9f877739-2149-4831-88a4-d1857309c77c",
"userId": "007"
}

Response example

json
{
  "result": {
    "transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26",
    "cardId": "9f877739-2149-4831-88a4-d1857309c77c",
    "payedAt": "2024-10-14 15:07:23", 
    "paymentRef": "023581615065", 
    "eposMerchant": "90510020873", 
    "eposTerminal": "92902804", 
  }
}