pos

POST /{merchantId}/pos/{targetMerchantId}/sale

Submit a sale event 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.

quantitystring int64

Required. The relative change of the available quantity. Negative for items returned.

targetCountrystring

Required. The CLDR territory code for the item.

timestampstring

Required. The inventory timestamp, in ISO 8601 format.

gtinstring

Global Trade Item Number.

saleIdstring

A unique ID to group items from the same sale event.

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.

itemIdstring

Required. A unique identifier for the item.

Response

Successful response

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.

saleIdstring

A unique ID to group items from the same sale event.

gtinstring

Global Trade Item Number.

timestampstring

Required. The inventory timestamp, in ISO 8601 format.

targetCountrystring

Required. The CLDR territory code for the item.

kindstring

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

quantitystring int64

Required. The relative change of the available quantity. Negative for items returned.

contentLanguagestring

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

Changes

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