# REST Resource: datafeedstatuses

- [Resource: DatafeedStatus](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatus)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatus.SCHEMA_REPRESENTATION)
- [DatafeedStatusError](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError.SCHEMA_REPRESENTATION)
- [DatafeedStatusExample](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusExample)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusExample.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#METHODS_SUMMARY)

## Resource: DatafeedStatus

The status of a datafeed, that is, the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.

| JSON representation |
|---|
| ``` { "datafeedId": string, "processingStatus": string, "errors": [ { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError`) } ], "warnings": [ { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError`) } ], "itemsTotal": string, "itemsValid": string, "lastUploadDate": string, "country": string, "feedLabel": string, "language": string, "kind": string } ``` |

| Fields ||
|---|---|
| `datafeedId` | `string` The ID of the feed for which the status is reported. |
| `processingStatus` | `string` The processing status of the feed. Acceptable values are: - "`"`failure`": The feed could not be processed or all items had errors.`" - "`in progress`": The feed is being processed. - "`none`": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. - "`success`": The feed was processed successfully, though some items might have had errors. <br /> |
| `errors[]` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError`)`` The list of errors occurring in the feed. |
| `warnings[]` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusError`)`` The list of errors occurring in the feed. |
| `itemsTotal` | `string` The number of items in the feed that were processed. |
| `itemsValid` | `string` The number of items in the feed that were valid. |
| `lastUploadDate` | `string` The last date at which the feed was uploaded. |
| `country` | `string` The country for which the status is reported, represented as a [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml). |
| `feedLabel` | `string` The feed label status is reported for. |
| `language` | `string` The two-letter ISO 639-1 language for which the status is reported. |
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string "`content#datafeedStatus`" |

## DatafeedStatusError

An error occurring in the feed, like "invalid price".

| JSON representation |
|---|
| ``` { "code": string, "count": string, "message": string, "examples": [ { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusExample`) } ] } ``` |

| Fields ||
|---|---|
| `code` | `string` The code of the error, for example, "validation/invalid_value". |
| `count` | `string` The number of occurrences of the error in the feed. |
| `message` | `string` The error message, for example, "Invalid price". |
| `examples[]` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses#DatafeedStatusExample`)`` A list of example occurrences of the error, grouped by product. |

## DatafeedStatusExample

An example occurrence for a particular error.

| JSON representation |
|---|
| ``` { "lineNumber": string, "itemId": string, "value": string } ``` |

| Fields ||
|---|---|
| `lineNumber` | `string` Line number in the data feed where the example is found. |
| `itemId` | `string` The ID of the example item. |
| `value` | `string` The problematic value. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses/custombatch` | Gets multiple Merchant Center datafeed statuses in a single request. |
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses/get` | Retrieves the status of a datafeed from your Merchant Center account. |
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/datafeedstatuses/list` | Lists the statuses of the datafeeds in your Merchant Center account. |