Refund & Cancel

Refund

post

Used to refund a payment. The refund is executed over paymentTransactionId (per basket item). You can perform a full or partial refund for the payment amount.

Header parameters
AuthorizationstringRequired

Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Example: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-TypestringRequired

Content type of the request body.

Example: application/json
Body
paymentTransactionIdstringRequired

Basket item (payment breakdown) identifier (paymentTransactionId) to be refunded.

Example: 27169345
conversationIdstringOptional

Unique ID for request/response correlation.

Example: 123456789
ipstringOptional

IP address the request is sent from.

Example: 1.1.1.1
localestring · enumOptional

Response language.

Possible values:
pricedecimalRequired

Amount to refund. Must not exceed the item price.

Example: 5
currencystringOptional

Payment currency.

Example: TRY
Responses
200

Successful response

application/json
post
/payment/refund

Refund V2

post

Enables refunds over paymentId. No item breakdown is required; the system determines the basket item to refund. You can perform a full or partial refund for the payment amount.

Header parameters
AuthorizationstringRequired

Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Example: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-TypestringRequired

Content type of the request body.

Example: application/json
Body
paymentIdstringRequired

Payment identifier to be refunded.

Example: 25180208
conversationIdstringOptional

Unique ID for request/response correlation.

Example: 123456789
ipstringOptional

IP address the request is sent from.

Example: 1.1.1.1
localestring · enumOptional

Response language.

Example: enPossible values:
pricedecimalRequired

Amount to refund. Must not exceed the payment total.

Example: 5
currencystringOptional

Payment currency.

Example: TRY
Responses
200

Successful response

application/json
post
/v2/payment/refund

Cancel

post

Used to cancel a payment.

Header parameters
AuthorizationstringRequired

Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Example: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-TypestringRequired

Content type of the request body.

Example: application/json
Body
paymentIdstringRequired

The unique payment number assigned by iyzico for the payment you want to cancel.

Example: 25180158
conversationIdstringOptional

Unique ID for request/response correlation. Returned as-is in the response.

Example: 123456789
ipstringOptional

IP address the request is sent from.

Example: 1.1.1.1
localestring · enumOptional

Response language for iyzico messages.

Example: enPossible values:
Responses
200

Successful response

application/json
post
/payment/cancel

Last updated