Skip to main content

Payment Details

  • Endpoint: /pws/payment/transaction
  • HTTP Method: GET
  • Request Content-Type: application/json (optional)
  • Response Content-Type: application/json
  • Authorization: A valid AccessToken is required. (See: 2. Authentication – Obtaining AccessToken)

Description

Returns all details of a payment transaction. Compatible with ERP’s GetPayment output (field names & meanings).

  • Query can be made via transactionId, referenceNumber, or clientReferenceNumber.
  • Applicable for all transactions, 3D/Non-3D, single or installment payments.

Header Information

Header NameRequiredDescription
AuthorizationYesValid token in Bearer {AccessToken} format.
Content-TypeNoapplication/json

Query Parameters (GET)

At least one of the following identifiers is required

ParameterTypeRequiredDescription
transactionIdstring (GUID)Yes*Unique system ID of the transaction.
referenceNumberstringYes*System reference (e.g., NTH2P00000002250).
clientReferenceNumberstringYes*Merchant/order reference.
  • Send at least one. Sending multiple will result in 404 error.

Sample Requests (GET)

  • /pws/payment/transaction?transactionId=99248acb-3dbe-4654-9f3f-49f02111ee3e
  • /pws/payment/transaction?referenceNumber=NTH2P00000002249
  • /pws/payment/transaction?clientOrderReferenceCode=11001122011

Response Structure

data (Transaction) Fields

Top-Level Fields

FieldTypeExampleDescription
clientReferenceNumberstringnull"ORDER-2025-0001"Merchant/order reference.
referenceNumberstring"NTH2P00000002250"System reference number.
tenantIdstring (GUID)"670683c1-2fe0-4846-87b2-6cba9b793ab2"Tenant the transaction belongs to.
tenantPosIdstring (GUID)"384badef-11ec-ee11-98f2-005056b0d2e5"Used POS record.
commRatenumber1.0000Applied commission rate (%).
currencyTypestring"TRY"Transaction currency (e.g., TRY).
transactionDatestring (ISO datetime)"2025-10-24T17:23:51.5461093"Transaction date/time.
transactionDetailIdstring (GUID)"99624afe-b2ee-4483-2f6c-08de12f76968"Detail record ID.
installmentinteger1Number of installments.
lastAmountnumber54.00Final (gross) amount.
lastNetAmountnumber53.46Net amount after commission.
idstring (GUID)"49acb76f-d4ea-427b-a1b3-46532fb87653"Unique system ID of the transaction (transactionId).
vposCommRatenumber1.0000Bank/VPos commission rate.
bankPaymentDaysintegernullnullBank payment term (days).
paymentSetErpCodestring"Kobi"Payment set ERP code.
vPosERPCodestring"29072025"VPos ERP code/ID.
impersonatedbooleantrueIndicates if transaction was made on behalf of someone.
paidTenantIdstring (GUID)nullnullIf payment is made on behalf of another tenant.
rePayPlanCodestringnullnullRepayment plan code (if any).
currencyIdstring (GUID)"8e6cc739-83e0-4af5-accf-a55476e758c6"Internal currency ID.
erpTransactionCodestringnullnullERP transaction/voucher code.
erpTransactionCodeUpdateDatestring (ISO)nullnullERP code update timestamp.
errorMessagestringnullnullError message (if any).
errorCodestringnullnullError code (if any).
transactionStatusIdinteger1Transaction status (see Status Note).
reversalobjectnullnullCancellation/Refund info (if available as object).

agent

FieldTypeExampleDescription
agentIdstring (GUID)"1f9c9e65-1bf3-48fc-887a-42c325d21cd2"Customer/merchant unique ID.
namestring"example user"Name/Title.
emailstring"[email protected]"Email.
agentCodestring"NT53240185"Code.
erpCodestring""ERP code.
workplaceCodebusinessCodestringnullnullERP fields (optional).
isCompanybooleanfalseIs it a company?
isCustomerbooleantrueCustomer flag.
taxNumberstringnullnullTax number.
customerRepresentativeIdsarray[]Representative IDs.
dynamicFieldsarray[]Custom fields.

paymentAccountTransactions

FieldTypeExampleDescription
amountnumber0.0Related accounting/account transaction amount.
erpCodestringnullnullAccount ERP code.
transactionErpCodestringnullnullTransaction ERP code.

paymentGeneral

