Get 2nd finished info

In order to get the finished (instead of the current) status of the production line of the 2nd tokens part, the identifier of the tokens object MUST be sent as the first HTTP request path parameter together with finished as the second HTTP request path parameter.

If the JSON response body contains the path data attributes status: finished together with other attribute–value pairs, the production of the 2nd tokens part has been finished. In this case, the tokens data and the snapshot of the production line are both linked in it and are available for download.

Request endpoint

GET SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/finished

Response status

200

Request headers

Accept:application/vnd.api+json
Content-Type:application/vnd.api+json
Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS

Response headers

Transfer-Encoding:chunked
Connection:keep-alive
Accept:application/vnd.api+json
Cache-Control:no-cache
Date:Tue, 19 Mar 2024 12:57:18 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

{
    "meta": {
        "seed": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    },
    "links": {
        "self": "/api/tokens",
        "data": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data",
        "info": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        "snapshot": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/snapshot"
    },
    "data": {
        "attributes": {
            "analysis": "none",
            "rate": 8886,
            "reachable": "52428",
            "alphabet": "UPPER_EPCG30",
            "available": "348678440099999999999999900000",
            "partial": true,
            "checksum": "11101010001010110000011011000001111111011111000101101010001110011011011111111110110111010110000110001000000011101111011111100111100000001000",
            "status": "finished",
            "filesizes": {
                "data": 1049999,
                "snapshot": 19008
            },
            "digits": "20",
            "filehashes": {
                "data": "35e5fdea651613f90d34e0ddeab65074587410df71e68b9a8b95ede551b20096",
                "snapshot": "3ce8ab66c0255524f0ab23f84f48a2a61b6c9246bd3f84328f8f3cf7d144e491"
            },
            "size": "50000",
            "timestamps": {
                "ended": "2024-03-19T12:57:13.709Z",
                "started": "2024-03-19T12:55:21.170Z",
                "requested": "2024-03-19T12:55:21.159Z",
                "finished": "2024-03-19T12:57:13.722Z"
            }
        },
        "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        "type": "tokens",
        "relationships": {
            "payment": {
                "data": {
                    "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "ident": "pi_XXXXXXXXXXXXXXXXXXXXXXXX",
                    "type": "transaction"
                }
            }
        }
    }
}

HTTPie example

$ http get SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/finished Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS