Submerchant 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.

Submerchant Item Update

POST https://api.iyzipay.com/payment/item

Request Body

NameTypeDescription

locale

String

Language (default: tr)

conversationId

String

If set, conversation ID to match request and response

paymentTransactionId*

String

ID of basket item. Merchants should keep payment ID in their system (this ID will be used for cancel requests)

subMerchantPrice*

String

Price that have been plan to transfer submerchant account.

subMerchantKey*

String

Key of submerchant

{
    "status": "success",
    "locale": "tr",
    "systemTime": 1686442628687,
    "conversationId": "123456789",
    "itemId": "BI102",
    "paymentTransactionId": "20947104",
    "transactionStatus": 1,
    "price": 50.00000000,
    "paidPrice": 50.00000000,
    "merchantCommissionRate": 0E-8,
    "merchantCommissionRateAmount": 0E-8,
    "iyziCommissionRateAmount": 2.00000000,
    "iyziCommissionFee": 0.12500000,
    "blockageRate": 0E-8,
    "blockageRateAmountMerchant": 0E-8,
    "blockageRateAmountSubMerchant": 0,
    "blockageResolvedDate": "2023-06-19 00:00:00",
    "subMerchantKey": "favC6OGPAVHb97HwXG5GPKd4KuE=",
    "subMerchantPrice": 11.0,
    "subMerchantPayoutRate": 22.00000000,
    "subMerchantPayoutAmount": 11.0,
    "merchantPayoutAmount": 36.87500000,
    "convertedPayout": {
        "paidPrice": 50.00000000,
        "iyziCommissionRateAmount": 2.00000000,
        "iyziCommissionFee": 0.12500000,
        "blockageRateAmountMerchant": 0E-8,
        "blockageRateAmountSubMerchant": 0E-8,
        "subMerchantPayoutAmount": 11.00000000,
        "merchantPayoutAmount": 36.87500000,
        "iyziConversionRate": 0E-8,
        "iyziConversionRateAmount": 0E-8,
        "currency": "TRY"
    }
}

Submerchant Item Update Sample Requests

$request = new \Iyzipay\Request\SubMerchantPaymentItemUpdateRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("11606407");
$request->setSubMerchantKey("dVNPU4zjThEHTRqlExIhh7VVSBA=");
$request->setSubMerchantPrice(0.2);

$result = \Iyzipay\Model\SubMerchantPaymentItemUpdate::create($request, Config::options());

Last updated