PWI-Retrieve
When the card details are entered in the payment form and the "Pay X TL" button is pressed, iyzico will redirect to the callbackUrl address that you specified during the creation of the payment form. At this address, a token value will be posted by iyzico. To view additional details about the payment results, a second query must be made using this token.
Following service represents the usage of token;
Queries the PWI transaction result by token.
Authorization header; starts with IYZWSv2 and is a signed hash in Base64.
IYZWSv2 aXBzaWduYXR1cmU...application/jsonLanguage code. Default; tr
enPossible values: Request/response correlation ID.
8152109759Token of the PWI session to be retrieved.
da7431f4-89fc-4f65-8533-d83a4fede7d9Successful response (payment completed)
Outcome of the request.
successPossible values: Response language (tr/en).
enPossible values: Timestamp (epoch ms).
1755252706797Correlation ID of the request.
8152109759Basket total.
10Total collected amount.
10Installment count.
1Payment ID.
25152948Fraud status of the payment.
- 1: Approved
- 0: In review
- -1: Rejected
1Possible values: Merchant’s commission/deferral rate (informational). For example, if price=100 and paidPrice=110, the rate is 10%.
0Merchant’s commission/deferral amount (informational). For example, if price=100 and paidPrice=110, the amount is 10.
0iyzico commission amount for the payment.
0.2094iyzico fee for the payment.
0.25Card type.
CREDIT_CARDPossible values: Card association.
MASTER_CARDPossible values: Card family.
AxessPossible values: BIN (first 8 digits).
552608Last four digits of the card.
0006Basket ID.
basketIdCurrency of the payment.
TRYPossible values: Auth code returned by the bank.
277568Payment phase.
AUTHBank-provided host reference for the payment.
mock00007iyzihostrfnSignature value for verification.
57b1be1f094d17da286c748e2b2779e078e550bafe9734d4fd8c092aeee022beToken associated with the transaction (returned by the retrieval).
0b7b67d2-fdf0-4c9a-905f-2b0003b1b8c7Callback URL sent at initialization.
https://callbackurl.comPayment status.
SUCCESSPossible values: Email of the member who paid via PWI.
test@gmail.comGSM number of the member who paid via PWI.
+905555555555Bad request / validation error
POST https://api.iyzipay.com/payment/iyzipos/checkoutform/auth/ecom/detail
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "8152109759",
"token": "da7431f4-89fc-4f65-8533-d83a4fede7d9"
}
{
"status": "success",
"locale": "en",
"systemTime": 1755252706797,
"conversationId": "8152109759",
"price": 10,
"paidPrice": 10,
"installment": 1,
"paymentId": "25152948",
"fraudStatus": 1,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 0.349,
"iyziCommissionFee": 0.25,
"cardType": "CREDIT_CARD",
"cardAssociation": "MASTER_CARD",
"cardFamily": "Axess",
"binNumber": "552608",
"lastFourDigits": "0006",
"basketId": "basketID",
"currency": "TRY",
"itemTransactions": [
{
"itemId": "ItemID",
"paymentTransactionId": "27142369",
"transactionStatus": 2,
"price": 10,
"paidPrice": 10,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 0.349,
"iyziCommissionFee": 0.25,
"blockageRate": 0,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"blockageResolvedDate": "2025-08-23 00:00:00",
"subMerchantPrice": 0,
"subMerchantPayoutRate": 0,
"subMerchantPayoutAmount": 0,
"merchantPayoutAmount": 9.401,
"convertedPayout": {
"paidPrice": 10,
"iyziCommissionRateAmount": 0.349,
"iyziCommissionFee": 0.25,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"subMerchantPayoutAmount": 0,
"merchantPayoutAmount": 9.401,
"iyziConversionRate": 0,
"iyziConversionRateAmount": 0,
"currency": "TRY"
}
}
],
"authCode": "277568",
"phase": "AUTH",
"hostReference": "mock00007iyzihostrfn",
"signature": "57b1be1f094d17da286c748e2b2779e078e550bafe9734d4fd8c092aeee022be",
"token": "0b7b67d2-fdf0-4c9a-905f-2b0003b1b8c7",
"callbackUrl": "callbackUrl",
"paymentStatus": "SUCCESS",
"memberEmail": "test@gmail.com",
"memberGsmNumber": "+905555555555"
}Sample Codes
Last updated
