PWI-Initialize
Header parameters
AuthorizationstringRequiredExample:
Authorization header; starts with IYZWSv2 and is a signed hash in Base64.
IYZWSv2 aXBzaWduYXR1cmU...Content-TypestringRequiredExample:
application/jsonBody
localestring · enumOptionalExample:
Language code. Default; tr
enPossible values: conversationIdstringOptionalExample:
Request/response correlation ID.
conversationIDpricedecimalRequiredExample:
Basket total amount.
10basketIdstringRequiredExample:
Basket ID.
basketIDpaymentGroupstring · enumOptionalExample:
Payment group.
PRODUCTPossible values: callbackUrlstringRequiredExample:
URL to redirect after the transaction.
callbackUrlcurrencystring · enumRequiredExample:
Currency. Default; TRY.
TRYPossible values: paidPricedecimalRequiredExample:
Amount to be collected.
10paymentChannelstring · enumOptionalExample:
Payment channel.
WEBPossible values: Responses
200
Successful response (PWI initialized)
application/json
statusstring · enumOptionalExample:
Outcome of the request.
successPossible values: localestring · enumOptionalExample:
Response language.
enPossible values: systemTimeintegerOptionalExample:
Timestamp (epoch ms).
1755252275214conversationIdstringOptionalExample:
Correlation ID of the request.
conversationIDtokenstringOptionalExample:
Token generated for Pay with iyzico. Returned per request and required to retrieve the result.
54481021-e605-407e-93d7-776ef481c4d7tokenExpireTimeintegerOptionalExample:
Token validity in seconds; 1800 seconds.
1800payWithIyzicoPageUrlstringOptionalExample:
Payment page URL to redirect to.
https://sandbox-ode.iyzico.com/?token=54481021-e605-407e-93d7-776ef481c4d7&lang=trsignaturestringOptionalExample:
Response signature (hash).
a35338903267271c38465924d7d1903b2e10870bebaef1a00923be864e475818400
Bad request / validation error
application/json
post
/payment/pay-with-iyzico/initializeSample Codes
Last updated
