Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCurl request edit distribution date
Code Block
curl --location --request PATCH 'https://staging-ws.di.no/ws/json/parcel/booking/v-1/orders/70724762044206508' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $SECRET_WS_TOKEN' \
--data-raw '[    
{
        "op": "replace",
        "path": "/distributionDate",
        "value": "2021-12-22"
    }
]'

Curl request edit package measurements

Expand
titleCurl request edit distribution date
Code Block
curl --location --request PATCH 'https://staging-ws.di.no/ws/json/parcel/booking/v-1/orders/70724762044206508' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $SECRET_WS_TOKEN' \
--data-raw '[    
{ 
      "op" : "replace",
      "path" : "/measurements/weightGrams",
      "value" : 600
    },
    { 
      "op" : "replace",
      "path" : "/measurements/lengthCm",
      "value" : 30
    },
    { 
      "op" : "replace",
      "path" : "/measurements/heightCm",
      "value" : 10
    },
    { 
      "op" : "replace",
      "path" : "/measurements/widthCm",
      "value" : 10
    }
]'

Response

Name

Type

Example

Mandatory

Description

shipmentId

String

70724761617883184

(tick)

This is a unique identifier. Typically named MessageNumber

freightProductId

Whole number

2

(tick)

The selected freight product for this shipment.

parties

List of party objects

(tick)

List of all the parties in this shipment.

items

List of item objects

(tick)

List of all the items in this shipment.

properties

Map of root properties

Map with additional properties. Various information (properties) are specified only for certain transport products.

additionalServices

List of additionalService objects

Additional services that should be applied to the shipment.

...