Skip to content

Shop Settings & Profile API Reference ​

The Shop API manages merchant profile information and public storefront display preferences.

Methods ​

  • client.Shop.GetOwner(ctx) -> (*ShopOwner, error)
  • client.Shop.GetSettings(ctx) -> (*ShopSettings, error)
  • client.Shop.UpdateSettings(ctx, req) -> (*ShopSettings, error)

1. Retrieve Shop Owner Profile ​

go
owner, err := client.Shop.GetOwner(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Merchant: %s %s (Type: %s, Email: %s)\n",
	owner.FirstName, owner.LastName, owner.Type, owner.Contact.Email)

2. Update Storefront Preferences ​

go
newTitle := "Official Brand Store"
vacationMode := false

updated, err := client.Shop.UpdateSettings(ctx, &shopier.ShopSettingsUpdateRequest{
	Title:    &newTitle,
	Vacation: &vacationMode,
})
if err != nil {
	log.Fatal(err)
}

fmt.Println("Store Title:", updated.Title)

Data Models & Types ​

ShopOwner ​

Represents identity, contact, and bank settlement details of the merchant.

FieldTypeJSON TagDescription
IDstringidUnique shop owner ID
TypestringtypeAccount type ("personal" or "business")
FirstNamestringfirstNameOwner given name
LastNamestringlastNameOwner surname
ContactShopOwnerContactcontactAddress and telephone details
Company*ShopOwnerCompanycompanyLegal entity registration if business
BankAccountShopOwnerBankAccountbankAccountRegistered settlement payout IBAN

ShopSettings ​

Encapsulates public storefront display and behavior configuration.

FieldTypeJSON TagDescription
NamestringnameShop slug/subdomain (e.g. "adisgroup")
URLstringurlFull storefront URL
TitlestringtitlePublic shop title
SloganstringsloganShop slogan
AnnouncementstringannouncementTop banner announcement text
EmailstringemailCustomer service email
PhonestringphoneCustomer service phone
LanguagestringlanguageStorefront language ("TR" or "EN")
Vacationboolvacationtrue if shop is temporarily paused in vacation mode
CartboolcartMulti-product shopping cart enabled
MobileViewstringmobileView"singleColumn" or "doubleColumn"
OutOfStockbooloutOfStockAllow display of out-of-stock items