---
title: "Status Products / Status Queues / Status Commands"
url: "https://developer.migros.ch/apis/status-products-status-queues-status-commands-8/versions/1f3ba4ff-c5c4-4896-a68d-d5d9c2eccd98"
---

# Status Products / Status Queues / Status Commands

OpenAPI specification document.

```json
{"components":{"parameters":{"id":{"description":"Resource ID or slug (if available).","in":"path","name":"id","required":true,"schema":{"type":"string"}}},"responses":{},"schemas":{},"securitySchemes":{"Kong-Api-Key":{"description":"Kong key-auth authentication","in":"header","name":"X-Api-Key","type":"apiKey"},"basicAuth":{"scheme":"basic","type":"http"}}},"info":{"contact":{"email":"arg_mgb-udp-products-services@mgb.ch","name":"MGB-UDP-Products-Services"},"description":"[internal] Debug routes to get information about the import state of a product, import commands and queue sizes","title":"Status Products / Status Queues / Status Commands","version":"8"},"openapi":"3.0.0","paths":{"/migros/products/v8/status/commands":{"get":{"description":"It specifies the maximum number of resources that can be fetched at once.","operationId":"get-status-commands","parameters":[{"description":"Shows only runs that started after this date (if not set, it's set to two days ago)","in":"query","name":"start_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Shows only runs that were modified after this date","in":"query","name":"modified_date","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filtering by state of the command runs","in":"query","name":"state","required":false,"schema":{"enum":["running","successful","crashed"],"type":"string"}},{"description":"Filtering by the name of the command","in":"query","name":"command","required":false,"schema":{"type":"string"}},{"description":"Given a UUID it will only show the children of that command run. If '1' is given it only shows command runs without any parent.","in":"query","name":"parent","required":false,"schema":{"type":"string"}},{"description":"Filter on automated or manual jobs. If not specified, both types are returned.","in":"query","name":"automated_job","required":false,"schema":{"type":"boolean"}},{"description":"Maximum number of results (max 2000).","in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":1000,"minimum":0,"type":"integer"}},{"description":"Result set offset.","in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"type":"integer"}}],"responses":{"200":{"description":"Returned when successful"},"400":{"description":"When request params are invalid"}},"summary":"Shows an overview of the latest command runs.","tags":["Status Commands"],"x-format-suffix":{"pattern":"json"}}},"/migros/products/v8/status/commands/{id}":{"get":{"description":"This is an internal route and doesn't necessarily follow API versioning.","operationId":"get-status-command","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returned when successful"}},"summary":"Shows information about the specified run, including its children the parents.","tags":["Status Commands"],"x-format-suffix":{"pattern":"json"}}},"/migros/products/v8/status/import/products/latest-states/{id}":{"get":{"description":"Used in the admin interface for showing latest import states of a product.\n\nThis is an internal route and doesn't necessarily follow API versioning.","operationId":"get-product-latest-import-state","parameters":[{"$ref":"#/components/parameters/id"},{"description":"Maximum number of results (default 50)","in":"query","name":"limit","schema":{"default":50,"minimum":0,"type":"integer"}}],"responses":{"200":{"description":"Returned when successful"}},"summary":"Returns the last import states for a product.","tags":["Status Products"]}},"/migros/products/v8/status/import/products/{id}":{"get":{"description":"Used in the admin interface for showing last successful import as well as pre and post db imports.\n\nThis is an internal route and doesn't necessarily follow API versioning.","operationId":"get-product-import-status","parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"Returned when successful"}},"summary":"Returns import states for a product.","tags":["Status Products"]}}},"security":[{"Kong-Api-Key":[],"basicAuth":[]}],"servers":[{"description":"Public Kong Gateway URL","url":"https://api.migros.ch"}],"tags":[{"name":"Status Products"},{"name":"Status Queues"},{"name":"Status Commands"},{"name":"mapi"}],"x-active-from":"01-01-2024","x-company":"migros","x-edm-domain":"products","x-eol":"31-12-2049","x-headmatter":{"readable_by":"*"},"x-kong-route-defaults":{"protocols":["https"],"strip_path":false},"x-kong-service-defaults":{"connect_timeout":5000,"read_timeout":15000,"retries":1,"write_timeout":5000},"x-leanix-id":"350641a5-55a2-4641-8332-76d32846eb56","x-link-get-access":"https://forms.office.com/e/zhzbEqAQ26","x-link-get-support":"https://teams.microsoft.com/l/channel/19%3Aa7851e50d0194268ba0c7a0d7a63403b%40thread.tacv2/2.%20Support%20%F0%9F%92%A1?groupId=58b919a5-7d36-47f3-a77a-03cfd051098a&tenantId=35aa8c5b-ac0a-4b15-9788-ff6dfa22901f"}
```
