pos

POST /{merchantId}/pos/{targetMerchantId}/inventory

Submit inventory for the given merchant.

Request

  • Base URL
    https://shoppingcontent.googleapis.com/content/v2.1
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/content
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/content
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

merchantIdstring required

The ID of the POS or inventory data provider.

targetMerchantIdstring required

The ID of the target merchant.

Request body

contentLanguagestring

Required. The two-letter ISO 639-1 language code for the item.

pickupSlastring

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 feed specification.

timestampstring

Required. The inventory timestamp, in ISO 8601 format.

targetCountrystring

Required. The CLDR territory code for the item.

quantitystring int64

Required. The available quantity of the item.

gtinstring

Global Trade Item Number.

itemIdstring

Required. A unique identifier for the item.

pickupMethodstring

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 feed specification.

storeCodestring

Required. The identifier of the merchant's store. Either a storeCode inserted through the API or the code of the store in a Business Profile.

Response

Successful response

gtinstring

Global Trade Item Number.

pickupMethodstring

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 feed specification.

itemIdstring

Required. A unique identifier for the item.

storeCodestring

Required. The identifier of the merchant's store. Either a storeCode inserted through the API or the code of the store in a Business Profile.

contentLanguagestring

Required. The two-letter ISO 639-1 language code for the item.

pickupSlastring

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 feed specification.

targetCountrystring

Required. The CLDR territory code for the item.

timestampstring

Required. The inventory timestamp, in ISO 8601 format.

kindstring

Identifies what kind of resource this is. Value: the fixed string "content#posInventoryResponse".

quantitystring int64

Required. The available quantity of the item.

Changes

No recorded changes to this operation across all 1 revision of this API.