Aşağıdaki eğitimde, bir hizmetin fiyatını ilişkili personel veya günün saatine ve/veya günün gününe göre farklılaştırmak için feed'lerinizi nasıl uygulamanız gerektiği açıklanmaktadır.
Personel/zaman başına fiyat
Ayarlanması gereken 4 şey vardır:
Satıcı feed'inde her fiyat seçeneği için bir
Merchant.payment_option
ayarlayın- İstediğiniz
price
değerini, belirli bir zaman/personel için hizmetin fiyatına ayarlayın payment_option_id
değerleri aynı toplayıcının tüm satıcıları arasında paylaşıldığı içinpayment_option_id
entegrasyonunuzda benzersiz olmalıdır. Karışıklığı önlemek, sorun giderme ve yönetimi kolaylaştırmak için her satıcının kullandığı tümpayment_option
değerlerini benzersiz birpayment_option_id
ile (yeniden) tanımlamanızı öneririz (aynıpayment_option
başka bir satıcı tarafından kullanılsa bile).- Personel başına fiyat için
payment_option_id
değerini, daha kolay takip edebilmek vepayment_option_id
değerinin tüm entegrasyonunuzda benzersiz olmasını sağlamak amacıylamerchant_id
,service_id
vestaff_id
değerlerinin bir kombinasyonu olarak oluşturmanızı öneririz. - Zaman başına fiyat için
payment_option_id
değerini, daha kolay izleme vepayment_option_id
değerinin tüm entegrasyonunuzda benzersiz olmasını sağlamak amacıylamerchant_id
,service_id
ve bu zamanı temsil eden bir dizenin (evening
,weekends
,sundayafternoon
...) kombinasyonu olarak oluşturmanızı öneririz.
- Kullanılabilirlik düzeyinde fiyatlandırma için kullanıldığında (bu eğitimdeki kullanım alanı) ad ve açıklama temel olarak hata ayıklama amacıyla kullanılır.
- Tek bir satıcı için 100'den fazla
payment_option
değeri ayarlamayınız. 100'den fazlapayment_option
değerine ulaşmayı bekliyorsanız lütfen bu uygulamayı Google temsilciniz tarafından çalıştırın - Bu kullanım alanı için diğer tüm
payment_option
alanları yoksayılabilir
- Personel başına fiyat için
- İstediğiniz
Stok durumu feed'inde,
Merchant
düzeyinde tanımladığınızpayment_option
öğesininpayment_option_id
değerini içeren tek öğe dizisi olarakAvailability.payment_option_id
'ü ayarlayın.Hizmet feed'inde
Service.price
değerini bu hizmetin fiyat aralığının en düşük değerine,Service.price_interpretation
değerini iseSTARTS_AT
olarak ayarlayın.
Personel başına fiyat örneği
Bu örnekte, Robert (kimliği: 1) Jane'den (kimliği: 2) daha deneyimli bir kuafördür ve bu nedenle salon sahibi, Robert için 5 TL daha pahalı bir rezervasyon yapmaya karar vermiştir. Kısa saç kesimi için varsayılan fiyat 20 TL, uzun saç kesimi için varsayılan fiyat 30 TL'dir. Kullanıcı Robert'ı seçerse indirim sırasıyla 25 veya 35 ABD doları olur.
Personel Adı | Kısa saç kesimi | Uzun saç kesimi |
---|---|---|
Ayşe | 20 ABD doları* | 30 ABD doları* |
Remzi | 25 ABD doları | 35 ABD doları |
*hizmet için varsayılan fiyat
Satıcılar
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-staff-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-staff-price-haircut-short-1", "name": "Short haircut (Robert)", "description": "Short hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-short-default", "name": "Short haircut (Default)", "description": "Normal short hair haircut price", "price": { "currency_code": "USD", "price_micros": 20000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-1", "name": "Long haircut (Robert)", "description": "Long hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-default", "name": "Long haircut (Default)", "description": "Normal long hair haircut price", "price": { "currency_code": "USD", "price_micros": 30000000 } } ] } ] }
Hizmetler
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 20000000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 30000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
Kullanılabilirlik
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-default"] } ] } ] }
Zamana göre fiyatlandırma örneği
Bu örnekte, salon 10:00-20:00 arasında açıktır. Salon sahibi, 18:00'den sonra yapılan rezervasyonlar için 5 ABD doları ek ücret eklemeye karar verdi.
Bu müsaitlik durumu örneği, PT saat diliminde 1 Eylül 2018 Cumartesi günü için tanımlanmıştır. 1535821200, ilgili gün için 10:00, 1535850000 ilgili gün için 18:00 ve 1535857200 ilgili gün için 20:00'dir.
Günün saati | Kısa saç kesimi | Uzun saç kesimi |
---|---|---|
10:00 ~ 11:00 | Hong Kong doları | 30 ABD doları |
11:00 ~ 12:00 | Hong Kong doları | 30 ABD doları |
12:00 ~ 13:00 | Hong Kong doları | 30 ABD doları |
13:00 ~ 14:00 | Hong Kong doları | 30 ABD doları |
14:00 ~ 15:00 | Hong Kong doları | 30 ABD doları |
15:00 ~ 16:00 | Hong Kong doları | 30 ABD doları |
16:00 ~ 17:00 | Hong Kong doları | 30 ABD doları |
17:00 ~ 18:00 | Hong Kong doları | 30 ABD doları |
18:00 ~ 19:00 | 25 ABD doları | 35 ABD doları |
19:00 ~ 20:00 | 25 ABD doları | 35 ABD doları |
Satıcılar
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-time-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-time-price-haircut-short-evening", "name": "Short haircut (Evening)", "description": "Short hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-short-default", "name": "Short haircut (Normal)", "description": "Short hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 21000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-evening", "name": "Long haircut (Evening)", "description": "Long hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-default", "name": "Long haircut (Normal)", "description": "Long hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 31000000 } } ] } ] }
Hizmetler
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 2100000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 31000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
Kullanılabilirlik
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-default"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-evening"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-evening"] } ] } ] }