REST Resource: accounts.lfpInventories
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
리소스: LfpInventory
JSON 표현 |
{
"name": string,
"targetAccount": string,
"storeCode": string,
"offerId": string,
"regionCode": string,
"contentLanguage": string,
"price": {
object (Price )
},
"availability": string,
"collectionTime": string,
"gtin": string,
"quantity": string,
"pickupMethod": string,
"pickupSla": string,
"feedLabel": string
} |
필드 |
name |
string
출력 전용입니다. 식별자. LfpInventory 리소스의 이름입니다. 형식: accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}
|
targetAccount |
string (int64 format)
필수 항목입니다. 인벤토리를 제출할 판매자의 판매자 센터 ID입니다.
|
storeCode |
string
필수 항목입니다. 판매자 매장의 식별자입니다. InsertLfpStore 를 통해 삽입된 판매점 코드 또는 비즈니스 프로필의 판매점 코드입니다.
|
offerId |
string
필수 항목입니다. 변경할 수 없습니다. 제품의 고유 식별자입니다. 판매자와 관련하여 인벤토리와 판매가 모두 제출된 경우 이 ID는 동일한 제품에 대해 일치해야 합니다. 참고: 판매자가 같은 제품을 새 제품과 중고 제품으로 판매하는 경우 서로 다른 ID를 사용해야 합니다.
|
regionCode |
string
필수 항목입니다. 제품이 판매되는 국가의 CLDR 지역 코드입니다.
|
contentLanguage |
string
필수 항목입니다. 상품의 ISO 639-1 언어 코드(두 글자)
|
price |
object (Price )
선택사항입니다. 제품의 현재 가격입니다.
|
availability |
string
필수 항목입니다. 이 매장에서 제품을 구매할 수 있는지 여부입니다. 허용되는 속성 값은 오프라인 제품 인벤토리 데이터 사양을 참고하세요.
|
collectionTime |
string (Timestamp format)
선택사항입니다. 인벤토리가 수집된 시간입니다. 설정하지 않으면 인벤토리가 제출된 시간으로 설정됩니다.
|
gtin |
string
선택사항입니다. 제품의 국제거래단품식별코드입니다.
|
quantity |
string (int64 format)
선택사항입니다. 이 매장에서 구매할 수 있는 제품의 수량입니다. 0보다 크거나 같아야 합니다.
|
pickupMethod |
string
선택사항입니다. 이 제품에 지원되는 수령 방법입니다. 값이 '지원되지 않음'이 아닌 한 이 필드는 pickupSla 와 함께 제출해야 합니다. 허용되는 속성 값은 오프라인 제품 인벤토리 데이터 사양을 참고하세요.
|
pickupSla |
string
선택사항입니다. 주문 날짜 기준 주문 배송 예상 날짜입니다. pickupMethod 와 함께 제출해야 합니다. 허용되는 속성 값은 오프라인 제품 인벤토리 데이터 사양을 참고하세요.
|
feedLabel |
string
선택사항입니다. 제품의 피드 라벨입니다. 설정하지 않으면 기본값은 regionCode 입니다.
|
메서드 |
|
지정된 타겟 판매자 계정의 LfpInventory 리소스를 삽입합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-21(UTC)
[null,null,["최종 업데이트: 2024-11-21(UTC)"],[[["\u003cp\u003eThe LfpInventory resource represents a merchant's local product inventory, including details like price, availability, and quantity.\u003c/p\u003e\n"],["\u003cp\u003eIt requires key identifiers such as targetAccount, storeCode, and offerId to uniquely identify products.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can manage their local product inventory by inserting LfpInventory resources using the \u003ccode\u003einsert\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe resource utilizes standardized codes for region, language, and product identifiers like GTIN for consistency.\u003c/p\u003e\n"],["\u003cp\u003eOptional fields like pickupMethod and pickupSla allow merchants to specify order fulfillment options.\u003c/p\u003e\n"]]],["The `LfpInventory` resource represents a merchant's local product inventory. Key information includes `targetAccount` (merchant ID), `storeCode`, `offerId` (product ID), `regionCode`, and `contentLanguage`. It also contains product details like `price`, `availability`, `gtin`, and `quantity`. Optional data points are `collectionTime`, `pickupMethod`, `pickupSla`, and `feedLabel`. The primary action is the `insert` method, which submits inventory data for a specific merchant account.\n"],null,["# REST Resource: accounts.lfpInventories\n\n- [Resource: LfpInventory](#LfpInventory)\n - [JSON representation](#LfpInventory.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LfpInventory\n----------------------\n\nLocal Inventory for the merchant.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"targetAccount\": string, \"storeCode\": string, \"offerId\": string, \"regionCode\": string, \"contentLanguage\": string, \"price\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"availability\": string, \"collectionTime\": string, \"gtin\": string, \"quantity\": string, \"pickupMethod\": string, \"pickupSla\": string, \"feedLabel\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Identifier. The name for the `LfpInventory` resource. Format: `accounts/{account}/lfpInventories/{target_merchant}~{storeCode}~{offer}` |\n| `targetAccount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The Merchant Center ID of the merchant to submit the inventory for. |\n| `storeCode` | `string` Required. The identifier of the merchant's store. Either the store code inserted through `InsertLfpStore` or the store code in the Business Profile. |\n| `offerId` | `string` Required. Immutable. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product. **Note**: if the merchant sells the same product new and used, they should have different IDs. |\n| `regionCode` | `string` Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold. |\n| `contentLanguage` | `string` Required. The two-letter ISO 639-1 language code for the item. |\n| `price` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Optional. The current price of the product. |\n| `availability` | `string` Required. Availability of the product at this store. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342) |\n| `collectionTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted. |\n| `gtin` | `string` Optional. The Global Trade Item Number of the product. |\n| `quantity` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Optional. Quantity of the product available at this store. Must be greater than or equal to zero. |\n| `pickupMethod` | `string` Optional. Supported pickup method for this offer. Unless the value is \"not supported\", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342). |\n| `pickupSla` | `string` Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342). |\n| `feedLabel` | `string` Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| ### [insert](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpInventories/insert) | Inserts a `LfpInventory` resource for the given target merchant account. |"]]