ฟีดการค้าปลีกสําหรับการผสานรวม Starter

คุณมี 2 ตัวเลือกในการระบุ OrderOnlineMetadata เป็นส่วนหนึ่งของ action_link

  1. ลิงก์เดียวที่ให้ผู้ใช้เลือกทั้งการนําส่งและการมารับสินค้าเป็นวิธีการนําส่ง
  2. ลิงก์ต่างๆ สําหรับการนําส่งและการรับสินค้า

สําหรับ (1) ใช้ตัวอย่างในแท็บ "ผู้ขาย - แบบรวม" (2) ใช้ตัวอย่างในแท็บ "ผู้ขาย - แยกต่างหาก"

ผู้ขาย - รวม

{
  "metadata": {
    "generation_timestamp": "1467993600",
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "total_shards": 1
  },
  "merchant": [
    {
      "merchant_id": "merch34",
      "name": "Sample Grocery Store",
      "telephone": "+1-650-123-4567",
      "url": "https://www.grocerystoresamplewebsite.com",
      "category": "store",
      "geo": {
        "address": {
          "street_address": "803 11th Avenue",
          "locality": "Sunnyvale",
          "region": "CA",
          "country": "USA",
          "postal_code": "94089"
        }
      },
      "action_link": [
        {
          "url": "https://www.rwgpartnerwebsite.com/shopping/merch34",
          "action_link_type": "ACTION_LINK_TYPE_SHOP_ONLINE",
          "language": "en",
          "platform": "ACTION_PLATFORM_WEB_APPLICATION"
        },
        {
          "url": "https://www.rwgpartnerwebsite.com/shopping/merch34",
          "action_link_type": "ACTION_LINK_TYPE_SHOP_ONLINE",
          "language": "en",
          "platform": "ACTION_PLATFORM_WEB_APPLICATION",
          "order_online_metadata": {
            "fulfillment_option": [
              {
                "fulfillment_type": "FULFILLMENT_TYPE_DELIVERY",
                "available_day": [
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "1"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601614800"
                    }
                  },
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "2"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601701200"
                    }
                  }
                ],
                "fee_details": {
                  "base_fee": {
                    "base_fee_amount" : {
                      "price_micros": "45000000",
                      "currency_code": "USD"
                    }
                  }
                },
                "minimum_order": {
                  "price_micros": "45000000",
                  "currency_code": "USD"
                }
              },
              {
                "fulfillment_type": "FULFILLMENT_TYPE_PICKUP",
                "available_day": [
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "1"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601614800"
                    }
                  },
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "2"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601701200"
                    }
                  }
                ],
                "fee_details": {
                  "base_fee": {
                    "base_fee_amount" : {
                      "price_micros": "0",
                      "currency_code": "USD"
                    }
                  }
                },
                "minimum_order": {
                  "price_micros": "30000000",
                  "currency_code": "USD"
                }
              }
            ]
          }
        }
      ]
    }
  ]
}

ผู้ขาย - แยกต่างหาก

{
  "metadata": {
    "generation_timestamp": "1467993600",
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "total_shards": 1
  },
  "merchant": [
    {
      "merchant_id": "merch34",
      "name": "Sample Grocery Store",
      "telephone": "+1-650-123-4567",
      "url": "https://www.grocerystoresamplewebsite.com",
      "category": "store",
      "geo": {
        "address": {
          "street_address": "803 11th Avenue",
          "locality": "Sunnyvale",
          "region": "CA",
          "country": "USA",
          "postal_code": "94089"
        }
      },
      "action_link": [
        {
          "url": "https://www.rwgpartnerwebsite.com/shopping/merch34",
          "action_link_type": "ACTION_LINK_TYPE_SHOP_ONLINE",
          "language": "en",
          "platform": "ACTION_PLATFORM_WEB_APPLICATION"
        },
        {
          "url": "https://www.rwgpartnerwebsite.com/shopping/merch34/delivery",
          "action_link_type": "ACTION_LINK_TYPE_SHOP_ONLINE",
          "language": "en",
          "platform": "ACTION_PLATFORM_WEB_APPLICATION",
          "order_online_metadata": {
            "fulfillment_option": [
              {
                "fulfillment_type": "FULFILLMENT_TYPE_DELIVERY",
                "available_day": [
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "1"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601614800"
                    }
                  },
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "2"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601701200"
                    }
                  }
                ],
                "fee_details": {
                  "base_fee": {
                    "base_fee_amount" : {
                      "price_micros": "45000000",
                      "currency_code": "USD"
                    }
                  }
                },
                "minimum_order": {
                  "price_micros": "45000000",
                  "currency_code": "USD"
                }
              }
            ]
          }
        },
        {
          "url": "https://www.rwgpartnerwebsite.com/shopping/merch34/pickup",
          "action_link_type": "ACTION_LINK_TYPE_SHOP_ONLINE",
          "language": "en",
          "platform": "ACTION_PLATFORM_WEB_APPLICATION",
          "order_online_metadata": {
            "fulfillment_option": [
              {
                "fulfillment_type": "FULFILLMENT_TYPE_PICKUP",
                "available_day": [
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "1"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601614800"
                    }
                  },
                  {
                    "fulfillment_date": {
                      "year": "2020",
                      "month": "10",
                      "day": "2"
                    },
                    "last_ordering_time":  {
                      "seconds": "1601701200"
                    }
                  }
                ],
                "fee_details": {
                  "base_fee": {
                    "base_fee_amount" : {
                      "price_micros": "0",
                      "currency_code": "USD"
                    }
                  }
                },
                "minimum_order": {
                  "price_micros": "30000000",
                  "currency_code": "USD"
                }
              }
            ]
          }
        }
      ]
    }
  ]
}