Submerchant Update

This service allows you to update submerchant accounts by providing their necessary details.

In the process of updating submerchants, it's important to note that you cannot change the submerchant type. Once a submerchant is created with a specific type, it cannot be modified to a different type. Therefore, it's crucial to ensure that the correct submerchant type is selected during the initial setup.

All of the submerchant types are capable of update operations;

  • Individual

  • Sole Proprietorship

  • Limited/Incorporated Company

Individual Submerchant Update Request

PUT https://api.iyzipay.com/onboarding/submerchant

Request Body

NameTypeDescription

locale

String

Language (default: tr)

conversationId

String

If set, conversation ID to match request and response

address*

String

Address of submerchant

contactName*

String

Contact name of submerchant

contactSurname*

String

Surname of submerchant

email*

String

Email of submerchant

name

String

Name of submerchant

iban*

String

IBAN of submerchant. Its expected that contactName and contactSurname matches with IBAN. Even if it left blank while creating the submerchant, it must be filled before approving the payment.

identityNumber

String

ID of submerchant

currency

String

Default is TL. Alternatives; USD, EUR, GBP, CHF and NOK

subMerchantKey

String

Key of submerchant

Sole Proprietorship Submerchant Update Request

PUT https://api.iyzipay.com/onboarding/submerchant

Request Body

NameTypeDescription

locale

String

Language (default: tr)

conversationId

String

If set, conversation ID to match request and response

address*

String

Address of submerchant

contactName*

String

Contact name of submerchant

contactSurname*

String

Surname of submerchant

email*

String

Email of submerchant

name

String

Name of submerchant

iban*

String

IBAN of submerchant. Its expected that contactName and contactSurname matches with IBAN. Even if it left blank while creating the submerchant, it must be filled before approving the payment.

identityNumber

String

ID of submerchant

currency

String

Default is TL. Alternatives; USD, EUR, GBP, CHF and NOK

subMerchantKey

String

Key of submerchant

taxOffice*

String

Tax office of submerchant

legalCompanyTitle*

String

Legal Company Title of submerchant

Limited/Incorporated Company Submerchant Update Request

PUT https://api.iyzipay.com/onboarding/submerchant

Request Body

NameTypeDescription

locale

String

Language (default: tr)

conversationId

String

If set, conversation ID to match request and response

address*

String

Address of submerchant

contactName*

String

Contact name of submerchant

contactSurname*

String

Surname of submerchant

email*

String

Email of submerchant

name

String

Name of submerchant

iban*

String

IBAN of submerchant. Its expected that contactName and contactSurname matches with IBAN. Even if it left blank while creating the submerchant, it must be filled before approving the payment.

identityNumber

String

ID of submerchant

currency

String

Default is TL. Alternatives; USD, EUR, GBP, CHF and NOK

subMerchantKey*

String

Key of submerchant

taxOffice*

String

Tax office of submerchant

legalCompanyTitle*

String

Legal Company Title of submerchant

Submerchant Update Response

Output NameTypeDescription

status

String

Service response result (success / failure)

errorCode

String

Error code if service response status is failure

errorMessage

String

Error message if service response status is failure

errorGroup

String

Error group if service response status is failure

locale

String

Language (default: tr)

systemTime

Integer

Response system timestamp value

conversationId

String

If set, conversation ID to match request and response

Submerchant Update Sample Codes

Individual Submerchant Update Request;

$request = new \Iyzipay\Request\UpdateSubMerchantRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantKey("sub merchant key");
    $request->setIban("TR630006200027700006678204");
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setContactName("Jane");
    $request->setContactSurname("Doe");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("Jane's market");
    $request->setIdentityNumber("31300864726");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);

    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options());

Sole Proprietorship Submerchant Update Request;

$request = new \Iyzipay\Request\UpdateSubMerchantRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setSubMerchantKey("sub merchant key");
$request->setIban("TR630006200027700006678204");
$request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$request->setContactName("Jane");
$request->setContactSurname("Doe");
$request->setEmail("email@submerchantemail.com");
$request->setGsmNumber("+905350000000");
$request->setName("Jane's market");
$request->setIdentityNumber("31300864726");
$request->setCurrency(\Iyzipay\Model\Currency::TL);

$subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options());

Limited/Incorporated Company Submerchant Update Request;

$request = new \Iyzipay\Request\UpdateSubMerchantRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setSubMerchantKey("sub merchant key");
$request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$request->setTaxOffice("Tax office");
$request->setTaxNumber("9261877");
$request->setLegalCompanyTitle("ABC inc");
$request->setEmail("email@submerchantemail.com");
$request->setGsmNumber("+905350000000");
$request->setName("Jane's market");
$request->setIban("TR180006200119000006672315");
$request->setCurrency(\Iyzipay\Model\Currency::TL);

$subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options());

Last updated