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