LogoLogo
GitHubFeedback Form
EN
EN
  • GETTING STARTED
    • Welcome
    • Preliminaries
      • Sandbox
      • Authentication
        • HMACSHA256 Auth
      • Postman Collections
      • Live vs Sandbox
      • Idempotency
      • Limiters
  • Payment Methods
    • PayWithiyzico (PWI)
      • PWI Implementation
        • PWI-Initialize
        • PWI-Retrieve
        • PWI Sample Imp.
    • Direct Charge
      • Non-3DS
        • NON-3DS Implementation
          • Create Payment
          • Retrieve
      • 3DS
        • 3DS Implementation
          • Init 3DS
          • Auth 3DS
      • Checkout Form (CF)
        • CF Implementation
          • CF-Initialize
          • CF-Retrieve
          • CF Sample Imp.
    • PreAuth & Capture
      • Non-3DS
        • Non-3DS Implementation
          • Create PreAuth Payment
          • Create PostAuth Payment
  • Products
    • Online Payment
    • Marketplace
      • Marketplace Implementation
        • Submerchant
          • Submerchant Update
          • Retrieve Submerchant
          • Submerchant Price / Item Update
        • Online Payment
        • Approval
    • Subscription
      • Subscription Implementation
        • Subscription Product
        • Payment Plan
        • Subscription Transactions
        • Subscriber Transactions
    • Bank Transfer
      • Bank Transfer Implementation
        • Bank Transfer Init
        • Bank Transfer Retrieve
      • Bank Transfer FAQ
    • iyzilink
      • iyzilink API
    • Shopping Credit
      • Shopping Credit Implementation
        • Initialize Shopping Credit
        • Retrieve Shopping Credit
        • Shopping Credit Sample Imp.
  • Advanced
    • Card Storage
    • Reporting Service
    • Refund & Cancel
    • Webhook
    • SFTP
    • Settlement Files
    • Fraud Notifications
    • Installment & BIN Service
    • Refund to Balance
    • Retrieve Payment
    • Response Signature Validation
  • Platforms
    • Woocommerce
    • Opencart
    • Prestashop
    • Magento
    • IdeaSoft
    • Ticimax
    • T-Soft
    • Shopify
    • WIX
  • Add-ons
    • Error Codes
      • Bank Error Codes
    • Test Cards
    • Integration Checklist
    • iyzico Logo Pack
Powered by GitBook
LogoLogo

Company

  • About
  • Career
  • Social
  • Youtube

Community

  • Github
  • Medium

Integration

  • Brand Guide
  • Solution Partners
  • Open Source

Contact

  • Contact Us
  • Support Center
On this page
  • Retrieve Submerchant
  1. Products
  2. Marketplace
  3. Marketplace Implementation
  4. Submerchant

Retrieve Submerchant

In the marketplace solution, you can use the following services to query the documents of your members.

Retrieve Submerchant

POST https://api.iyzipay.com/onboarding/submerchant/detail

Request Body

Name
Type
Description

locale

String

Language (default: tr)

conversationId

String

If set, conversation ID to match request and response

subMerchantExternalId*

String

Merchant identification number on your system

{
"status":"success",
"locale":"tr",
"systemTime":1686439210683,
"conversationId":"123456789",
"name":"Jane's market",
"email":"email@submerchantemail.com",
"gsmNumber":"+905350000000",
"address":"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1",
"iban":"TR180006200119000006672315",
"bankCountry":"TR",
"currency":"TRY",
"taxOffice":"Tax office",
"legalCompanyTitle":"Jane Doe inc",
"subMerchantExternalId":"S492gn22",
"identityNumber":"31300864726",
"subMerchantType":"PRIVATE_COMPANY",
"subMerchantKey":"//1GpuCHXkofxapmacyoimf6u/o="
}

Retrieve Submerchant Response

Input Name
Data Type
Description

name

String

Name of submerchant

gsmNumber

String

GSM number of submerchant

taxOffice

String

Tax office of submerchant

taxNumber

String

Tax number of submerchant

legalCompanyTitle

String

Legal Company Title of submerchant

email

String

Email of submerchant

address

String

Address of submerchant

iban

String

IBAN number of submerchant

subMerchantExternalId

String

Merchant provided of submerchant

subMerchantKey

String

Key of submerchant must be

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

Retrieve Submerchant Sample Requests

$request = new \Iyzipay\Request\RetrieveSubMerchantRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setSubMerchantExternalId("AS49224");

# make request
$subMerchant = \Iyzipay\Model\SubMerchant::retrieve($request, Config::options());
RetrieveSubMerchantRequest request = new RetrieveSubMerchantRequest();
request.Locale = Locale.TR.ToString();
request.ConversationId = "123456789";
request.SubMerchantExternalId = "AS49224";

SubMerchant subMerchant = SubMerchant.Retrieve(request, options);

PrintResponse<SubMerchant>(subMerchant);
RetrieveSubMerchantRequest request = new RetrieveSubMerchantRequest();
request.setLocale(Locale.TR.getValue());
request.setConversationId("123456789");
request.setSubMerchantExternalId("AS49224");

SubMerchant subMerchant = SubMerchant.retrieve(request, options);
iyzipay.subMerchant.retrieve({
    locale: Iyzipay.LOCALE.TR,
    conversationId: '123456789',
    subMerchantExternalId: 'AS49224'
}, function (err, result) {
    console.log(err, result);
    done();
});
request = {
    'locale': 'tr',
    'conversationId': '123456789',
    'subMerchantExternalId': 'AS49224'
}

sub_merchant = iyzipay.SubMerchant().retrieve(request, options)
//Request
{
    "locale": "tr",
    "conversationId": "123456789",
    "subMerchantExternalId": "S49222"
}

//Response
{
"status":"success",
"locale":"tr",
"systemTime":1686439210683,
"conversationId":"123456789",
"name":"Jane's market",
"email":"email@submerchantemail.com",
"gsmNumber":"+905350000000",
"address":"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1",
"iban":"TR180006200119000006672315",
"bankCountry":"TR",
"currency":"TRY",
"taxOffice":"Tax office",
"legalCompanyTitle":"Jane Doe inc",
"subMerchantExternalId":"S49222",
"identityNumber":"31300864726",
"subMerchantType":"PRIVATE_COMPANY",
"subMerchantKey":"//1GpuCHXkofxapmacyoimf6u/o="
}
PreviousSubmerchant UpdateNextSubmerchant Price / Item Update

Last updated 1 year ago