Versions Compared

Key

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

...

Path

Operation supported

Value description

Example operation

/distributionDate

"op": "replace"

String,
Date with format YYYY-MM-DD

Code Block
languagejson
{ "op":"replace", "path": "/distributionDate", "value": "2020-09-30" }

/consignor/name

"op": "replace"

String,
Consignor/sender name

Code Block
languagejson
{ "op":"replace", "path": "/consignor/name", "value": "MyStore" }

/consignor/phone1

"op": "replace"

String,
Consignor/sender phone number

Code Block
languagejson
{ "op":"replace", "path": "/consignor/phone1", "value": "12345678" }

/consignor/email

"op": "replace"

String,
Consignor/sender email

Code Block
languagejson
{ "op":"replace", "path": "/consignor/email", "value": "info@email.com" }

/consignor/coAddress

"op": "replace"

String,
Consignor/sender co address

Code Block
languagejson
{ "op":"replace", "path": "/consignor/coAddress", "value": "MyStores Corporate Group" }

/consignor/address

"op": "replace"

String,
Consignor/sender street address, number and household

Code Block
{ "op":"replace","path":"/consignor/address","value":"Storgata 4B H0201"},

/consignor/postalName

"op": "replace"

String,
Consignor/sender city

Code Block
{"op":"replace","path":"/consignor/postalName","value":"Oslo"}, 

/consignor/zipCode

"op": "replace"

String,
Consignor/sender postal code

Code Block
{"op":"replace","path":"/consignor/zipCode","value":"0577"}

/consignorReference

"op": "replace"

String,
Consignor/sender reference

Code Block
languagejson
{ "op":"replace", "path": "/consignor/reference", "value": "senderReference" }

/consignee/name

"op": "replace"

String,
Consignee/receiver name

Code Block
languagejson
{ "op":"replace", "path": "/consignee/name", "value": "Ola Normann" }

/consignee/phone1

"op": "replace"

String,
Consignee/receiver phone number

Code Block
languagejson
{ "op":"replace", "path": "/consignee/phone1", "value": "12345678" }

/consignee/email

"op": "replace"

String,
Consignee/receiver email

Code Block
languagejson
{ "op":"replace", "path": "/consignee/email", "value": "info@email.com" }

/consignee/coAddress

"op": "replace"

String,
Consignee/receiver co address

Code Block
languagejson
{ "op":"replace", "path": "/consignee/coAddress", "value": "Kari Normann" }

/consignee/address

"op": "replace"

String,
Consignee/receiver street address, number and household

Code Block
{ "op":"replace","path":"/consignee/address","value":"Storgata 4B H0201"},

/consignee/postalName

"op": "replace"

String,
Consignee/receiver city

Code Block
{"op":"replace","path":"/consignee/postalName","value":"Oslo"}, 

/consignee/zipCode

"op": "replace"

String,
Consignee/receiver postal code

Code Block
{"op":"replace","path":"/consignee/zipCode","value":"0577"}

/consigneeReference

"op": "replace"

String,
Consignee/receiver reference

Code Block
languagejson
{ "op":"replace", "path": "/consignee/reference", "value": "receiverReference" }

/measurements/weightGrams

"op": "replace"

String,

Package weight in grams

Code Block
{ "op" : "replace", path" : "/measurements/weightGrams", value" : 600 }

/measurements/lengthCm

"op": "replace"

String,

Package length in cm

Code Block
{ "op" : "replace", path" : "/measurements/lengthCm", value" : 10 }

/measurements/widthCm

"op": "replace"

String,

Package width in cm

Code Block
{ "op" : "replace", path" : "/measurements/widthCm", value" : 10 }

/measurements/heightCm

"op": "replace"

String,

Package height in cm

Code Block
{ "op" : "replace", path" : "/measurements/heightCm", value" : 10 }

Examples

Curl request edit consignor all details

...