An internal note can be added to a freight and is only visible to trans.eu users from your company. Only one note can be added to the freight, on which the operations listed below can be performed. The note cannot be longer than 500 characters.
Operations that can be performed on the internal note object
- Adding an internal note.
- Downloading (getting) an internal note.
- Updating an internal note.
- Deleting an internal note.
Authorization and access
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
You can get FreightID:
- in the system response after publishing the freight,
- by downloading the freight list.
Headers
- Accept: application/json
- Content-type: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Url parameters and connection settings for adding note
- URL: https://api.platform.trans.eu
- Endpoint: /ext/freights-api/v1/freights/{FeightID}/internal-note
- Http Method: POST
Json request example
{
"contents": "Test content of internal freight note"
}
Json response example
Http code 201 Created
{
"contents": "Test content of internal freight note"
}
Url parameters and connection settings for getting note
- URL: https://api.platform.trans.eu
- Endpoint: /ext/freights-api/v1/freights/{FeightID}/internal-note
- Http Method: GET
Json response example
Http code 200 OK
{
"contents": "Test content of internal freight note"
}
Url parameters and connection settings for updating note
- URL: https://api.platform.trans.eu
- Endpoint: /ext/freights-api/v1/freights/{FeightID}/internal-note
- Http Method: PUT
Json request example
{
"contents": "Test 2 content of internal freight note"
}
Json response example
Http code 200 OK
{
"contents": "Test 2 content of internal freight note"
}
Url parameters and connection settings for deleting note
- URL: https://api.platform.trans.eu
- Endpoint: /ext/freights-api/v1/freights/{FeightID}/internal-note
- Http Method: DELETE
Json response example
Http code 204 No Content