REST Resource: accounts.lfpStores

แหล่งข้อมูล: LfpStore

ร้านค้าสำหรับผู้ขาย ซึ่งจะใช้ในการจับคู่กับร้านค้าใน Google Business Profile ของผู้ขายเป้าหมาย หากไม่พบร้านค้าที่ตรงกัน ระบบจะไม่ใช้สินค้าคงคลังหรือยอดขายที่ส่งมาพร้อมกับรหัสร้านค้า

การแสดง JSON
{
  "name": string,
  "targetAccount": string,
  "storeCode": string,
  "storeAddress": string,
  "gcidCategory": [
    string
  ],
  "matchingState": enum (StoreMatchingState),
  "storeName": string,
  "phoneNumber": string,
  "websiteUri": string,
  "placeId": string,
  "matchingStateHint": string
}
ช่อง
name

string

เอาต์พุตเท่านั้น ตัวระบุ ชื่อทรัพยากร LfpStore รูปแบบ: accounts/{account}/lfpStores/{target_merchant}~{storeCode}

targetAccount

string (int64 format)

ต้องระบุ รหัส Merchant Center ของผู้ขายที่จะใช้ส่งร้านค้า

storeCode

string

ต้องระบุ เปลี่ยนแปลงไม่ได้ ตัวระบุร้านค้าที่ไม่ซ้ำกันสำหรับผู้ขายเป้าหมาย

storeAddress

string

ต้องระบุ ที่อยู่ของร้านค้า ตัวอย่างเช่น 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA

gcidCategory[]

string

ไม่บังคับ รหัสหมวดหมู่ Google My Business

matchingState

enum (StoreMatchingState)

ไม่บังคับ เอาต์พุตเท่านั้น สถานะการจับคู่กับ Google Business Profile ดูรายละเอียดเพิ่มเติมที่ matchingStateHint หากไม่พบรายการที่ตรงกัน

storeName

string

ไม่บังคับ ชื่อผู้ขายหรือร้านค้า

phoneNumber

string

ไม่บังคับ หมายเลขโทรศัพท์ของร้านค้าในรูปแบบ E.164 ตัวอย่าง: +15556767888

websiteUri

string

ไม่บังคับ URL ของเว็บไซต์สำหรับร้านค้าหรือผู้ขาย

placeId

string

ไม่บังคับ รหัส Google Place ของตำแหน่งร้านค้า

matchingStateHint

string

ไม่บังคับ เอาต์พุตเท่านั้น คำแนะนำว่าเหตุใดการจับคู่จึงล้มเหลว โดยจะมีการตั้งค่าก็ต่อเมื่อ matchingState=STORE_MATCHING_STATE_FAILED

โดยค่าที่เป็นไปได้มีดังนี้

  • "linked-store-not-found": ไม่มีร้านค้า Google Business Profile สำหรับการจับคู่
  • "store-match-not-found": LfpStore ที่ระบุไม่สามารถจับคู่กับร้านค้า Google Business Profile ใดๆ ที่เชื่อมต่ออยู่ได้ บัญชี Merchant Center เชื่อมต่อกันอย่างถูกต้องและมีร้านค้าพร้อมให้บริการใน Google Business Profile แต่ที่อยู่ของสถานที่ตั้ง LfpStore ไม่ตรงกับร้านค้าของ Google Business Profile ที่อยู่ อัปเดตที่อยู่LfpStoreหรือที่อยู่ร้านค้าของ Google Business Profile ให้ถูกต้อง
  • "store-match-unverified": ระบบจับคู่ LfpStore ที่ระบุกับร้านค้า Google Business Profile ใดๆ ที่เชื่อมต่อไว้ไม่ได้ เนื่องจากร้านค้า Google Business Profile ที่ตรงกันยังไม่ได้รับการยืนยัน ทำตามขั้นตอนการยืนยันของ Google Business Profile เพื่อจับคู่อย่างถูกต้อง

StoreMatchingState

สถานะของการจับคู่ LfpStore กับ Google Business Profile

Enum
STORE_MATCHING_STATE_UNSPECIFIED ไม่ได้ระบุสถานะการจับคู่ร้านค้า
STORE_MATCHING_STATE_MATCHED จับคู่ LfpStore กับร้านค้า Google Business Profile เรียบร้อยแล้ว
STORE_MATCHING_STATE_FAILED LfpStore ไม่ตรงกับร้านค้า Google Business Profile

เมธอด

delete

ลบร้านค้าของผู้ขายเป้าหมาย

get

เรียกดูข้อมูลเกี่ยวกับร้านค้า

insert

แทรกร้านค้าสำหรับผู้ขายเป้าหมาย

list

แสดงรายการร้านค้าของผู้ขายเป้าหมายที่ระบุโดยตัวกรองใน ListLfpStoresRequest