Get all planning updates for the planning with the provided id (UUID)
The planning import attempt with all intermediate steps for the given ID
Unauthorized: Whenever you will get this status, you have either provided the wrong credentials or none at all. Check if you bearer token has not expired.
Forbidden: You will receive this status, when you successfully supplied credentials, but your username does not have the necessary permissions for the resource.
Not Found: Whenever you will get a 404, you are probably using a malformed or incorrect URL.
import requests planning_uuid = "YOUR_planningUUID_PARAMETER" url = "https://planning-status-api.services.simacan.com/api/public/v3/get_by_planning_id/" + planning_uuid headers = {"Authorization": "Bearer <YOUR_JWT_HERE>"} response = requests.get(url, headers=headers) data = response.json() print(data)
{- "id": "39e8d454-87b4-427d-a4f3-c50ed2677644",
- "name": "peterson/2020-09-02T12:26:47.585271Z.json",
- "planningCreationTime": "2020-09-02T12:26:47.705Z",
- "shipper": "peterson",
- "triggerType": "Automatic",
- "status": "ShouldStart",
- "file": {
- "fileName": "peterson/2020-09-02T12:26:47.585271Z.json",
- "directory": "simacan-planning-data"
}, - "tags": {
- "mimeType": "application/json",
- "version": "1",
- "schema": "json",
- "source": "planning-receive-api"
}, - "steps": [
- {
- "id": "90e66fcb-4be0-4d33-9ee6-60fe999904e5",
- "endTime": "2020-09-02T12:26:47.708852Z",
- "status": "ShouldStart",
- "errors": [
- {
- "id": "15b245b0-6a47-44ae-8bf2-591f430cd368",
- "message": "(/_id,List(JsonValidationError(List(error.path.missing),WrappedArray())))"
}
], - "name": "Starting peterson/2020-09-02T12:26:47.585271Z.json",
- "processingStepType": "Starting"
}
]
}