MPET
  1. Operator - Voyages
MPET
  • HNA-API
    • Operator - Handlings
      • cancelHandling
      • createDetachedHandling
      • createHandling
      • detachHandling
      • getDetachedHandling
      • moveHandling
      • updateDetachedHandling
      • updateHandling
    • Operator - Visits
      • cancelVisit
      • createVisit
      • finalizeLoadDischargeList
      • moveVisit
      • sendLoadDischargeList
      • updateVisit
    • Operator - Voyages
      • cancelVoyage
        POST
      • createVoyage
        POST
      • getVoyage
        POST
      • updateCargoDeclarations
        POST
      • updateVoyage
        POST
      • updateVoyageRestrictions
        POST
    • Listening
      • disconnectClient
      • listenToShipmentUpdates
      • listenToUpdate
      • resetPosition
      • updatePosition
  1. Operator - Voyages

updateCargoDeclarations

POST
/hna/voyages/cargoDeclarants:update
Operator - Voyages
Register or update the declarants of voyages
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/hna/voyages/cargoDeclarants:update' \
--header 'Content-Type: application/json' \
--data-raw '{
    "voyageId": "string",
    "cargoDeclarants": [
        {
            "fullName": "string",
            "shortName": "string",
            "emailAddress": "string",
            "address": "string",
            "city": "string",
            "countryUnCode": "string",
            "countryName": "string",
            "zipCode": "string",
            "phoneNumber": "string",
            "faxNumber": "string",
            "contact": "string",
            "customsEORINumber": "string",
            "ean": "string",
            "chamberOfCommerceNumber": "string",
            "scacCode": "string"
        }
    ]
}'
Response Response Example
{}

Request

Body Params application/json
voyageId
string 
required
cargoDeclarants
array[object (HnaCargoDeclarant) {15}] 
optional
fullName
string 
optional
The full name of the organisation
shortName
string 
optional
The short name of the organisation
emailAddress
string  | null 
optional
The email address of the organisation
address
string  | null 
optional
The address of the organisation
city
string  | null 
optional
The city where the organisation is located
countryUnCode
string  | null 
optional
The UN code of the country where the organisation is located
countryName
string  | null 
optional
The name of the country where the organisation is located
zipCode
string  | null 
optional
The zip code of the organisation
phoneNumber
string  | null 
optional
The phone number of the organisation
faxNumber
string  | null 
optional
The fax number of the organisation
contact
string  | null 
optional
The contact person of the organisation
customsEORINumber
string  | null 
optional
The contact person of the organisation
ean
string  | null 
optional
The EAN code of the organisation
chamberOfCommerceNumber
string  | null 
optional
The chamber of commerce number of the organisation
scacCode
string  | null 
optional
The SCAC code of the organisation
Examples

Responses

🟢200default response
application/json
Body
object {0}
Previous
getVoyage
Next
updateVoyage
Built with