コンテンツにスキップ

お店の基本情報を読む

GET
/api/v1/settings/salon
curl --request GET \
--url https://app.goyoka.com/api/v1/settings/salon \
--header 'Authorization: Bearer <token>'

保存された基本情報9欄・お店のデザイン(accent_color・design。管理画面では設定の「お店のデザイン」)と読取専用のlogo_url⁠を返します。読み取りでは設定行や文面を作らず、メールも送りません。logo_url⁠は更新できません。

ロゴの変更は管理画面で行ってください。

必要な範囲: salon-settings:read

お店の基本情報を読む

メディアタイプapplication/json
object
data
必須
object
public_theme
必須
string
accent_color
必須

お店の明るいときのアクセント色(ボタン・選択の印)。#RRGGBB、null⁠はgoyoka⁠の緑。public_theme⁠がLIGHT⁠かAUTO(明るい端末)の公開ページと、design_source⁠がshop⁠の埋め込みに当たる。

string | null
design
必須

お店のデザイン。予約・お問い合わせ・イベント・予約の確認などの公開ページと案内ページ、design_source⁠がshop⁠の埋め込みに当たる(案内ページの見出しとボタンの色は案内ページの配色。ここでは背景・カードの地・文字・線・フォント・角・ボタンの形・余白)。design⁠の色(背景・カードの地・文字・補足の文字・線)は明るいときの色で、暗いときの色はdark_colors⁠に分けて持つ。background⁠のtransparent⁠はgoyoka⁠の標準の地。保存は形だけを確かめ、色の差(読みやすさ)では断らない。文字と地・アクセントと地の差が十分あるか(文字4.5:1・印3:1以上が目安)は、設定する側が確かめる。案内ページはいつも明るい見た目なので、明るいときの色が使われる。

object
background
必須

フォームの外側の地。transparent⁠はホームページの地がそのまま見える(標準)。

string
11文字以下 /^(transparent|#[0-9a-f]{6})$/i/
surface
必須

カード・入力欄の地。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
text
必須

本文の文字。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
muted_text
必須

説明・注記の文字。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
border
必須

カードの縁・区切り・入力欄の枠。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
radius
必須

角の丸み。none=角なし、small、medium=標準、large。

string
取りうる値: none small medium large
button_shape
必須

ボタンの形。square=四角、rounded=角丸(標準)、pill=まるい。

string
取りうる値: square rounded pill
font
必須

本文のフォント。same_as_heading=見出しと同じ(見出しが標準なら端末のゴシック)。gothic=端末のゴシック(標準)、mincho=端末の明朝、noto_sans_jp・zen_kaku_gothic_new・biz_udpgothic=ゴシック、zen_maru_gothic・m_plus_rounded_1c=丸ゴシック、noto_serif_jp・shippori_mincho・zen_old_mincho=明朝。gothic・mincho以外はGoogle のフォント配信から読み込む。

string
取りうる値: same_as_heading gothic mincho noto_sans_jp zen_kaku_gothic_new biz_udpgothic zen_maru_gothic m_plus_rounded_1c noto_serif_jp shippori_mincho zen_old_mincho
heading_font
必須

見出しのフォント。見出しと、イベントの題に効く。null⁠は標準(イベントの題は明朝、ほかの見出しは本文と同じ)。選べる値はfont⁠からsame_as_heading⁠を除いたもの。

string | null
取りうる値: gothic mincho noto_sans_jp zen_kaku_gothic_new biz_udpgothic zen_maru_gothic m_plus_rounded_1c noto_serif_jp shippori_mincho zen_old_mincho
shop_name_font
必須

お店の名前のフォント。null⁠は見出しと同じ(見出しも標準なら明朝)。選べる値はheading_font⁠と同じ。

string | null
取りうる値: gothic mincho noto_sans_jp zen_kaku_gothic_new biz_udpgothic zen_maru_gothic m_plus_rounded_1c noto_serif_jp shippori_mincho zen_old_mincho
spacing
必須

余白。normal=標準、roomy=ゆったり。

string
取りうる値: normal roomy
menu_style
必須

予約・イベントの申し込みでのメニューの並べ方。panel=1枚の枠の中に線で区切って並べる(標準)、card=1⁠つずつのカード、lines=外の枠なしで区切り線だけ、compact=1行に名前と値段(説明は省く。メニューが多いお店向け)。

string
取りうる値: panel card lines compact
logo_shape
必須

お店のロゴの形。circle=丸の中に収める(標準)、wide=切り取らずそのままの形(横長の文字ロゴ向け)。お店のデザインだけで効く(埋め込みにはお店のロゴを出さない)。

string
取りうる値: circle wide
shop_name_display
必須

お店の名前の文字。show=出す(標準)、hide=ロゴがあるときは隠す(ロゴに名前が入っているお店向け。ロゴが無ければ名前を出す)。お店のデザインだけで効く。

string
取りうる値: show hide
goyoka_credit
必須

お客様の画面の下に出す小さな goyoka の文字ロゴ(goyoka.com へのリンク)。show=出す(標準)、hide=出さない。hide が効くのはよかプラン以上だけで、無料プランでは hide にしても出る。お店のデザインだけで効く。

string
取りうる値: show hide
dark_accent_color
必須

お店の暗いときのアクセント色。#RRGGBB、null⁠はgoyoka⁠の暗い見た目の緑。public_theme⁠がDARK⁠かAUTO(暗い端末)のときに当たる。暗い地で読める明るめの色にする。

string | null
dark_colors
必須

お店の暗いときの色(背景・カードの地・文字・補足の文字・線)。public_theme⁠がDARK⁠かAUTO(暗い端末)のときに当たる。フォント・角・ボタンの形・余白・メニューの並べ方はdesign⁠の1組を明暗で共通に使う。暗い地で読める色にする。

object
background
必須

フォームの外側の地。transparent⁠はホームページの地がそのまま見える(標準)。

string
11文字以下 /^(transparent|#[0-9a-f]{6})$/i/
surface
必須

カード・入力欄の地。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
text
必須

本文の文字。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
muted_text
必須

説明・注記の文字。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
border
必須

カードの縁・区切り・入力欄の枠。null⁠は標準。

string | null
7文字以下 /^#[0-9a-f]{6}$/i/
name
必須
string
tagline
必須
string | null
base_location_name
必須
string | null
base_location_address
必須
string | null
online_meeting_url
必須
string | null
payment_note_in_person
必須
string | null
payment_note_online
必須
string | null
payment_note_remote
必須
string | null
logo_url
必須
string | null
例
{
"data": {
"design": {
"radius": "none",
"button_shape": "square",
"font": "same_as_heading",
"heading_font": "gothic",
"shop_name_font": "gothic",
"spacing": "normal",
"menu_style": "panel",
"logo_shape": "circle",
"shop_name_display": "show",
"goyoka_credit": "show"
}
}
}

利用できないヘッダ

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

鍵が無い・無効

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

範囲不足

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

見つからない

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

予約・冪等キーの競合

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

本文が1 MiB⁠を超えている

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

入力の検証失敗

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

回数の上限

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}
RateLimit-Limit
integer
>= 1

固定窓内の回数上限

RateLimit-Remaining
integer

固定窓内の残り回数

RateLimit-Reset
integer

窓終了までの秒数

Retry-After
integer
>= 1

再試行までの待機秒数

内部エラー

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}