Endpoints: Product Offers
The Product Offers group of endpoints are concerned about which products are available on which combinations of origins, destinations and container size and types. The Product Offers group of endpoints also include an endpoint to get the combined information for available product offers for a certain combination origin, destination, container size and type. This combined information should include all the information relevant for a display of the offer to a customer, like which Product the offer is for, the route and schedule information for the offer, including relevant vessel departures and deadlines information for these, and also includes price information for the offer.
List available offers
Path URI
.../offers/v2/offers/brand/{brandScac}/departuredate/{departureDate}
Path parameters
brandScac
(required): The SCAC code for the carrier for which to query for available offers, eg.maeu
for MaerskLine.departureDate
(required): The earliest departure date for offers. No offers will be included in the response with departure data before this date. The date is in ISO 8601 Date format (YYYY-MM-DD), eg. April 30th, 2018 would be2018-04-30
.
Query parameters
productCode
(optional): Obsolete and has no effect now.originServiceMode
(optional): The service mode of the origin. The allowed values areCY
for Merchant Haulage when the customer arranges own transportation to move the cargo from the container yard andSD
for Carrier Haulage where the cargo transport between the container yard and the specified address is done by Maersk. If no service type is specified, it defaults toCY
.destinationServiceMode
(optional): The service mode of the destination. The allowed values areCY
for Merchant Haulage when the customer arranges own transportation to move the cargo to the container yard andSD
for Carrier Haulage where the cargo transport between the container yard and the specified address is done by Maersk.. If no service type is specified, it defaults toCY
.-
containers
(required): The container amounts, sizes, types and requested weight (in Metric Tons) to restrict available offers returned to only those for which the containers are available and there is enough mtons capacity. The format is<amount>x<size><type>x<mton>
, eg.2x20DRYx10
to list offers for 2 containers of type 20 feet DRY, each of them with a weight of 10 mtons. Specify parameter containers multiple times to request more than one container size-type in each request. The<mtons>
parameter is optional. If no mtons is specified, it defaults to 10 mtons.
When specifying more than one container-size-type in a request, the returned offers support all those multiple containers, therefore, if there are no offers for at least one container-size-type, there will be no offers returned for that request. -
includeOfferFilteredReasons
(optional): A boolean value indicating if the response should contain the reasons for filtering away offers. The parameter value can betrue
orfalse
. -
One required
origin
parameter which can be...originUnLocCode
(optional): The UN/LOCODE for the origin locations (eg.CNDAL
) to restrict available offers locations returned to only those that match the specified id.originRkstCode
(optional): The Maersk RKST code for the origin locations (eg.CNDAI
) to restrict available offers locations returned to only those that match the specified id.originGeoId
(optional): The Maersk GeoId for the origin locations (eg.0G5RI2I2X2U8P
) to restrict available offers locations returned to only those that match the specified id.
NOTE: The recommandation is to use RKST code. In order to get the RKST code of a location, please use the following developer portal: https://developer.maersk.com/
-
One required
destination
parameter which can be...destinationUnLocCode
(optional): The UN/LOCODE for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationRkstCode
(optional): The Maersk RKST code for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationGeoId
(optional): The Maersk GeoId for the destination locations (eg.1FQMCYMU9XLZ2
) to restrict available offers locations returned to only those that match the specified id.
NOTE: The recommandation is to use RKST code. In order to get the RKST code of a location, please use the following developer portal: https://developer.maersk.com/
The originPrefix
and destinationPrefix
query parameters is not allowed for this endpoint. You will need to specify one of the three identifier options, however be aware that some locations does not actually have an UN/LOCODE identifier.
Allowed consumers
Category of API consumer | Access control | Authentication needed |
---|---|---|
Maersk controlled sites | Allowed | ForgeRock JWT |
Direct customers integrations | Allowed | Consumer key |
3rd party platforms | Allowed | Consumer key |
Response data
The endpoint response will contain a json array of json objects for each valid offers. The offer should contain all relevant information for the offer including, route and schedule details, vessel and deadline information and prices inluding surcharges for the requested origin, destination, container size-types combination. For details about the response see Model: Product Offers.
Be aware that the Maersk Spot Products will be subject to dynamic pricing, and the offers come with no guaranty about the validity time for the prices. So in the consumption of the Offers API, be sure to only store the data for the session
. Also the Offers API should only be queried on actual user request, so do not setup a schedule to refresh offer prices.
Offers for routes going out of or into countries or territories under US legislation may be under Federal Maritime Commission (FMC) regulation. FMC regulation requires special handling for Spot offers and will only be possible to book on our own websites. If the spot offer is under FMC regulation the spot offer json will contain a property fmcRegulationApplies
which will have a true
value. This can be used by the consumer to understand if the offer requires FMC handling.
Example query
Query: .../offers/v2/offers/brand/maeu/departuredate/2020-03-23?originServiceMode=CY&destinationServiceMode=CY&containers=1x40DRYx2&originRkstCode=SGSIN&destinationRkstCode=NLROT
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
|
Swagger link
For details about the endpoint please refer to the swagger for the endpoint.
List origin and destination port-pairs with valid offers
Path URI
.../offers/v2/offers/brand/{brandScac}/locations
Path parameters
brandScac
(required): The SCAC code of the carrier for which the offer is available, usemaeu
for MaerskLine.
Query parameters
productCode
(optional): Obsolete and has no effect now.-
includeContainerInfo
(optional): Set this with a value offalse
(defaulttrue
) if you do not want the response to include information about available container types for the returned origin locations. -
Up to one
origin
parameter ...originPrefix
(optional): An prefix for the name of origin locations (eg.Dal
) to restrict available offers locations returned to only those that match the prefix.originUnLocCode
(optional): The UN/LOCODE for the origin locations (eg.CNDAL
) to restrict available offers locations returned to only those that match the specified id.originRkstCode
(optional): The Maersk RKST code for the origin locations (eg.CNDAI
) to restrict available offers locations returned to only those that match the specified id.originGeoId
(optional): The Maersk GeoId for the origin locations (eg.0G5RI2I2X2U8P
) to restrict available offers locations returned to only those that match the specified id.
-
Up to one
destination
parameter ...destinationPrefix
(optional): An prefix for the name of destination locations (eg.Bar
) to restrict available offers locations returned to only those that match the prefix.destinationUnLocCode
(optional): The UN/LOCODE for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationRkstCode
(optional): The Maersk RKST code for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationGeoId
(optional): The Maersk GeoId for the destination locations (eg.1FQMCYMU9XLZ2
) to restrict available offers locations returned to only those that match the specified id.
Allowed consumers
Category of API consumer | Access control | Authentication needed |
---|---|---|
Maersk controlled sites | Allowed | ForgeRock JWT |
Direct customers integrations | Allowed | Consumer key |
3rd party platforms | Allowed | Consumer key |
Response data
The endpoint response will contain a json array of json objects for each valid offers location pairs. For details about the response see Model: Locations.
The response structure for the .../locations
endpoint will contain both origin
and destination
properties, as well as containers
properties unless the parameter includeContainerInfo
has been set to false
.
Example query
Query: .../offers/v2/offers/brand/maeu/locations?originUnLocCode=CNQIN&destinationPrefix=Luan
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
Swagger link
For details about the endpoint please refer to the swagger for the endpoint.
List origin ports with valid offers
Path URI
.../offers/v2/offers/brand/{brandScac}/locations/origins
Path parameters
brandScac
(required): The SCAC code of the carrier for which the offer is available, usemaeu
for MaerskLine.
Query parameters
productCode
(optional): Obsolete and has no effect now.-
includeContainerInfo
(optional): Set this with a value offalse
(defaulttrue
) if you do not want the response to include information about available container types for the returned origin locations. -
Up to one
origin
parameter ...originPrefix
(optional): An prefix for the name of origin locations (eg.Dal
) to restrict available offers locations returned to only those that match the prefix.originUnLocCode
(optional): The UN/LOCODE for the origin locations (eg.CNDAL
) to restrict available offers locations returned to only those that match the specified id.originRkstCode
(optional): The Maersk RKST code for the origin locations (eg.CNDAI
) to restrict available offers locations returned to only those that match the specified id.originGeoId
(optional): The Maersk GeoId for the origin locations (eg.0G5RI2I2X2U8P
) to restrict available offers locations returned to only those that match the specified id.
-
Up to one
destination
parameter ...destinationPrefix
(optional): An prefix for the name of destination locations (eg.Ba
) to restrict available offers locations returned to only those that match the prefix.destinationUnLocCode
(optional): The UN/LOCODE for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationRkstCode
(optional): The Maersk RKST code for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationGeoId
(optional): The Maersk GeoId for the destination locations (eg.1FQMCYMU9XLZ2
) to restrict available offers locations returned to only those that match the specified id.
Allowed consumers
Category of API consumer | Access control | Authentication needed |
---|---|---|
Maersk controlled sites | Allowed | ForgeRock JWT |
Direct customers integrations | Allowed | Consumer key |
3rd party platforms | Allowed | Consumer key |
Response data
The endpoint response will contain a json array of json objects for each valid offers location. For details about the response see Model: Locations.
The response structure for the .../locations/origins
endpoint will not contain destination
properties, but will contain containers
properties unless the parameter includeContainerInfo
has been set to false
.
Example query
Query: .../offers/v2/offers/brand/maeu/locations/origins?originPrefix=Qin&includeContainerInfo=false
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
Swagger link
For details about the endpoint please refer to the swagger for the endpoint.
List destination ports with valid offers
Path URI
.../offers/v2/offers/brand/{brandScac}/locations/destinations
Path parameters
brandScac
(required): The SCAC code of the carrier for which the offer is available, usemaeu
for MaerskLine.
Query parameters
productCode
(optional): Obsolete and has no effect now.-
includeContainerInfo
(optional): Set this with a value offalse
(defaulttrue
) if you do not want the response to include information about available container types for the returned origin locations. -
Up to one
origin
parameter ...originPrefix
(optional): An prefix for the name of origin locations (eg.Dal
) to restrict available offers locations returned to only those that match the prefix.originUnLocCode
(optional): The UN/LOCODE for the origin locations (eg.CNDAL
) to restrict available offers locations returned to only those that match the specified id.originRkstCode
(optional): The Maersk RKST code for the origin locations (eg.CNDAI
) to restrict available offers locations returned to only those that match the specified id.originGeoId
(optional): The Maersk GeoId for the origin locations (eg.0G5RI2I2X2U8P
) to restrict available offers locations returned to only those that match the specified id.
-
Up to one
destination
parameter ...destinationPrefix
(optional): An prefix for the name of destination locations (eg.Barc
) to restrict available offers locations returned to only those that match the prefix.destinationUnLocCode
(optional): The UN/LOCODE for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationRkstCode
(optional): The Maersk RKST code for the destination locations (eg.ESBCN
) to restrict available offers locations returned to only those that match the specified id.destinationGeoId
(optional): The Maersk GeoId for the destination locations (eg.1FQMCYMU9XLZ2
) to restrict available offers locations returned to only those that match the specified id.
Allowed consumers
Category of API consumer | Access control | Authentication needed |
---|---|---|
Maersk controlled sites | Allowed | ForgeRock JWT |
Direct customers integrations | Allowed | Consumer key |
3rd party platforms | Allowed | Consumer key |
Response data
The endpoint response will contain a json array of json objects for each valid offers location. For details about the response see Model: Locations.
The response structure for the .../locations/destinations
endpoint will not contain origin
properties, but will contain containers
properties unless the parameter includeContainerInfo
has been set to false
.
Example query
Query: .../offers/v2/offers/brand/maeu/locations/destinations?originUnLocCode=CNQIN&destinationPrefix=Luan
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
Swagger link
For details about the endpoint please refer to the swagger for the endpoint.
List supported containers
Path URI
.../offers/v2/offers/containers
Allowed consumers
Category of API consumer | Access control | Authentication needed |
---|---|---|
Maersk controlled sites | Allowed | ForgeRock JWT |
Direct customers integrations | Allowed | Consumer key |
3rd party platforms | Allowed | Consumer key |
Response data
The endpoint response will contain a json array of json objects, one object for each supported container. For details about the response see Model: Container Size and Types.
Example query
Query: .../offers/v2/offers/containers
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
Swagger link
For details about the endpoint please refer to the swagger for the endpoint.