palbaseDocs

Palbase Payments · API

POST/payments/sub-merchants

Create or update marketplace sub-merchant

Creates or updates a marketplace sub-merchant on iyzico Pazaryeri or Stripe Connect and seals KYC details at rest. Not an environment token's: where a seller is paid outlives the token.

Called by your server, with the project's secret key.

Request body

addressstring · optionalMerchant business address.
channelstring · optionalOptional channel key override.
contact_namestring · optionalAuthorized representative first name.
contact_surnamestring · optionalAuthorized representative surname.
countrystring · optionalISO 3166-1 alpha-2 country code.
currencystring · optional3-letter ISO 4217 settlement currency.
emailstring · optionalMerchant contact email.
gsm_numberstring · optionalMerchant E.164 phone number.
ibanstring · optionalSettlement IBAN.
identity_numberstring · optionalNational identity number (TCKN).
legal_company_titlestring · optionalRegistered legal entity title.
metadataobject · optionalOptional key-value metadata.
namestring · optionalMerchant display name.
seller_refstring · requiredChannel-independent seller identifier.
sub_merchant_typestring · optionalpersonal, private_company, limited_or_joint_stock, express, custom, or standard.
swift_codestring · optionalOptional SWIFT/BIC code.
tax_numberstring · optionalTax identification number (VKN).
tax_officestring · optionalTax office name.
curl
curl -X POST "https://<your-ref>.palbase.studio/payments/sub-merchants" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"seller_ref":"string"}'

Responses

201Sub-merchant upserted

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation UpsertSubMerchant of payments's contract.