Pay with iyzico

Pay with iyzico (PWI) — Initialize

post

Starts a PWI session; returns the token and page URL for redirection.

Header parameters
AuthorizationstringRequired

Authorization header; starts with IYZWSv2 and is a signed hash in Base64.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequiredExample: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
conversationIdstringOptional

Request/response correlation ID.

Example: conversationID
pricedecimalRequired

Basket total amount.

Example: 10
basketIdstringRequired

Basket ID.

Example: basketID
paymentGroupstring · enumOptional

Payment group.

Example: PRODUCTPossible values:
callbackUrlstringRequired

URL to redirect after the transaction.

Example: callbackUrl
currencystring · enumRequired

Currency. Default; TRY.

Example: TRYPossible values:
paidPricedecimalRequired

Amount to be collected.

Example: 10
paymentChannelstring · enumOptional

Payment channel.

Example: WEBPossible values:
Responses
200

Successful response (PWI initialized)

application/json
post
/payment/pay-with-iyzico/initialize

Pay with iyzico (PWI) — Retrieve

post

Queries the PWI transaction result by token.

Header parameters
AuthorizationstringRequired

Authorization header; starts with IYZWSv2 and is a signed hash in Base64.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequiredExample: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
conversationIdstringOptional

Request/response correlation ID.

Example: 8152109759
tokenstringRequired

Token of the PWI session to be retrieved.

Example: da7431f4-89fc-4f65-8533-d83a4fede7d9
Responses
200

Successful response (payment completed)

application/json
post
/payment/iyzipos/checkoutform/auth/ecom/detail

Last updated