인벤토리 관리 이전

Merchant API를 사용하여 오프라인 (매장) 및 지역 인벤토리를 관리할 수 있습니다.

요청

Merchant Inventories API에는 다음 요청 URL 형식을 사용하세요.

POST https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/regionalInventories
POST https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/localInventories

{PARENT}의 형식은 accounts/{ACCOUNT_ID}/products/ {PRODUCT_ID}입니다.

다음은 오프라인 매장 인벤토리 요청의 샘플 비교입니다.

항목 Content API for Shopping Merchant API
URL https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/products/{PRODUCT_ID}/localinventory https://merchantapi.googleapis.com/inventories/v1beta/{PARENT}/localInventories
식별자 {MERCHANT_ID}/products/{PRODUCT_ID} {NAME}

메서드

Merchant API는 인벤토리 관리를 위한 두 가지 새로운 메서드를 도입합니다.

  • list: 제품의 지역별 인벤토리를 나열할 수 있습니다.
  • delete: 제품의 지역별 및 현지 재고를 삭제할 수 있습니다.

다음은 인벤토리를 관리하는 데 사용할 수 있는 방법을 비교한 것입니다.

메서드 Content API for Shopping Merchant API
customBatch 아니요
insert
list 아니요
delete 아니요

리소스

로컬 및 지역 인벤토리에 변경된 사항은 다음과 같습니다.

Content API for Shopping Merchant API 설명
지원되지 않음 name:string 이 필드는 product 내에서 LocalInventoryRegionalInventory 리소스를 구분합니다. 쇼핑용 Content API는 storeCodeproductId로 오프라인 판매점 인벤토리를 식별하고 regionIdproductId로 지역 인벤토리를 식별합니다.
지원되지 않음 account:string 이 필드는 product, LocalInventory, RegionalInventory가 속한 판매자 계정을 식별합니다.
price: { object (Price) } price: {

object (Price)

}

Price 정의가 변경되었습니다.
salePrice: {

object (Price)

}

salePrice: {

object (Price)

}

Price 정의가 변경되었습니다.
salePriceEffectiveDate: string salePriceEffectiveDate: {

object (TimePeriod)

}

salePriceEffectiveDate는 Merchant Inventories API에서 새 TimePeriod 객체를 사용합니다.
kind:string 지원되지 않음 API가 kind를 지원하지 않습니다.
quantity:string quantity:integer quantity는 오프라인 판매점 인벤토리에서 문자열 대신 정수를 사용합니다.
지원되지 않음 localShippingLabel:string 이 필드는 오프라인 판매점 인벤토리의 오프라인 배송 서비스를 라벨링합니다.
"regionId": string "region": string 이제 지역 인벤토리의 regionIDregion로 변경되었습니다.