FieldTypeExampleDescription
plusInstallmentinteger0Extra installment.
deferralinteger0Deferral (days/months—depends on setup).
commApplyTypestring"Inside"Commission application type (Inside/Excluded).
provisionNumberstringnullnullAuthorization number.
paymentSetNamestringnullnullPayment set name.
paymentItemGroupNamestringnullnullItem group name.
paymentItemNamestringnullnullItem name.
paymentItemErpCodestringnullnullItem ERP code.
paymentItemCodestringnullnullItem code.
paymentItemStartDatestringnullnullStart date.
paymentItemEndDatestringnullnullEnd date.
paymentItemAmountnumbernullnullItem amount.
dynamicFieldsarray[]Custom fields.

paymentContact

FieldTypeExampleDescription
taxNumberstring"26179246186"TCKN/VKN (example: TCKN).
fullNamestring"john Doe"Full name.
descriptionstring"test"Description.
phoneNumberstring"5888888888"Phone number.
emailstring"[email protected]"Email.

paymentSet

FieldTypeExampleDescription
idstring (GUID)"504978bf-bebd-40c5-89aa-b76f3a20341c"Set ID.
namestring"QNB Set"Set name.
erpCodestring"QNBSeti"Set ERP code.
transactionTypestring"Authorization"Transaction type (depends on setup).
commApplyTypestring"Inside"Commission application type.

creditCard

FieldTypeExampleDescription
cardHolderNamestring"Test Test"Name on card.
cardNumberstring (masked)"415565******6111"Masked PAN (first 6 + last 4).
cardTypestring"Visa"Card scheme.
cardBankstring"QNB Finansbank"Card bank.
cardClassstring"Classic"Card class.

{  
"clientReferenceNumber": null,
"referenceNumber": "NTH2P00000002250",
"tenantId": "670683c1-2fe0-4846-87b2-6cba9b793ab2",
"tenantPosId": "384badef-11ec-ee11-98f2-005056b0d2e5",
"commRate": 1.0000,
"currencyType": "TRY",
"transactionDate": "2025-10-24T17:23:51.5461093",
"transactionDetailId": "99624afe-b2ee-4483-2f6c-08de12f76968",
"installment": 1,
"lastAmount": 54.00,
"lastNetAmount": 53.46,
"id": "49acb76f-d4ea-427b-a1b3-46532fb87653",
"vposCommRate": 1.0000,
"bankPaymentDays": null,
"paymentSetErpCode": "Kobi",
"vPosERPCode": "29072025",
"impersonated": true,
"paidTenantId": null,
"rePayPlanCode": null,
"agent": {
"agentId": "1f9c9e65-1bf3-48fc-887a-42c325d21cd2",
"name": "0210 Deneme 0210 Deneme",
"email": "[email protected]",
"agentCode": "NT53240185",
"erpCode": "",
"workplaceCode": null,
"departmentCode": null,
"speCode": null,
"authCode": null,
"projectCode": null,
"salesmanCode": null,
"busTranCode": null,
"branchCode": null,
"businessCode": null,
"isCompany": false,
"isCustomer": true,
"taxNumber": null,
"customerRepresentativeIds": [],
"dynamicFields": []
},
"currencyId": "8e6cc739-83e0-4af5-accf-a55476e758c6",
"paymentAccountTransactions": [
{
"amount": 0.0,
"erpCode": null,
"transactionErpCode": null
}
],
"paymentGeneral": {
"plusInstallment": 0,
"deferral": 0,
"commApplyType": "Inside",
"provisionNumber": null,
"paymentSetName": null,
"paymentItemGroupName": null,
"paymentItemName": null,
"paymentItemErpCode": null,
"paymentItemCode": null,
"paymentItemStartDate": null,
"paymentItemEndDate": null,
"paymentItemAmount": null,
"dynamicFields": []
},
"paymentContact": {
"taxNumber": "00000000000",
"fullName": "John Doe",
"description": "test",
"phoneNumber": "5074458449",
"email": "[email protected]"
},
"paymentSet": {
"id": "504978bf-bebd-40c5-89aa-b76f3a20341c",
"name": "QNB Set",
"erpCode": "QNBSeti",
"transactionType": "Authorization",
"commApplyType": "Inside"
},
"creditCard": {
"cardHolderName": "Test Test",
"cardNumber": "415565******6111",
"cardType": "Visa",
"cardBank": "QNB Finansbank",
"cardClass": "Classic"
},
"erpTransactionCode": null,
"erpTransactionCodeUpdateDate": null,
"errorMessage": null,
"errorCode": null,
"transactionStatusId": 1,
"reversal": null
}

Notes & Best Practices

  • Direct ID: Use transactionId whenever possible for the most accurate match.

  • In 3D flows, call this endpoint after OTP confirmation to verify the result.

  • Card PAN is returned masked; full PAN is never returned.

  • After cancellation/refund, check the updated status again via this endpoint.