Jobs API
Developing
POST
https://{{subscriber_name}}.masi-leap.com/v1/x-masi-api/create-job
1.
2.
Request
Header Params
Authorization
string
required
Example:
{{NEW_JOB_API_KEY}}
Content-Type
string
required
Example:
application/json
Accept
string
required
Example:
application/json
Body Params application/json
processType
enum<string>
required
Allowed values:
INT_IMPORTINT_EXPORT_BOOKERINT_IMPORTINT_EXPORT_ORIGININT_EXPORT_PICKUPLOCALLONG_DISTANCE
shippingMode
enum<string>
optional
Allowed values:
AIRSEALANDRAIL
shippingMethod
enum<string>
optional
Allowed values:
AIRFCLLCLLTLFTLRO_RO
insurance
enum<string>
optional
Allowed values:
INSURANCENO_INSURANCE
portFees
enum<string>
optional
Allowed values:
paidByAgentpaidByCustomer
nonInclusiveDeliveryFees
enum<string>
optional
Allowed values:
paidByAgentpaidByCustomer
serviceType
array[string]
optional
DTD - Door to Door
DTP - Door to Port
DTW - Door to Warehouse
PTP - Port to Port
PTD - Port to Door
PTW - Port to Warehouse
WTW - Warehouse to Warehouse
WTD - Warehouse to Door
WTP - Warehouse to Port
Allowed values:
DTDDTPDTWPTPPTDPTWWTWWTDWTP
returnDateFrom
string <YYYY/MM/DD>
optional
returnDateTo
string <YYYY/MM/DD>
optional
departureDate
string <YYYY/MM/DD>
optional
arrivalDate
string <YYYY/MM/DD>
optional
arrivalDatePortDelivery
string <YYYY/MM/DD>
optional
deliveryDate
string <YYYY/MM/DD>
optional
reference
string
optional
<= 60 characters
billOfLanding
string
optional
<= 60 characters
houseBillOfLanding
string
optional
<= 60 characters
volumeImperialQuoted
number
optional
volumeMetricQuoted
number
optional
weightImperialQuoted
number
optional
weightMetricQuoted
number
optional
aesNumber
string
optional
<= 40 characters
vesselCarrierName
string
optional
<= 60 characters
voyageNumber
string
optional
<= 60 characters
cargoControlNumber
string
optional
<= 60 characters
itnNumber
string
optional
<= 60 characters
bookingNumber
string
optional
<= 60 characters
awbNumber
string
optional
<= 60 characters
serviceProfileNotes
string
optional
<= 500 characters
specialItems
string
optional
<= 300 characters
isfNumber
string
optional
<= 60 characters
movingFrom
object
optional
fullAddress
string
optional
<= 100 characters
apartment
string
optional
<= 10 characters
unitNo
string
optional
<= 10 characters
buzzersCode
string
optional
<= 10 characters
floor
string
optional
<= 10 characters
notes
string
optional
<= 100 characters
movingTo
object
optional
fullAddress
string
optional
<= 100 characters
apartment
string
optional
<= 10 characters
unitNo
string
optional
<= 10 characters
buzzersCode
string
optional
<= 10 characters
floor
string
optional
<= 10 characters
notes
string
optional
<= 100 characters
customerDetails
object
optional
name
string
optional
<= 50 characters
emails
array [object {2}]
optional
phones
array [object {2}]
optional
Example
{
"processType": "INT_IMPORT",
"shippingMode": "AIR",
"shippingMethod": "AIR",
"insurance": "INSURANCE",
"portFees": "paidByAgent",
"nonInclusiveDeliveryFees": "paidByAgent",
"serviceType": [
"DTD"
],
"returnDateFrom": "string",
"returnDateTo": "string",
"departureDate": "string",
"arrivalDate": "string",
"arrivalDatePortDelivery": "string",
"deliveryDate": "string",
"reference": "string",
"billOfLanding": "string",
"houseBillOfLanding": "string",
"volumeImperialQuoted": 0,
"volumeMetricQuoted": 0,
"weightImperialQuoted": 0,
"weightMetricQuoted": 0,
"aesNumber": "string",
"vesselCarrierName": "string",
"voyageNumber": "string",
"cargoControlNumber": "string",
"itnNumber": "string",
"bookingNumber": "string",
"awbNumber": "string",
"serviceProfileNotes": "string",
"specialItems": "string",
"isfNumber": "string",
"movingFrom": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string",
"notes": "string"
},
"movingTo": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string",
"notes": "string"
},
"customerDetails": {
"name": "string",
"emails": [
{
"value": "string",
"type": "string"
}
],
"phones": [
{
"value": "string",
"type": "string"
}
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://{{subscriber_name}}.masi-leap.com/v1/x-masi-api/create-job' \
--header 'Authorization: {{NEW_JOB_API_KEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"processType": "INT_IMPORT",
"shippingMode": "AIR",
"shippingMethod": "AIR",
"insurance": "INSURANCE",
"portFees": "paidByAgent",
"nonInclusiveDeliveryFees": "paidByAgent",
"serviceType": [
"DTD"
],
"returnDateFrom": "string",
"returnDateTo": "string",
"departureDate": "string",
"arrivalDate": "string",
"arrivalDatePortDelivery": "string",
"deliveryDate": "string",
"reference": "string",
"billOfLanding": "string",
"houseBillOfLanding": "string",
"volumeImperialQuoted": 0,
"volumeMetricQuoted": 0,
"weightImperialQuoted": 0,
"weightMetricQuoted": 0,
"aesNumber": "string",
"vesselCarrierName": "string",
"voyageNumber": "string",
"cargoControlNumber": "string",
"itnNumber": "string",
"bookingNumber": "string",
"awbNumber": "string",
"serviceProfileNotes": "string",
"specialItems": "string",
"isfNumber": "string",
"movingFrom": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string",
"notes": "string"
},
"movingTo": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string",
"notes": "string"
},
"customerDetails": {
"name": "string",
"emails": [
{
"value": "string",
"type": "string"
}
],
"phones": [
{
"value": "string",
"type": "string"
}
]
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}