Submerchant Price / Item Update
Marketplace product offers;
change the submerchant of the product in an order whose payment has been completed
or update the amount to be transferred to the submerchant
with in the help of following API.
This service is used to modify the payout amount of the submerchant or update the submerchant information based on a single paymentTransaction
Header parameters
AuthorizationstringRequiredExample:
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Content-TypestringRequiredExample:
Request body content type.
application/jsonBody
localestring · enumOptionalExample:
enPossible values: conversationIdstringOptionalExample:
123456789paymentTransactionIdstringRequiredExample:
Payment split id.
20947104subMerchantKeystringRequiredExample:
Submerchant key.
favC6OGPAVHb97HwXG5GPKd4KuE=subMerchantPricenumberRequiredExample:
Amount to be transferred to the submerchant.
11Responses
200
Successful response
application/json
400
Error response
application/json
put
/payment/itemPUT https://api.iyzipay.com/payment/item
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"paymentTransactionId" : "20947104",
"subMerchantKey" : "favC6OGPAVHb97HwXG5GPKd4KuE=",
"subMerchantPrice" : "11.0"
}
{
"status": "success",
"locale": "en",
"systemTime": 1686442628687,
"conversationId": "123456789",
"itemId": "BI102",
"paymentTransactionId": "20947104",
"transactionStatus": 1,
"price": 50,
"paidPrice": 50,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 2,
"iyziCommissionFee": 0.125,
"blockageRate": 0,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"blockageResolvedDate": "2023-06-19 00:00:00",
"subMerchantKey": "favC6OGPAVHb97HwXG5GPKd4KuE=",
"subMerchantPrice": 11,
"subMerchantPayoutRate": 22,
"subMerchantPayoutAmount": 11,
"merchantPayoutAmount": 36.875,
"convertedPayout": {
"paidPrice": 50,
"iyziCommissionRateAmount": 2,
"iyziCommissionFee": 0.125,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"subMerchantPayoutAmount": 11,
"merchantPayoutAmount": 36.875,
"iyziConversionRate": 0,
"iyziConversionRateAmount": 0,
"currency": "TRY"
}
}Sample Codes
Last updated
