Introduction
Welcome to the MESPAS supplier API reference. The MESPAS supplier API is a restful API (application programming interface) suitable for maritime supplier companies. You can use the MESPAS supplier API to integrate your existing ERP (enterprise resource planning) system with MESPAS Connect.
MESPAS Connect is an e-trading platform for the maritime industry that links together thousands of ships, ship management offices and suppliers. It facilitates the procurement process by the use of well-structured, global master data – which enables an easy and straight-forward integration with ERP systems.
The MESPAS Supplier API provides you with the following:
-
Receive ship manager quote requests electronically
-
Receive ship manager orders electronically
-
Send your quotes related to the received quote requests
-
Integrate the message flow into your existing ERP system
Getting started
Are you a maritime supplier receiving quote requests and orders via MESPAS Connect? Would you like to integrate the procurement message flow into your existing ERP system? In that case, you should contact us at info@mespas.com.
Authentication
The API uses OAuth 2.0 for authentication. A valid API token specific to your company is required and must be provided as HTTP header to each request (see example shown below). Please contact info@mespas.com in order to acquire an API token for your company.
$ curl 'https://api.mespas.com/ms/api/rest/supplier/v1/requests/11c78e43f82b4da0ba7cd37d13ea3242' -i \
-H 'Authorization: Bearer -- your authentication tokens comes here --' \
-H 'Accept: application/json'
API endpoint
All API calls must be made to https://api.mespas.com/ms
We also have a sandbox environment for testing available at https://connect-pt.mespas.com/ms.
Attention The sandbox environment is not always up and running. Please contact us at info@mespas.com if you want to use the sandbox environment.
Data format
All responses and all request bodies will be in JSON.
Date format
Dates are represented in the format 'yyyy-MM-dd' (e.g. 2017-09-14 for the 14th September 2017). If the dates include a time of day as well, they are displayed in the format 'yyyy-MM-dd HH:mm' (e.g. 2017-09-14 13:53 for the 14th September 2017 13:53)
Errors
Each API call returns an HTTP status code that reflects the nature of the response.
Any request that succeeds will return with HTTP status 200.
Any request that did not succeed will return a 4xx or 5xx error. The 4xx range means there was a problem with the request, like a missing parameter. The 5xx range means that something went wrong on our end.
The MESPAS supplier API returns the following HTTP status codes:
-
200 OK – request succeeded
-
400 bad request – invalid request body (e.g. invalid unit code, too long values, …)
-
401 unauthorized – incorrect or missing API key
-
403 forbidden – you do not have permission to view a resource or perform an action
-
412 precondition failed - the action cannot be executed as a precondition is not met (e.g. when you want to reject a request that was already rejected)
-
500 internal server error – there was a problem at our end
If the returned status code is 400 (bad request) or 412 (precondition failed), the response body contains additional information about the cause of the problem. The error structure looks as follows:
{
"status" : "ERROR",
"code" : "INVALID_INPUT",
"message" : "Invalid offer currency (ABC)",
"data" : [ ]
}
Versioning
Any future changes to the API will be versioned in order to maintain backwards compatibility with existing integrations. The most current version of the API is version v1.
Pagination
All list operations will be paginated (e.g. getting all requests, orders) in order to reduce the number of results to return. A paged result contains up to 20 elements by default.
Example
Let’s assume that you want to get all the requests for your company. How can you do that?
GET the first page
You can request the first page by simply calling
GET /api/rest/supplier/v1/requests or GET /api/rest/supplier/v1/requests?page=0
As a result you get
{ "data" : [ { // first request data (not shown here) }, { // second request data (not shown here) } // third, fourth,,, request data (not shown here) ], "page" : 0, "totalPages" : 12, "pageSize" : 20 }
The result represents the first page, which contains the data of the first 20 (pageSize) requests.
- page
-
The current page [0..totalPages]
- totalPages
-
The total number of pages available
- pageSize
-
The number of records per page
- data
-
The array of the data you have requested (e.g. array of request data)
GET the next page(s)
In order to retrieve the next page (the next results), you have to increase the page parameter by one.
GET /api/rest/supplier/v1/requests?page=1
If you want to retrieve all the records, you have to consecutively increase the page parameter by one up to the total number of pages (totalPages).
Buyer events / polling
The illustration shown below represents the main purchasing message flow - from RFQ to offer to order.
It is important to distinguish between the actions initiated by the buyer side (purple numbers) and the actions initiated by you as a supplier (black numbers).
The buyer actions are concerned with the Events API mechanism. Each buyer action which is relevant for you as a supplier leads to a new event (e.g. a new request, a new order, a cancelled request,…). In order to receive those events, you have to call the Events method on a regular base (e.g. every 5 minutes). Provide the id of the last consumed event to the call (Events) and you will receive only those events which you have not processed so far.
Example
Let’s assume that the last event id that you have processed successfully is 356.
GET new events
You can get all the events you have not processed so far by calling
GET /api/rest/supplier/v1/events?last_received=356
As a result you get all the events that are newer than the event provided by the last_received parameter. If the result is empty, nothing needs to be done, as there no messages/events to consume.
If the result looks like the example shown below, it indicates that you have received two requests and one order in the meantime. Call Request for each of the two requests in order to get the corresponding details respectively Order to get the details of the order.
[ { "eventId" : 357, "eventType" : "REQUEST_CREATED", "entityType" : "QUOTE_REQUEST", "entityId" : "11c78e43f82b4da0ba7cd37d13ea3242" }, { "eventId" : 358, "eventType" : "REQUEST_CREATED", "entityType" : "QUOTE_REQUEST", "entityId" : "ff8080815e956f16015e95746fff000d" }, { "eventId" : 359, "eventType" : "ORDER_CREATED", "entityType" : "ORDER", "entityId" : "4f9f5e4b0f4d47e48951c69b0660c42b" } ]
After having processed the data successfully, you may call the event api with the parameter 359 next time.
GET /api/rest/supplier/v1/events?last_received=359
Enum values
Incoterms
The following incoterms are supported by MESPAS
Code | Description |
---|---|
CIP |
Carriage and Insurance Paid |
CFR |
Cost and Freight |
CIF |
Cost, Insurance and Freight |
CPT |
Carriage Paid |
DAF |
Delivered at Frontier |
DAP |
Delivered at Place |
DAT |
Delivered at Terminal |
DDP |
Delivered Duty Paid |
DDU |
Delivered Duty Unpaid |
DEQ |
Delivered Ex Quay |
DES |
Delivered Ex Ship |
EXW |
Ex Works |
FAS |
Free Alongside Ship |
FCA |
Free Carrier |
FOB |
Free on Board |
NA |
Not available (incoterm not defined) |
Country codes
Alpha-2-code of country according to http://en.wikipedia.org/wiki/ISO_3166-1
Currencies
Currency code according to https://en.wikipedia.org/wiki/ISO_4217. MESPAS supports the following subset of currencies:
Currency | Description |
---|---|
AED |
United Arab Emirates dirham |
AFN |
Afghan afghani |
ARS |
Argentine peso |
AUD |
Australian dollar |
AZN |
Azerbaijani manat |
BGN |
Bulgarian lew |
BHD |
Bahraini dinar |
BRL |
Brazilian real |
CAD |
Canadian dollar |
CHF |
Swiss franc |
CLP |
Chilean peso |
CNY |
Chinese yuan |
CRC |
Costa Rican colon |
CZK |
Czech koruna |
DKK |
Danish krone |
EGP |
Egyptian pound |
EUR |
Euro |
GBP |
Pound sterling |
GHS |
Ghanaian cedi |
HKD |
Hong Kong dollar |
HRK |
Croatian kuna |
IDR |
Indonesian rupiah |
ILS |
Israeli new shekel |
INR |
Indian rupee |
IRR |
Iranian rial |
JPY |
Japanese yen |
KRW |
South Korean won |
KWD |
Kuwaiti dinar |
KYD |
Cayman Islands dollar |
MAD |
Moroccan dirham |
MMK |
Myanma kyat |
MUR |
Mauritian rupee |
MXN |
Mexican peso |
MYR |
Malaysian ringgit |
NAD |
Namibian dollar |
NGN |
Nigerian naira |
NOK |
Norwegian krone |
NPR |
Nepalese rupee |
NZD |
New Zealand dollar |
OMR |
Omani rial |
RUB |
Russian rouble |
PAB |
Panamanian balboa |
PHP |
Philippine peso |
PLN |
Polish złoty |
QAR |
Qatari riyal |
RSD |
Serbian dinar |
SAR |
Saudi riyal |
SEK |
Swedish krona/kronor |
SGD |
Singapore dollar |
THB |
Thai baht |
TMT |
Turkmenistani manat |
TRY |
Turkish lira |
TTD |
Trinidad and Tobago dollar |
TWD |
New Taiwan dollar |
UAH |
Ukrainian hryvnia |
USD |
United States dollar |
VEF |
Venezuelan bolívar fuerte |
ZAR |
South African rand |
ZMW |
Zambian kwacha |
XAF |
Central African CFA franc |
XOF |
West African CFA franc |
XPF |
Comptoirs Français du Pacifique CFP franc |
Units
Unit codes supported by MESPAS
Unit | Description |
---|---|
AMPULE |
Ampule |
BAG |
Bag |
BOTTLE |
Bottle |
BOX |
Box |
CAN |
Can |
CARTON |
Carton |
CASE |
Case |
CENTIMETER |
Centimeter |
CUBIC_METER |
Cubic meter |
DAY |
Day |
DECILITER |
Deciliter |
DOZEN |
Dozen |
DRUM |
Drum |
FEET |
Feet |
GRAM |
Gram |
GROSS |
Gross |
HECTOLITER |
Hectoliter |
HOUR |
Hour |
IMPERIAL_GALLON |
Imperial gallon |
IMPERIAL_PINT |
Imperial pint |
IMPERIAL_QUART |
Imperial quart |
JAR |
Jar |
KEG |
Keg |
KILOGRAM |
Kilogram |
LITER |
Liter |
LOAVE |
Loave |
METER |
Meter |
METRIC_CUP |
Metric Cup |
METRIC_TON |
Metric ton |
MILLILITER |
Milliliter |
MILLIMETER |
Millimeter |
OUNCE |
Ounce |
OIL_BARREL |
Oil barrel |
PACK |
Pack |
PAIL |
Pail |
PAIR |
Pair |
PIECE |
Piece |
POT |
Pot |
POUND |
Pound |
REAM |
Ream |
ROLL |
Roll |
SACHET |
Sachet |
SET |
Set |
SHEET |
Sheet |
SQUARE_METER |
Square meter |
TIN |
Tin |
TON |
Ton |
US_LIQUID_GALLON |
US liquid gallon |
LUMP_SUM |
Lump sum |
PER_DAY |
Per day |
Priorities
Used to determine the priority of a quote request, offer or order.
Priority | Description |
---|---|
LOW |
Indicates a low priority. |
MEDIUM |
Indicates the default priority. |
HIGH |
Indicates a high priority. |
Qualities
Used to determine the quality of a request item, offer item or order item
Quality | Description |
---|---|
HIGH |
The best quality. |
MEDIUM |
The medium quality. |
LOW |
The lowest quality. |
Event types
The following event types are used in conjunction with the Events API.
Event Type | Description |
---|---|
REQUEST_CREATED |
Indicates that a new request was created. |
REQUEST_CANCELLED |
Indicates that an existing request has been cancelled. |
ORDER_CREATED |
Indicates that a new order was created. |
ORDER_UPDATED |
Indicates that an existing order has been updated. |
ORDER_CANCELLED |
Indicates that an existing order has been cancelled. |
Entity types
The following entity types are used in conjunction with the Events API.
Entity Type | Description |
---|---|
QUOTE_REQUEST |
The corresponding event relates to a quote request. Use the Request API in order to get the according quote request. |
OFFER |
The corresponding event relates to an offer. Use the Offer API in order to get the according offer. |
ORDER |
The corresponding event relates to an order Use the Order API in order to get the according order. |
Request status
Determines the state of a quote request
State | Description |
---|---|
NEW |
A new request. No quote has been sent so far. |
QUOTED |
A quote has been sent for the request. |
REJECTED |
The request has been rejected by the supplier |
CANCELLED |
The request has been cancelled by the buyer |
Offer status
Determines the state of an offer
Status | Description |
---|---|
SENT |
Offer has been sent. |
REPLACED |
Offer has been replaced by another offer. |
CLOSED |
Order closed for this offer. |
Order status
Determines the state of an order
State | Description |
---|---|
NEW |
A new order. No consecutive action (reject / confirm) has taken place so far. |
REJECTED |
The order has been rejected by the supplier. |
CONFIRMED |
The order has been confirmed by the supplier |
CANCELLED |
The order has been cancelled by the buyer |
Reference types
A qualifier that determines whether an entity (e.g. component, product, company,..) is a reference or not. If an entity is a reference, the type will be MESPAS. In such a case, the same entity (e.g. the same buyer company) will always have the same unique identifier (id attribute). This may be especially useful if you want to create mappings or statistics on your side.
Reference Type | Description |
---|---|
MESPAS |
The entity (component, product, company,..) is a reference. The same entity (e.g. same product) will always have the same unique identifier. |
OTHER |
The entity (component, product, company,..) is not a reference. |
Action status
Indicates whether an action (e.g. send offer) was processed successfully or not
State | Description |
---|---|
SUCCESS |
The corresponding action was processed successfully. |
ERROR |
The processing of the corresponding action failed. |
Action code
Code | Description |
---|---|
SUCCESS |
The action code in case of success (corresponding action status is SUCCESS) |
PRECONDITION_FAILED |
Indicates that the corresponding action failed due to a violated precondition (e.g. offering for a request that is in status CANCELLED). |
INVALID_INPUT |
The input data provided is not valid (e.g. invalid unit) |
INTERNAL_ERROR |
An internal server error occurred. You may try at a later point in time. |
IT OPS Mode
Mode | Description |
---|---|
CUBE |
Installation uses CUBE |
CUBE_LESS |
Installation uses mobile app |
Buyer Offer States
State | Description |
---|---|
ordered |
Offer has been ordered |
closed |
Offer has been closed |
replaced |
Offer has been replaced |
to be approved |
Offer waiting for approval |
undefined |
Cannot determine offer state |
Purchase Request Urgency
Urgency | Description |
---|---|
0 |
Urgent |
1 |
Next Convenient Port |
2 |
Next Quarterly Supply |
3 |
Emergency Supply |
Task State
State | Description |
---|---|
0 |
Pending |
1 |
Postponed |
2 |
Need approval |
3 |
Closed |
4 |
Postponement need approval |
999 |
Not closed |
Requests
Get quote request (single)
A GET
request will return the quote request identified by the given id.
Http Request
GET /api/rest/supplier/v1/requests/11c78e43f82b4da0ba7cd37d13ea3242 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
Content-Length: 5903
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"id" : "11c78e43f82b4da0ba7cd37d13ea3242",
"status" : "NEW",
"priority" : null,
"requestTerms" : {
"referenceNumber" : "V-12-TESTREF-56-D/03",
"currency" : "USD",
"requestDate" : "2017-07-10",
"replyUntil" : "2017-07-10",
"paymentTerms" : "30 days net",
"remark" : "VESSEL IS IN FOREIGN TRADE WITHOUT V.A.T",
"restrictedUnits" : [ ]
},
"deliveryTerms" : {
"deliveryDate" : "2019-06-19",
"deliveryDateRemark" : "30 DAYS",
"incoterm" : "CIP",
"deliveryCountry" : "SG",
"deliveryCity" : "Singapore"
},
"deliveryDetails" : {
"company" : {
"type" : "OTHER",
"id" : null,
"name" : "Kuehne + Nagel",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : "",
"street1" : "Feldeggstrasse 5",
"street2" : "",
"postbox" : "",
"state" : "zh",
"zip" : "8152",
"city" : "Glattbrugg",
"country" : "CH"
},
"telco" : {
"phone" : "+41-44-8668100",
"mobile" : null,
"fax" : "+41-44-8668109"
}
},
"contact" : null,
"recipient" : "John Meyer",
"recipientPhone" : "+41 44 271 0320",
"remark" : "Warehouse at pier 7"
},
"vessel" : {
"name" : "ULTIMATE FREEDOM",
"imo" : "9212759"
},
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : "CHE 123.456.789",
"vatText" : "VAT text",
"eoriNumber" : "CH987654312000",
"address" : {
"coName" : "Naizen Shipping",
"street1" : "Ballindamm 25",
"street2" : "",
"postbox" : "",
"state" : "HH",
"zip" : "20095",
"city" : "Hamburg",
"country" : "DE"
},
"telco" : {
"phone" : "+49 40 3333-0",
"mobile" : null,
"fax" : ""
}
},
"contact" : {
"firstName" : "Walter",
"lastName" : "Schmid",
"email" : "walter.schmid@mail.mail",
"telco" : {
"phone" : "",
"mobile" : "+41177953624",
"fax" : ""
}
}
},
"supplier" : {
"company" : {
"type" : "MESPAS",
"id" : "b5ecda1cfada11e4a3221697f925ec7b",
"name" : "MESPAS Holding Inc",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : "35th floor, Prime Tower",
"street2" : "Hardstrasse 201",
"postbox" : "112233",
"state" : "ZH",
"zip" : "8005",
"city" : "Zurich",
"country" : "CH"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : {
"firstName" : "Daniel",
"lastName" : "Gsponer",
"email" : "admin@mespas.com",
"telco" : {
"phone" : "+41 44 520 10 44",
"mobile" : "+41 79 209 11 22",
"fax" : null
}
}
},
"product" : {
"type" : "MESPAS",
"id" : "f9ab4eadaf0452592169c265cb831d9",
"name" : "RT-flex96C",
"execution" : "",
"specification" : null,
"productInstance" : {
"type" : "MESPAS",
"id" : "1133b4f2042c4aac901e1e866d64b0b1",
"serialNumber" : "1235",
"buildingYear" : "2014",
"label" : "Auxiliary Engine #2",
"builder" : {
"name" : "H. Cegielski-Poznan S.A."
}
},
"brand" : {
"name" : "Wärtsilä"
},
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Sector No.",
"value" : "23.32242.323"
}, {
"name" : "Section Name",
"value" : "Compressor"
}, {
"name" : "Material",
"value" : "Carbon"
}, {
"name" : "Sheet No.",
"value" : "2701-32sd"
} ]
},
"attachments" : [ {
"fileId" : "201d718eaaa542808c7d84fe3a240ef0",
"fileName" : "conditions.txt",
"size" : "0.0240",
"mimeType" : "text/plain"
} ],
"items" : [ {
"position" : "1",
"quality" : null,
"remark" : "Please offer only best quality",
"quantity" : "8.000",
"unit" : "PIECE",
"component" : {
"type" : "MESPAS",
"id" : "2305e133764111e4988e002219ba5b31",
"name" : "gasket",
"execution" : "35mm",
"brand" : {
"name" : "Sulzer"
},
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Sector No.",
"value" : "23.32242.323"
}, {
"name" : "Section Name",
"value" : "Compressor"
}, {
"name" : "Material",
"value" : "Carbon"
}, {
"name" : "Sheet No.",
"value" : "2701-32sd"
} ],
"primaryIdentificationValue" : "7505/A131",
"secondaryIdentificationValue" : null
}
}, {
"position" : "2",
"quality" : null,
"remark" : "Same as last time requested",
"quantity" : "5.000",
"unit" : "PIECE",
"component" : {
"type" : "MESPAS",
"id" : "23067a8f764111e4988e002219ba5b31",
"name" : "Seal repair kit for Cylinder Head Hydraulic Jack Type W27.002",
"execution" : "round",
"brand" : {
"name" : "Sulzer"
},
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Sector No.",
"value" : "23.32242.323"
}, {
"name" : "Section Name",
"value" : "Compressor"
}, {
"name" : "Material",
"value" : "Carbon"
}, {
"name" : "Sheet No.",
"value" : "2701-32sd"
} ],
"primaryIdentificationValue" : "For Hydrauilic Jack Type W27.002",
"secondaryIdentificationValue" : null
}
} ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The vessel associated with the request |
|
|
Unique identifier of the request |
|
|
The request status. See Enum Values (Request Status) |
|
|
The priority of the request. See Enum Values (Priorities) |
|
|
The request’s reference number (mandatory) |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
The date when the request was sent by the buyer (mandatory) |
|
|
The date when the supplier’s reply is expected (optional) |
|
|
The buyer’s payment terms (optional) |
|
|
The remark associated with the request (optional) |
|
|
Restricts the units that may be used for quoting. If the list is empty, all units (according to Enum Values (Units)) may be assigned to the offer items of your quote. |
|
|
The delivery date (optional). Format: YYYY-MM-DD |
|
|
The delivery date remark (optional). Max. 100 characters. |
|
|
Incoterm (optional). NA is applied if no value is specified. See Enum Values (Incoterms) |
|
|
Delivery country code (optional). See Enum Values (Countries) |
|
|
Delivery city (optional). Max. 100 characters. |
|
|
The name of the recipient (person in charge). (optional) |
|
|
The phone number of hte recipient (person in charge). (optional) |
|
|
Delivery address remark (optional) |
|
|
The company |
|
|
Unique identifier for the company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the company |
|
|
The website of the company (optional) |
|
|
The VAT number of the company (optional) |
|
|
Additional information to the VAT number of the company (optional) |
|
|
EORI number of the company (optional) |
|
|
Company’s address details |
|
|
c/o (care of) recipient (optional) |
|
|
Street (optional) |
|
|
Street addition (optional) |
|
|
P.O. Box (optional) |
|
|
State (optional) |
|
|
ZIP code (optional) |
|
|
City (optional) |
|
|
Country code (optional). See Enum Values (Countries) |
|
|
Company’s telecommunication details |
|
|
Company’s phone number (optional) |
|
|
Company’s mobile number (optional) |
|
|
Company’s fax number (optional) |
|
|
Not present (null) - Contact (person in charge) details are available in the fields recipient, recipientPhone and remark |
|
|
IMO number (International Maritime Organization) |
|
|
The name of the vessel |
|
|
The company |
|
|
Unique identifier for the company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the company |
|
|
The website of the company (optional) |
|
|
The VAT number of the company (optional) |
|
|
Additional information to the VAT number of the company (optional) |
|
|
EORI number of the company (optional) |
|
|
Company’s address details |
|
|
c/o (care of) recipient (optional) |
|
|
Street (optional) |
|
|
Street addition (optional) |
|
|
P.O. Box (optional) |
|
|
State (optional) |
|
|
ZIP code (optional) |
|
|
City (optional) |
|
|
Country code (optional). See Enum Values (Countries) |
|
|
Company’s telecommunication details |
|
|
Company’s phone number (optional) |
|
|
Company’s mobile number (optional) |
|
|
Company’s fax number (optional) |
|
|
The associated contact - may be null |
|
|
The first name of the contact person |
|
|
The last name of the contact person |
|
|
Email address - may be empty |
|
|
Phone number (optional) |
|
|
Mobile number (optional) |
|
|
Fax number (optional) |
|
|
The company |
|
|
Unique identifier for the company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the company |
|
|
The website of the company (optional) |
|
|
The VAT number of the company (optional) |
|
|
Additional information to the VAT number of the company (optional) |
|
|
EORI number of the company (optional) |
|
|
Company’s address details |
|
|
c/o (care of) recipient (optional) |
|
|
Street (optional) |
|
|
Street addition (optional) |
|
|
P.O. Box (optional) |
|
|
State (optional) |
|
|
ZIP code (optional) |
|
|
City (optional) |
|
|
Country code (optional). See Enum Values (Countries) |
|
|
Company’s telecommunication details |
|
|
Company’s phone number (optional) |
|
|
Company’s mobile number (optional) |
|
|
Company’s fax number (optional) |
|
|
The associated contact - may be null |
|
|
The first name of the contact person |
|
|
The last name of the contact person |
|
|
Email address - may be empty |
|
|
Phone number (optional) |
|
|
Mobile number (optional) |
|
|
Fax number (optional) |
|
|
Unique identifier for the product. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the product |
|
|
Execution of the product (optional) |
|
|
Addional specification (optional) |
|
|
The product instance details (optional) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the product instance. Only present if type is MESPAS |
|
|
The serial number |
|
|
An additional label (optional) |
|
|
The year the product instance was built (optional) |
|
|
Details about the builder (optional) |
|
|
Company’s phone number (mandatory) |
|
|
The product’s brand details |
|
|
The product’s brand name |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
The line item number. The same line item number must be used for quoting. (mandatory) |
|
|
The requested quality (optional). See Enum Values (Qualities) |
|
|
The line item remark (optional) |
|
|
The requested quantity (max 3 digites) (mandatory) |
|
|
The requested unit (mandatory). See Enum Values (Units) |
|
|
The requested component (mandatory) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the component. Only present if type is MESPAS |
|
|
The component’s name |
|
|
The component’s execution |
|
|
Brand details |
|
|
Brand name |
|
|
The primary identification value |
|
|
The secondary identification value |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
The unique id of the attachment. This id is used in order to download the according file (see Get Attachment) |
|
|
The file name of the attachment |
|
|
The file’s MIME type (application/octet-stream in case of files attached to requests and orders) |
|
|
The attachment’s size in [kb] |
Get quote requests (multiple)
Returns multiple quote requests. The quote request information hereby comprehends the id, reference number, status, request date and the buyer details. If you want to retrieve more details for a specific request, you have to call Request.
Http Request
GET /api/rest/supplier/v1/requests?page=0&after=2017-07-09&before=2017-07-11 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to search for requests which were received before the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28) |
|
Optional request parameter allowing to search for requests which were received after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 882
{
"data" : [ {
"id" : "11c78e43f82b4da0ba7cd37d13ea3242",
"referenceNumber" : "V-12-TESTREF-56-D/03",
"status" : "NEW",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"requestDate" : "2017-07-10"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 20
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of requests |
|
|
Unique identifier of the request |
|
|
The request’s reference number (mandatory) |
|
|
The date when the request was sent by the buyer (mandatory) |
|
|
The request status. See Enum Values (Request Status) |
|
|
The buyer company |
|
|
Unique identifier for the buyer company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the buyer company |
|
|
Not present (null) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Reject request
Allows you to reject a request, in case you are not interested in quoting.
Http Request
POST /api/rest/supplier/v1/requests/ff80818187b7df1f0187b80cd3ff0e6f/reject HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Content-Length: 35
Host: api.mespas.com
{ "remark": "Not willing to quote"}
Http Request Parameter
None
Http Request Body
{ "remark": "Not willing to quote"}
Http Request Fields
Path | Type | Description |
---|---|---|
|
|
The reason for rejecting the request (optional). Max size 2048. |
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 84
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"status" : "SUCCESS",
"code" : "SUCCESS",
"message" : null,
"data" : [ ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
Status of the action. See Enum Values (Action Status) |
|
|
Additional status code (error code in case of failure). See Enum Values (Action Code) |
|
|
A description of the error that occured (optional). Only present in case of an error |
|
|
Empty array (not used) |
Offers
Get offer (single)
A GET
offer will return an offer identified by the given id.
Http Request
GET /api/rest/supplier/v1/offers/ff80818187b7df1f0187b80ce4680eae HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
Content-Length: 4621
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"offerTerms" : {
"referenceNumber" : "9270ca51-bfe4-4ae3-8382-5329c21ba9c3",
"currency" : "USD",
"validUntil" : "2023-05-09",
"paymentTerms" : "only cash",
"remark" : "remark to offer terms"
},
"deliveryTerms" : {
"deliveryDate" : null,
"deliveryDateRemark" : "one week",
"incoterm" : "CFR",
"deliveryCountry" : "NO",
"deliveryCity" : "Kirkeness"
},
"id" : "ff80818187b7df1f0187b80ce4680eae",
"priority" : null,
"offerStatus" : "SENT",
"offerDate" : "2023-04-25",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "TBSC GmbH & Co KG",
"web" : null,
"vatNumber" : "vatNumber",
"vatText" : "vatText",
"eoriNumber" : "eoriNumber",
"address" : {
"coName" : null,
"street1" : "Brumby House, 1st Floor, OF1-03",
"street2" : "Jalan Bahasa",
"postbox" : "80148",
"state" : null,
"zip" : "87011",
"city" : "Labuan",
"country" : "MY"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : {
"firstName" : "Thomas",
"lastName" : "Muster",
"email" : "info@mespas.com",
"telco" : {
"phone" : "+41 44 271 0320",
"mobile" : null,
"fax" : null
}
}
},
"product" : {
"type" : "MESPAS",
"id" : "fd58bbe5f86041099660167b87dfe1c6",
"name" : "S20H",
"execution" : "",
"specification" : null,
"productInstance" : {
"type" : "MESPAS",
"id" : "1133b4f2042c4aac901e1e866d64b0b0",
"serialNumber" : "5150",
"buildingYear" : "2014",
"label" : "Auxiliary Engine#1",
"builder" : {
"name" : "H. Cegielski-Poznan S.A."
}
},
"brand" : {
"name" : "Sulzer"
},
"specificationDetails" : [ {
"name" : "Operating System",
"value" : "Cargo hold #1"
}, {
"name" : "Operating System",
"value" : "Cargo hold #1"
}, {
"name" : "Location",
"value" : "Power supply"
}, {
"name" : "Location",
"value" : "Aft Engine Room"
}, {
"name" : "Warranty Alarm [days]",
"value" : null
}, {
"name" : "MCR [kW]",
"value" : null
}, {
"name" : "Remark 1",
"value" : null
}, {
"name" : "Rotation Direction",
"value" : "755"
}, {
"name" : "Engine Execution",
"value" : "1 CWF"
}, {
"name" : "Yard Tag Number",
"value" : null
}, {
"name" : "No. of Cylinders",
"value" : "8"
}, {
"name" : "Warranty Exp. Date",
"value" : null
}, {
"name" : "Speed CMCR [rpm]",
"value" : "1000"
}, {
"name" : "CMCR [kW]",
"value" : "1080"
}, {
"name" : "Fuel Oil Type",
"value" : null
}, {
"name" : "Speed CMCR [rpm]",
"value" : "1000"
} ]
},
"vessel" : {
"name" : "Celebrity Eclipse (MS A2)",
"imo" : "1458785"
},
"request" : {
"id" : "ff80818187b7df1f0187b80ce27a0ea7",
"reference" : "REQ-2023-216606"
},
"pricings" : {
"discount" : "10.00",
"transportCost" : "2000.0000",
"insuranceCost" : "1000.0000",
"packagingCost" : "3000.0000",
"otherCost" : null,
"vat" : "8.0000",
"total" : "6625.8000"
},
"attachments" : [ {
"fileId" : "ff80818187b7dd6d0187b80ce42e001e",
"fileName" : "company-policy.txt",
"size" : "0.0510",
"mimeType" : "plain/text"
}, {
"fileId" : "ff80818187b7dd6d0187b80ce447001f",
"fileName" : "appendix.txt",
"size" : "0.0160",
"mimeType" : "plain/text"
} ],
"items" : [ {
"quality" : "HIGH",
"position" : "1",
"remark" : "Best quality requested",
"quantity" : "2.000",
"unit" : "PIECE",
"discount" : "50.00",
"pricePerUnit" : "150.0000",
"unitConversionRate" : "1.00",
"component" : {
"type" : "MESPAS",
"id" : "dda2d0f42036444a9494d680c50e9329",
"name" : "TYPE: S 967 SERIAL NO.:4226402/2013 440V 60HZ RECOMMENDED MOTOR POWER 21KW MAKER: ALFA LAVAL (JIANG ",
"execution" : "2234121 40/DWG.NO.2052N",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "Subtype PT-001-1 Component 1 Spez."
}, {
"name" : "Drawing No.",
"value" : "Spec 2"
}, {
"name" : "Section Name",
"value" : "Hydraulic Jack Type 23.00 - 5"
} ],
"primaryIdentificationValue" : null,
"secondaryIdentificationValue" : null
}
} ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The buyer’s reference number (as provided in the corresponding request) |
|
|
The request id that the offer relates to (mandatory). 32 characters uuid. |
|
|
Reference number (optional). Max. 50 characters. |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
Offer’s valid until date (optional). Date format 'yyyy-mm-dd' (e.g. 2017-10-28) |
|
|
Your payment terms (optional). Max. 50 characters. |
|
|
General offer remark (optional). Unlimited number of characters. |
|
|
The delivery date (optional). Format: YYYY-MM-DD |
|
|
The delivery date remark (optional). Max. 100 characters. |
|
|
Incoterm (optional). NA is applied if no value is specified. See Enum Values (Incoterms) |
|
|
Delivery country code (optional). See Enum Values (Countries) |
|
|
Delivery city (optional). Max. 100 characters. |
|
|
Total amount |
|
|
Discount expressed as a percentage (optional). Decimal value. Value range [0..100] |
|
|
The amount of transport costs (optional). Decimal value. |
|
|
The amount of insurance costs (optional). Decimal value. |
|
|
The amount of packaging costs (optional). Decimal value. |
|
|
The amount of other costs (optional). Decimal value. |
|
|
VAT (tax) expressed as a percentage (optional). Decimal value. |
|
|
Line item number (mandatory). Incremental number, starting with 1 (the first offer item has line item number 1, the second offer item has line item number 2, aso). The offer must include the same number of offer items than the according request has request items. |
|
|
The quality of the item (optional). See Enum Values (Qualities) |
|
|
The line item remark (optional). Unlimited number of characters. |
|
|
Item quantity (max 3 digits after the decimal place) (mandatory) |
|
|
Unit (mandatory). See Enum Values (Units) |
|
|
Discount in percent (optional). Decimal value. Value range [0..100] |
|
|
The item price on unit level (max 4 digits after the decimal place) (mandatory). |
|
|
The unit conversion must be present when the offer item unit differs from the unit of the according request item. Example: request item unit is 'piece', according offer item unit is 'set'. The unit conversion rate determines the conversion factor. E.g. 100 in order to express that a set contains 100 pieces. |
|
|
The requested component (mandatory) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the component. Only present if type is MESPAS |
|
|
The component’s name |
|
|
The component’s execution |
|
|
Brand details |
|
|
Brand name |
|
|
The primary identification value |
|
|
The secondary identification value |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
The unique id of the attachment. This id is used in order to download the according file (see Get Attachment) |
|
|
The file name of the attachment |
|
|
The file’s MIME type (application/octet-stream in case of files attached to requests and orders) |
|
|
The attachment’s size in [kb] |
|
|
Unique identifier of the offer |
|
|
The priority of the offer. See Enum Values (Priorities). |
|
|
The offer status. See Enum Values (Offer Status). |
|
|
The date when the offer was sent |
|
|
The company |
|
|
Unique identifier for the company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the company |
|
|
The website of the company (optional) |
|
|
The VAT number of the company (optional) |
|
|
Additional information to the VAT number of the company (optional) |
|
|
EORI number of the company (optional) |
|
|
Company’s address details |
|
|
c/o (care of) recipient (optional) |
|
|
Street (optional) |
|
|
Street addition (optional) |
|
|
P.O. Box (optional) |
|
|
State (optional) |
|
|
ZIP code (optional) |
|
|
City (optional) |
|
|
Country code (optional). See Enum Values (Countries) |
|
|
Company’s telecommunication details |
|
|
Company’s phone number (optional) |
|
|
Company’s mobile number (optional) |
|
|
Company’s fax number (optional) |
|
|
The associated contact - may be null |
|
|
The first name of the contact person |
|
|
The last name of the contact person |
|
|
Email address - may be empty |
|
|
Phone number (optional) |
|
|
Mobile number (optional) |
|
|
Fax number (optional) |
|
|
Unique identifier for the product. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the product |
|
|
Execution of the product (optional) |
|
|
Addional specification (optional) |
|
|
The product instance details (optional) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the product instance. Only present if type is MESPAS |
|
|
The serial number |
|
|
An additional label (optional) |
|
|
The year the product instance was built (optional) |
|
|
Details about the builder (optional) |
|
|
Company’s phone number (mandatory) |
|
|
The product’s brand details |
|
|
The product’s brand name |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
IMO number (International Maritime Organization) |
|
|
The name of the vessel |
Get offers (multiple)
Returns multiple offers.
Http Request
GET /api/rest/supplier/v1/offers?page=0&from=2015-01-01&to=2017-08-30 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 3205
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"id" : "aaaaaa11111",
"reference" : "OFFER-3",
"status" : null,
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"offerDate" : null
}, {
"id" : "2f574e2b83754af9abf4e69c6da95b9d",
"reference" : "OFFER-2",
"status" : "SENT",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"offerDate" : "2014-11-28"
}, {
"id" : "1f5b1fd39e994cd2931a196af22c1db9",
"reference" : "OFFER-1",
"status" : "REPLACED",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"offerDate" : null
}, {
"id" : "1f5b1fd39e994cd2931a196af2212345",
"reference" : "OFFER-1-2",
"status" : "SENT",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"offerDate" : "2014-11-28"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 20
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of offers |
|
|
The offer status. See Enum Values (Offer Status). |
|
|
The date when the offer was sent |
|
|
The unique id of the offer referenced by this order |
|
|
The supplier’s reference number provided for that offer |
|
|
The buyer company |
|
|
Unique identifier for the buyer company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the buyer company |
|
|
Not present (null) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Send offer
Allows you to quote on a request.
Total Price (Calculation Rules)
The total offer price is calculated based on the offer item prices and the various other costs (packaging costs, transport costs, ..) that may be applied to an offer. In order to prevent any inconsistencies, the total offer price cannot be set directly. The example shown next explains the calculation rules for the total (final) offer price.
Pos | Quantity | Price Per Unit | Discount | Total |
---|---|---|---|---|
1 |
20 |
15 |
10 |
270 |
2 |
5 |
20 |
20 |
80 |
Total Item Price |
350 |
|||
Discount |
10 |
35 |
||
Total Item Price (incl. discount) |
315 |
|||
Packing Costs |
25 |
|||
Transportation Costs |
100 |
|||
Insurance Costs |
5 |
|||
Other Costs |
55 |
|||
VAT |
10 |
|||
Total Price |
550 |
Http Request
POST /api/rest/supplier/v1/offers/send HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Content-Length: 1612
Host: api.mespas.com
{
"offerTerms" : {
"referenceNumber" : "1a3e54fc-bc2b-4e97-a121-930256c63888",
"currency" : "USD",
"validUntil" : "2023-05-09",
"paymentTerms" : "only cash",
"remark" : "remark to offer terms"
},
"deliveryTerms" : {
"deliveryDate" : null,
"deliveryDateRemark" : "one week",
"incoterm" : "CFR",
"deliveryCountry" : "NO",
"deliveryCity" : "Kirkeness"
},
"contact" : {
"firstName" : "John",
"lastName" : "Doe",
"phone" : "+41 44 520 1030",
"email" : "john@mail.mail"
},
"request" : {
"id" : "ff80818187b7df1f0187b80ce7a10eb3"
},
"pricings" : {
"discount" : "10.00",
"transportCost" : "2000.00",
"insuranceCost" : "1000.00",
"packagingCost" : "3000.00",
"otherCost" : null,
"vat" : "8.00"
},
"items" : [ {
"quality" : "HIGH",
"position" : "1",
"remark" : "Best quality requested",
"quantity" : "2.000",
"unit" : "PIECE",
"discount" : "50.00",
"pricePerUnit" : "150.0000",
"unitConversionRate" : "1.00",
"component" : {
"id" : null,
"name" : "TYPE: S 967 SERIAL NO.:4226402/2013 440V 60HZ RECOMMENDED MOTOR POWER 21KW MAKER: ALFA LAVAL (JIANG ",
"execution" : "2234121 40/DWG.NO.2052N",
"identifications" : [ "P90806-0089 22" ]
}
} ],
"attachments" : [ {
"fileName" : "company-policy.txt",
"mimeType" : "plain/text",
"base64Data" : "RGVsaXZlcnkgZGF0ZXMgYXJlIGVzdGltYXRlcyBvbmx5IGFuZCBhcmUgbm90IGdyYW50ZWQ="
}, {
"fileName" : "appendix.txt",
"mimeType" : "plain/text",
"base64Data" : "R2VuZXJhbCBub3RlcyAuLi4="
} ]
}
Http Request Parameter
None
Http Request Body
See Http Request
Http Request Fields
Path | Type | Description |
---|---|---|
|
|
First name of the person responsible for this offer. |
|
|
Last name of the person responsible for this offer. |
|
|
Phone number of the person responsible for this offer. |
|
|
Email of the person responsible for this offer. |
|
|
The request id that the offer relates to (mandatory). 32 characters uuid. |
|
|
Reference number (optional). Max. 50 characters. |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
Offer’s valid until date (optional). Date format 'yyyy-mm-dd' (e.g. 2017-10-28) |
|
|
Your payment terms (optional). Max. 50 characters. |
|
|
General offer remark (optional). Unlimited number of characters. |
|
|
The delivery date (optional). Format: YYYY-MM-DD |
|
|
The delivery date remark (optional). Max. 100 characters. |
|
|
Incoterm (optional). NA is applied if no value is specified. See Enum Values (Incoterms) |
|
|
Delivery country code (optional). See Enum Values (Countries) |
|
|
Delivery city (optional). Max. 100 characters. |
|
|
Discount expressed as a percentage (optional). Decimal value. Value range [0..100] |
|
|
The amount of transport costs (optional). Decimal value. |
|
|
The amount of insurance costs (optional). Decimal value. |
|
|
The amount of packaging costs (optional). Decimal value. |
|
|
The amount of other costs (optional). Decimal value. |
|
|
VAT (tax) expressed as a percentage (optional). Decimal value. |
|
|
Line item number (mandatory). Incremental number, starting with 1 (the first offer item has line item number 1, the second offer item has line item number 2, aso). The offer must include the same number of offer items than the according request has request items. |
|
|
The quality of the item (optional). See Enum Values (Qualities) |
|
|
The line item remark (optional). Unlimited number of characters. |
|
|
Item quantity (max 3 digits after the decimal place) (mandatory) |
|
|
Unit (mandatory). See Enum Values (Units) |
|
|
Discount in percent (optional). Decimal value. Value range [0..100] |
|
|
The item price on unit level (max 4 digits after the decimal place) (mandatory). |
|
|
The unit conversion must be present when the offer item unit differs from the unit of the according request item. Example: request item unit is 'piece', according offer item unit is 'set'. The unit conversion rate determines the conversion factor. E.g. 100 in order to express that a set contains 100 pieces. |
|
|
The component description - only required for additional offer items whithout corresponding request item. The 'Add Item' functionality is not available per default. Please contact our support team in case you are interested in that feature. |
|
|
Internal use only (empty) |
|
|
The component’s name |
|
|
The component’s execution |
|
|
Your identification values (such as part-no, item-no,..) |
|
|
The file name of the attachment |
|
|
The file’s MIME type |
|
|
The file content - base64 encoded |
Http Response
HTTP/1.1 200 OK
Content-Length: 162
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"status" : "SUCCESS",
"code" : "SUCCESS",
"message" : null,
"data" : [ {
"key" : "offerId",
"value" : "ff80818187b7df1f0187b80ce97c0eba"
} ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
Status of the action. See Enum Values (Action Status) |
|
|
Additional status code (error code in case of failure). See Enum Values (Action Code) |
|
|
A description of the error that occured (optional). Only present in case of an error |
|
|
Empty array (not used) |
|
|
An array of key value pairs associated to the results of the executed action (e.g. the id of a created offer) |
|
|
The association’s key (e.g. offerId) |
|
|
The corresponding value |
Orders
Get order (single)
A GET
order will return the order identified by the given id.
Http Request
GET /api/rest/supplier/v1/orders/fc1a5efce82d11e4b02c1681e6b88ec1 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
Content-Length: 17756
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"id" : "fc1a5efce82d11e4b02c1681e6b88ec1",
"offer" : {
"id" : "1f5b1fd39e994cd2931a196af22c1db9",
"reference" : "OFFER-1"
},
"status" : "CONFIRMED",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "Buyer Inc",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : "",
"street1" : "Heinrichstrasse 213",
"street2" : "",
"postbox" : "",
"state" : "ZH",
"zip" : "8005",
"city" : "Zurich",
"country" : "CH"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : {
"firstName" : "John",
"lastName" : "Doe",
"email" : "john@mail.mail",
"telco" : {
"phone" : "+41 44 520 1030",
"mobile" : "+41 76 79 85369",
"fax" : "+41 44 520 1031"
}
}
},
"supplier" : {
"company" : {
"type" : "MESPAS",
"id" : "49517a98021b4353b08daddcc19a394a",
"name" : "MESPAS Poland",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : "Rynek Glowny 6",
"street2" : "Old City",
"postbox" : "112233",
"state" : "malopolskie",
"zip" : "33-100",
"city" : "Krakow",
"country" : "PL"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : {
"firstName" : "Daniel",
"lastName" : "Gsponer",
"email" : "admin@mespas.com",
"telco" : {
"phone" : "+41 44 520 10 44",
"mobile" : "+41 79 209 11 22",
"fax" : null
}
}
},
"invoiceDetails" : {
"company" : {
"type" : "OTHER",
"id" : null,
"name" : "ULTIMATE FREEDOM Co & KG",
"web" : null,
"vatNumber" : "CHE 123.456.789",
"vatText" : "VAT text",
"eoriNumber" : "CH987654312000",
"address" : {
"coName" : "Naizen Shipping",
"street1" : "Ballindamm 25",
"street2" : "",
"postbox" : "",
"state" : "HH",
"zip" : "20095",
"city" : "Hamburg",
"country" : "DE"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : {
"firstName" : "Chan",
"lastName" : "Heng Chee",
"email" : "chan.heng.chee@xxx.xx",
"telco" : {
"phone" : "",
"mobile" : "+65 6538 6930",
"fax" : ""
}
}
},
"deliveryDetails" : {
"company" : {
"type" : "OTHER",
"id" : null,
"name" : "Port of Hong Kong",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : "",
"street1" : "Harbour Building",
"street2" : "38 Pier Road",
"postbox" : "",
"state" : "",
"zip" : "",
"city" : "Hong Kong",
"country" : "HK"
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null,
"recipient" : "John Meyer",
"recipientPhone" : "+41 44 271 0320",
"remark" : "Warehouse at pier 7"
},
"orderTerms" : {
"referenceNumber" : "O-2007-GER-00013/01/01",
"currency" : "CHF",
"paymentTerms" : "On delivery",
"remark" : "Please handle with care",
"orderDate" : "2015-02-11"
},
"deliveryTerms" : {
"deliveryDate" : "2018-06-28",
"deliveryDateRemark" : "2 weeks after order",
"incoterm" : "FAS"
},
"vessel" : {
"name" : "ULTIMATE FREEDOM",
"imo" : "9212759"
},
"product" : {
"type" : "MESPAS",
"id" : "fd58bbe5f86041099660167b87dfe1c6",
"name" : "S20H",
"execution" : "",
"specification" : null,
"productInstance" : {
"type" : "MESPAS",
"id" : "1133b4f2042c4aac901e1e866d64b0b0",
"serialNumber" : "5150",
"buildingYear" : "2014",
"label" : "Auxiliary Engine#1",
"builder" : {
"name" : "H. Cegielski-Poznan S.A."
}
},
"brand" : {
"name" : "Sulzer"
},
"specificationDetails" : [ {
"name" : "Operating System",
"value" : "Cargo hold #1"
}, {
"name" : "Operating System",
"value" : "Cargo hold #1"
}, {
"name" : "Location",
"value" : "Power supply"
}, {
"name" : "Location",
"value" : "Aft Engine Room"
}, {
"name" : "Warranty Alarm [days]",
"value" : null
}, {
"name" : "MCR [kW]",
"value" : null
}, {
"name" : "Remark 1",
"value" : null
}, {
"name" : "Rotation Direction",
"value" : "755"
}, {
"name" : "Engine Execution",
"value" : "1 CWF"
}, {
"name" : "Yard Tag Number",
"value" : null
}, {
"name" : "No. of Cylinders",
"value" : "8"
}, {
"name" : "Warranty Exp. Date",
"value" : null
}, {
"name" : "Speed CMCR [rpm]",
"value" : "1000"
}, {
"name" : "CMCR [kW]",
"value" : "1080"
}, {
"name" : "Fuel Oil Type",
"value" : null
}, {
"name" : "Speed CMCR [rpm]",
"value" : "1000"
} ]
},
"portStay" : {
"portName" : "Hong Kong",
"portCode" : "HK HKG",
"portCountry" : "CN",
"arrivalDate" : "2018-06-28 20:00",
"departureDate" : "2018-07-01 04:00",
"ownerAgentInfo" : "HELVETIC MARINE SERVICES",
"chartererAgentInfo" : null
},
"deliveryOnBoard" : {
"country" : "CN",
"portName" : "Hong Kong",
"portCode" : "HK HKG",
"city" : null,
"arrivalDate" : "2018-06-28",
"timeZone" : "Asia/Hong_Kong",
"remark" : "Delivery on board is 3 hours after arrival"
},
"attachments" : [ {
"fileId" : "d052ac08d1814af2a74a766e2ee65d88",
"fileName" : "invoicing-details.txt",
"size" : "0.0240",
"mimeType" : "text/plain"
} ],
"pricings" : {
"discount" : "10.00",
"transportCost" : "150.0000",
"insuranceCost" : "15.0000",
"packagingCost" : "100.0000",
"otherCost" : null,
"vat" : null,
"total" : "671.9800"
},
"items" : [ {
"quality" : null,
"position" : "1",
"remark" : "remark to this item",
"quantity" : "5.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "10.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c6cd764111e4988e002219ba5b31",
"name" : "bush (nozzle holder)",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "2722/A104",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "2",
"remark" : "Best quality",
"quantity" : "1.000",
"unit" : "PIECE",
"discount" : "5.25",
"pricePerUnit" : "11.3285",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c345764111e4988e002219ba5b31",
"name" : "gudgeon stud",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "3301/A105",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "3",
"remark" : "remark to this item",
"quantity" : "2.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "12.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c3c7764111e4988e002219ba5b31",
"name" : "gudgeon pin",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "3401/A108",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "4",
"remark" : "remark to this item",
"quantity" : "1.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "13.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c3e7764111e4988e002219ba5b31",
"name" : "piston ring",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "3425/A002",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "5",
"remark" : "remark to this item",
"quantity" : "1.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "14.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c625764111e4988e002219ba5b31",
"name" : "cylinder cover",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "2701/A098",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "6",
"remark" : "remark to this item",
"quantity" : "9.236",
"unit" : "KILOGRAM",
"discount" : "5.00",
"pricePerUnit" : "15.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c6ed764111e4988e002219ba5b31",
"name" : "fuel injector nozzle",
"execution" : "160x12x0,255",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "2724/A004",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "7",
"remark" : "remark to this item",
"quantity" : "3.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "16.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305c89c764111e4988e002219ba5b31",
"name" : "pushrod for nozzle holder",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "2722/A107",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "8",
"remark" : "remark to this item",
"quantity" : "2.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "17.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305d52e764111e4988e002219ba5b31",
"name" : "copper joint ring",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "1001/A231",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "9",
"remark" : "remark to this item",
"quantity" : "5.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "18.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "2305dd8b764111e4988e002219ba5b31",
"name" : "gasket",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "6701/A104",
"secondaryIdentificationValue" : null
}
}, {
"quality" : null,
"position" : "10",
"remark" : "remark to this item",
"quantity" : "3.000",
"unit" : "PIECE",
"discount" : "5.00",
"pricePerUnit" : "19.0000",
"unitConversionRate" : null,
"component" : {
"type" : "MESPAS",
"id" : "230677a8764111e4988e002219ba5b31",
"name" : "Pressure Transmitter (0 ~ 10bar), Type: 8244.78.2318, IP65, S/N 028726.0.00.01-001, maker: trafag",
"execution" : "",
"brand" : null,
"specificationDetails" : [ {
"name" : "Part No.",
"value" : "2722/A104"
}, {
"name" : "Part No.",
"value" : "3301/A105"
}, {
"name" : "Part No.",
"value" : "3401/A108"
}, {
"name" : "Part No.",
"value" : "3425/A002"
}, {
"name" : "Part No.",
"value" : "2701/A098"
}, {
"name" : "Part No.",
"value" : "2724/A004"
}, {
"name" : "Part No.",
"value" : "2722/A107"
}, {
"name" : "should not be visible value",
"value" : "should not be visible value"
} ],
"primaryIdentificationValue" : "9323/A202",
"secondaryIdentificationValue" : null
}
} ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The vessel associated with the order |
|
|
The port stay information of the vessel at the point in time the order has been created. Maybe null. |
|
|
The planned delivery on bord information at the point in time the order has been created. Maybe null. |
|
|
Information about the buyer that ordered |
|
|
Information about the supplier company that received the order |
|
|
The offer that this order relates to. In case of a direct order, the offer reference is not existing |
|
|
Invoicing address and contact details. Similar structure to the buyer address and contact. |
|
|
Delivery address (similar structure to the buyer address). Contact (person in charge) details are available in the fields recipient, recipientPhone and remark |
|
|
Details about the product the ordered items belong to |
|
|
The list of the ordered items |
|
|
The list of files attached to the order |
|
|
Unique identifier of the order. |
|
|
The order status. See Enum Values (Order Status) |
|
|
The unique id of the offer referenced by this order |
|
|
The supplier’s reference number provided for that offer |
|
|
The company |
|
|
Unique identifier for the company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the company |
|
|
The website of the company (optional) |
|
|
The VAT number of the company (optional) |
|
|
Additional information to the VAT number of the company (optional) |
|
|
EORI number of the company (optional) |
|
|
Company’s address details |
|
|
c/o (care of) recipient (optional) |
|
|
Street (optional) |
|
|
Street addition (optional) |
|
|
P.O. Box (optional) |
|
|
State (optional) |
|
|
ZIP code (optional) |
|
|
City (optional) |
|
|
Country code (optional). See Enum Values (Countries) |
|
|
Company’s telecommunication details |
|
|
Company’s phone number (optional) |
|
|
Company’s mobile number (optional) |
|
|
Company’s fax number (optional) |
|
|
The associated contact - may be null |
|
|
The first name of the contact person |
|
|
The last name of the contact person |
|
|
Email address - may be empty |
|
|
Phone number (optional) |
|
|
Mobile number (optional) |
|
|
Fax number (optional) |
|
|
Order reference number (mandatory) |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
The date the order was received |
|
|
The buyer’s payment terms (optional) |
|
|
General order remark (optional) |
|
|
The ordered delivery date (optional) - Date format 'yyyy-mm-dd' (e.g. 2018-12-19) |
|
|
The delivery date remark (optional). Max. 100 characters. |
|
|
Incoterm. See Enum Values (Incoterms) |
|
|
Unique identifier for the product. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the product |
|
|
Execution of the product (optional) |
|
|
Addional specification (optional) |
|
|
The product instance details (optional) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the product instance. Only present if type is MESPAS |
|
|
The serial number |
|
|
An additional label (optional) |
|
|
The year the product instance was built (optional) |
|
|
Details about the builder (optional) |
|
|
Company’s phone number (mandatory) |
|
|
The product’s brand details |
|
|
The product’s brand name |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
The name of the port (mandatory). |
|
|
The UN/LOCODE port code (mandatory). |
|
|
Country code (mandatory). See Enum Values (Countries). |
|
|
The expected date/time of arrival in the local time of the port (optional). |
|
|
The expected date/time of departure in the local time of the port (optional). |
|
|
Owner agent info (optional). |
|
|
Charterer agent info (optional). |
|
|
Country code (mandatory). See Enum Values (Countries). |
|
|
The name of the port (optional). |
|
|
The UN/LOCODE port code (optional). |
|
|
The name of the city (either port or city are defined) (optional). |
|
|
The planned arrival date (optional). |
|
|
The time zone related to the arrival date (optional) |
|
|
Remark related with the planned delivery on board of the goods (optional). |
|
|
Total amount |
|
|
Discount expressed as a percentage (optional). Decimal value. Value range [0..100] |
|
|
The amount of transport costs (optional). Decimal value. |
|
|
The amount of insurance costs (optional). Decimal value. |
|
|
The amount of packaging costs (optional). Decimal value. |
|
|
The amount of other costs (optional). Decimal value. |
|
|
VAT (tax) expressed as a percentage (optional). Decimal value. |
|
|
Line item number (mandatory). Incremental number, starting with 1 (the first offer item has line item number 1, the second offer item has line item number 2, aso). The offer must include the same number of offer items than the according request has request items. |
|
|
The quality of the item (optional). See Enum Values (Qualities) |
|
|
The line item remark (optional). Unlimited number of characters. |
|
|
Item quantity (max 3 digits after the decimal place) (mandatory) |
|
|
Unit (mandatory). See Enum Values (Units) |
|
|
Discount in percent (optional). Decimal value. Value range [0..100] |
|
|
The item price on unit level (max 4 digits after the decimal place) (mandatory). |
|
|
The unit conversion must be present when the offer item unit differs from the unit of the according request item. Example: request item unit is 'piece', according offer item unit is 'set'. The unit conversion rate determines the conversion factor. E.g. 100 in order to express that a set contains 100 pieces. |
|
|
The requested component (mandatory) |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
Unique identifier of the component. Only present if type is MESPAS |
|
|
The component’s name |
|
|
The component’s execution |
|
|
Brand details |
|
|
Brand name |
|
|
The primary identification value |
|
|
The secondary identification value |
|
|
Additional specification details (optional) |
|
|
Name (mandatory) |
|
|
Value (optional) |
|
|
The unique id of the attachment. This id is used in order to download the according file (see Get Attachment) |
|
|
The file name of the attachment |
|
|
The file’s MIME type (application/octet-stream in case of files attached to requests and orders) |
|
|
The attachment’s size in [kb] |
Get orders (multiple)
Returns multiple orders.
Http Request
GET /api/rest/supplier/v1/orders?page=0&after=2015-01-01&before=2015-02-28 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to search for requests which were received before the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28) |
|
Optional request parameter allowing to search for requests which were received after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 873
{
"data" : [ {
"id" : "fc1a5efce82d11e4b02c1681e6b88ec1",
"referenceNumber" : "O-2007-GER-00013/01/01",
"status" : "CONFIRMED",
"buyer" : {
"company" : {
"type" : "MESPAS",
"id" : "76fd6e311cbb4c3b9500bfe8ed41ef1e",
"name" : "Buyer Inc",
"web" : null,
"vatNumber" : null,
"vatText" : null,
"eoriNumber" : null,
"address" : {
"coName" : null,
"street1" : null,
"street2" : null,
"postbox" : null,
"state" : null,
"zip" : null,
"city" : null,
"country" : null
},
"telco" : {
"phone" : null,
"mobile" : null,
"fax" : null
}
},
"contact" : null
},
"orderDate" : "2015-02-10"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 20
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of orders |
|
|
Order reference number (mandatory) |
|
|
The date the order was received |
|
|
Unique identifier of the order. |
|
|
The order status. See Enum Values (Order Status) |
|
|
The buyer company |
|
|
Unique identifier for the buyer company. Only present if type is MESPAS |
|
|
The type of entity. See Enum Values (Reference Types) |
|
|
The name of the buyer company |
|
|
Not present (null) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Reject order
Allows you to reject an order, in case that you are not willing to accept the order.
Http Request
POST /api/rest/supplier/v1/orders/ff80818187b7df1f0187b80cd8330e80/reject HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Content-Length: 35
Host: api.mespas.com
{ "remark": "Not willing to quote"}
Http Request Parameter
None
Http Request Body
{ "remark": "Not willing to quote"}
Http Request Fields
Path | Type | Description |
---|---|---|
|
|
The reason for rejecting the order (optional). Max size 2048. |
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 84
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"status" : "SUCCESS",
"code" : "SUCCESS",
"message" : null,
"data" : [ ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
Status of the action. See Enum Values (Action Status) |
|
|
Additional status code (error code in case of failure). See Enum Values (Action Code) |
|
|
A description of the error that occured (optional). Only present in case of an error |
|
|
Empty array (not used) |
Confirm order
Allows you to confirm an order and providing a confirmation remark for the buyer.
Http Request
POST /api/rest/supplier/v1/orders/ff80818187b7df1f0187b80cd7180e76/confirm HTTP/1.1
Accept: application/json
Content-Length: 43
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
{ "remark": "Thanks a lot for this order!"}
Http Request Parameter
None
Http Request Body
{ "remark": "Thanks a lot for this order!"}
Http Request Fields
Path | Type | Description |
---|---|---|
|
|
The reason for rejecting the request (optional). Max size 2048. |
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 84
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"status" : "SUCCESS",
"code" : "SUCCESS",
"message" : null,
"data" : [ ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
Status of the action. See Enum Values (Action Status) |
|
|
Additional status code (error code in case of failure). See Enum Values (Action Code) |
|
|
A description of the error that occured (optional). Only present in case of an error |
|
|
Empty array (not used) |
Order modification
Send order modification
Allows you to send a modification (modified order) as response to a received order.
Pricing and Price Calculation Rules
Http Request
POST /api/rest/supplier/v1/order-modifications/send HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Content-Length: 1107
Host: api.mespas.com
{
"orderTerms" : {
"referenceNumber" : "c34fbf93-903d-40fe-8ea3-d73d9b1e777c",
"currency" : "USD",
"paymentTerms" : "only cash",
"remark" : "remark to offer terms"
},
"deliveryTerms" : {
"deliveryDate" : null,
"deliveryDateRemark" : "one week",
"incoterm" : "CFR"
},
"pricings" : {
"discount" : "10.00",
"transportCost" : "2000.00",
"insuranceCost" : "1000.00",
"packagingCost" : "3000.00",
"otherCost" : null,
"vat" : "8.00"
},
"order" : {
"id" : "ff80818187b7df1f0187b80cd94e0e8a"
},
"items" : [ {
"quality" : null,
"position" : "1",
"remark" : "Best quality requested",
"quantity" : "30.000",
"unit" : "PIECE",
"discount" : "50.00",
"pricePerUnit" : "150.0000",
"unitConversionRate" : "1.00",
"component" : {
"id" : null,
"name" : "TYPE: S 967 SERIAL NO.:4226402/2013 440V 60HZ RECOMMENDED MOTOR POWER 21KW MAKER: ALFA LAVAL (JIANG YIN) MANUFACTURING CO; LTD O-RING O-RING",
"execution" : "2234121 40/DWG.NO.2052N",
"identifications" : [ "P90806-0089 22" ]
}
} ]
}
Http Request Parameter
None
Http Request Body
See Http Request
Http Request Fields
Path | Type | Description |
---|---|---|
|
|
The order id that the order modification relates to (mandatory). 32 characters uuid. |
|
|
Order modification reference number (optional) |
|
|
Currency (optional). See Enum Values (Currencies) |
|
|
Your payment terms (optional) |
|
|
General order modification remark (optional) |
|
|
Your delivery date (optional) - Date format 'yyyy-mm-dd' (e.g. 2018-12-19) |
|
|
Your delivery date remark (optional). Max. 100 characters. |
|
|
Your Incoterm. See Enum Values (Incoterms) |
|
|
Discount expressed as a percentage (optional). Decimal value. Value range [0..100] |
|
|
The amount of transport costs (optional). Decimal value. |
|
|
The amount of insurance costs (optional). Decimal value. |
|
|
The amount of packaging costs (optional). Decimal value. |
|
|
The amount of other costs (optional). Decimal value. |
|
|
VAT (tax) expressed as a percentage (optional). Decimal value. |
|
|
Line item number (mandatory). Incremental number, starting with 1 (the first offer item has line item number 1, the second offer item has line item number 2, aso). The offer must include the same number of offer items than the according request has request items. |
|
|
The quality of the item (optional). See Enum Values (Qualities) |
|
|
The line item remark (optional). Unlimited number of characters. |
|
|
Item quantity (max 3 digits after the decimal place) (mandatory) |
|
|
Unit (mandatory). See Enum Values (Units) |
|
|
Discount in percent (optional). Decimal value. Value range [0..100] |
|
|
The item price on unit level (max 4 digits after the decimal place) (mandatory). |
|
|
The unit conversion must be present when the offer item unit differs from the unit of the according request item. Example: request item unit is 'piece', according offer item unit is 'set'. The unit conversion rate determines the conversion factor. E.g. 100 in order to express that a set contains 100 pieces. |
|
|
The component description - only required for additional offer items whithout corresponding request item. The 'Add Item' functionality is not available per default. Please contact our support team in case you are interested in that feature. |
|
|
Internal use only (empty) |
|
|
The component’s name |
|
|
The component’s execution |
|
|
Your identification values (such as part-no, item-no,..) |
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
Content-Length: 174
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"status" : "SUCCESS",
"code" : "SUCCESS",
"message" : null,
"data" : [ {
"key" : "orderModificationId",
"value" : "ff80818187b7df1f0187b80cdb3d0e99"
} ]
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
Status of the action. See Enum Values (Action Status) |
|
|
Additional status code (error code in case of failure). See Enum Values (Action Code) |
|
|
A description of the error that occured (optional). Only present in case of an error |
|
|
Empty array (not used) |
|
|
An array of key value pairs associated to the results of the executed action (e.g. the id of a created offer) |
|
|
The association’s key (e.g. offerId) |
|
|
The corresponding value |
Events
Get events
Returns multiple events. See Buyer Events / Polling for a detailed description.
Http Request
GET /api/rest/supplier/v1/events?last_received=0 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The event id of the last received event. Only subsequent events are returned up to a maximum of 100 events. If the parameter is not present, the first 100 events will be returned (including events which you may already have received) |
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 9651
[ {
"eventId" : 1,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "11c78e43f82b4da0ba7cd37d13ea3242"
}, {
"eventId" : 2,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "fc1a5efce82d11e4b02c1681e6b88ec1"
}, {
"eventId" : 3,
"eventType" : "REQUEST_CANCELLED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "11c78e43f82b4da0ba7cd37d13ea3242"
}, {
"eventId" : 4,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809da760002"
}, {
"eventId" : 5,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809ed890009"
}, {
"eventId" : 6,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f0c203f6"
}, {
"eventId" : 7,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f1e003fd"
}, {
"eventId" : 8,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f2c90404"
}, {
"eventId" : 9,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f3ac040b"
}, {
"eventId" : 10,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f47b0412"
}, {
"eventId" : 11,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f54e0419"
}, {
"eventId" : 12,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f61b0420"
}, {
"eventId" : 13,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f6e70427"
}, {
"eventId" : 14,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f7d0042e"
}, {
"eventId" : 15,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f8960435"
}, {
"eventId" : 16,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809f96f043c"
}, {
"eventId" : 17,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809fa370443"
}, {
"eventId" : 18,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809fb15044a"
}, {
"eventId" : 19,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809fc190451"
}, {
"eventId" : 20,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809fd06045c"
}, {
"eventId" : 21,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b809fdd00463"
}, {
"eventId" : 22,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b809fef4046d"
}, {
"eventId" : 23,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a00170477"
}, {
"eventId" : 24,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a01930481"
}, {
"eventId" : 25,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a02ff048b"
}, {
"eventId" : 26,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a03db0495"
}, {
"eventId" : 27,
"eventType" : "REQUEST_CANCELLED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a03db0495"
}, {
"eventId" : 28,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a055c049d"
}, {
"eventId" : 29,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a069204a4"
}, {
"eventId" : 30,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a07b004ab"
}, {
"eventId" : 31,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a089404b5"
}, {
"eventId" : 32,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a0b9104bc"
}, {
"eventId" : 33,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a0ee604c3"
}, {
"eventId" : 34,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a105d04cd"
}, {
"eventId" : 35,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80a11a404d7"
}, {
"eventId" : 36,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a125c04e1"
}, {
"eventId" : 37,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a136804e8"
}, {
"eventId" : 38,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80a145004ef"
}, {
"eventId" : 39,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80bad1c04f6"
}, {
"eventId" : 40,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80bdf5e0516"
}, {
"eventId" : 41,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c62000cee"
}, {
"eventId" : 42,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c6df00d0b"
}, {
"eventId" : 43,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c72d20d17"
}, {
"eventId" : 44,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c74ad0d1e"
}, {
"eventId" : 45,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c76360d25"
}, {
"eventId" : 46,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c77b20d2c"
}, {
"eventId" : 47,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c79300d33"
}, {
"eventId" : 48,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c82a20d44"
}, {
"eventId" : 49,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c840e0d4b"
}, {
"eventId" : 50,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c88ea0d57"
}, {
"eventId" : 51,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c8e950d64"
}, {
"eventId" : 52,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c8ff60d6b"
}, {
"eventId" : 53,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c91660d72"
}, {
"eventId" : 54,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80c92f50d79"
}, {
"eventId" : 55,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80ca1a70da7"
}, {
"eventId" : 56,
"eventType" : "REQUEST_CANCELLED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80ca1a70da7"
}, {
"eventId" : 57,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80ca35b0daf"
}, {
"eventId" : 58,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80ca5a40dbd"
}, {
"eventId" : 59,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80ca6b60dc4"
}, {
"eventId" : 60,
"eventType" : "ORDER_CANCELLED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80ca6b60dc4"
}, {
"eventId" : 61,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80ca8860dcf"
}, {
"eventId" : 62,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80cafb60dec"
}, {
"eventId" : 63,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80cb8120e14"
}, {
"eventId" : 64,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80cbcb70e26"
}, {
"eventId" : 65,
"eventType" : "REQUEST_CANCELLED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80cbcb70e26"
}, {
"eventId" : 66,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80cc1080e36"
}, {
"eventId" : 67,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80cc7a50e4b"
}, {
"eventId" : 68,
"eventType" : "ORDER_CREATED",
"entityType" : "ORDER",
"entityId" : "ff80818187b7df1f0187b80cc8e40e52"
}, {
"eventId" : 69,
"eventType" : "REQUEST_CREATED",
"entityType" : "QUOTE_REQUEST",
"entityId" : "ff80818187b7df1f0187b80ccd030e63"
} ]
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The unique id of this event. Incrementing number. You should store the id of the last consumed event in order to query only new events the next time (URL param 'last_received') |
|
|
The event type that caused the entry. See Enum Values (Event Types) |
|
|
The entity type. See Enum Values (Entity Types) |
|
|
The unique id of the entity |
Attachments
Get attachment
A GET
request that returns the file content of an attachment. The identifier used to GET the file data corresponds to the fileId attribute of the attachment structure (see Get Quote Request, Get Offer, Get Order).
Http Request
GET /api/rest/supplier/v1/files/ff80818187b7dd6d0187b80cdeb9001c HTTP/1.1
Accept: application/octet-stream
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6ImZmODA4MDgxNWQwOGRhODUwMTVkMDhkZGNjZTMwMDAwIiwiZXhwIjozNjQ2NTc1OTg2LCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiI2ZWM2NTMwYS0yMzk4LTQ1YTktOTU0MS0yZTUzYThiOGI5MTMiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.UXqY1ZHJRNsM5tPKv7fZOZk2-PCAXOxaI5ffsvys0Ws
Host: api.mespas.com
Http Request Body
Http Response
HTTP/1.1 200 OK
Content-Length: 53
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Disposition: form-data; name="attachment"; filename="company-policy.txt"
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Content-Type: plain/text
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Delivery dates are estimates only and are not granted
Http Response Body
Delivery dates are estimates only and are not granted
Forms
Get Form data
Returns multiple form data.
Http Request
GET /api/rest/r5/v1/form-data?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 4153
{
"data" : [ {
"lastModifiedDate" : "2023-01-20 13:17",
"description" : "MRV Departure report",
"installationName" : "Kine (MS A1)",
"recordedBy" : "Jack Thomson",
"lastChangedBy" : "Paul Philips",
"lastChangedTime" : "2023-01-20",
"recordingDate" : "2023-01-19",
"formDataNumber" : "23-XX-OFFICE-001",
"documentNumber" : "1/01/2023",
"eventDate" : "2023-01-12",
"isFinal" : true,
"data" : [ {
"fieldName" : "LNG",
"value" : "130"
}, {
"fieldName" : "UNIT_PORT_TIME",
"value" : "hh:mm"
}, {
"fieldName" : "UNIT_LNG",
"value" : "mt"
}, {
"fieldName" : "HFO",
"value" : "90"
}, {
"fieldName" : "UNIT_HFO",
"value" : "mt"
}, {
"fieldName" : "LABEL_PORT_DATE",
"value" : "Date of Departure"
}, {
"fieldName" : "MDO",
"value" : "150"
}, {
"fieldName" : "UNIT_MDO",
"value" : "mt"
}, {
"fieldName" : "PORT_TIME",
"value" : "11:30"
}, {
"fieldName" : "TIMEZONE",
"value" : "0"
}, {
"fieldName" : "INSTRUCTION",
"value" : "Below Data to be filled as from LAST NOON REPORT Record. \\nIn case you have not filled in any Noon Reprot for last 24 hrs, please do now."
}, {
"fieldName" : "PS_SUPPLIES",
"value" : "Off"
}, {
"fieldName" : "COMPANY_NAME",
"value" : "Buyer Company A"
}, {
"fieldName" : "LABEL_MASTER",
"value" : "Master"
}, {
"fieldName" : "LABEL_PORT_STAY",
"value" : "Port Stay Reason"
}, {
"fieldName" : "LABEL_PORT_TIME",
"value" : "Time of Departure"
}, {
"fieldName" : "LABEL_INSTALLATION_NAME",
"value" : "Vessel Name"
}, {
"fieldName" : "MASTER",
"value" : "Jack Masterson"
}, {
"fieldName" : "SUBMIT_TYPE",
"value" : "BUTTON_FINAL"
}, {
"fieldName" : "LABEL_PORT_NAME",
"value" : "Name of Port"
}, {
"fieldName" : "PS_DRYDOCK",
"value" : "Off"
}, {
"fieldName" : "LABEL_INSTALLATION_LLOYDS_NUMBER",
"value" : "IMO Number:"
}, {
"fieldName" : "LABEL_PS1",
"value" : "Loading or Unloading"
}, {
"fieldName" : "LABEL_CHIEF",
"value" : "Chief Engineer"
}, {
"fieldName" : "LABEL_HFO",
"value" : "HFO Consumption"
}, {
"fieldName" : "LABEL_PS4",
"value" : "Repair"
}, {
"fieldName" : "LABEL_PS5",
"value" : "Crew Change"
}, {
"fieldName" : "LABEL_PS2",
"value" : "Supplies"
}, {
"fieldName" : "FORM_UPDATE_LISTENER_ID",
"value" : "1"
}, {
"fieldName" : "LABEL_PS3",
"value" : "Bunker"
}, {
"fieldName" : "LABEL_PS6",
"value" : "Dry Dock"
}, {
"fieldName" : "PORT_NAME",
"value" : "Singapore"
}, {
"fieldName" : "LABEL_MDO",
"value" : "MDO Consumption"
}, {
"fieldName" : "UNIT_PORT_DATE",
"value" : "dd.mm.yyyy"
}, {
"fieldName" : "LABEL_TIME_ZONE",
"value" : "Timezone"
}, {
"fieldName" : "LABEL_COMPANY",
"value" : "Company"
}, {
"fieldName" : "LABEL_LNG",
"value" : "LNG Consumption"
}, {
"fieldName" : "PS_CREWCHANGE",
"value" : "Off"
}, {
"fieldName" : "LABEL_INSTRUCTION",
"value" : "Instruction"
}, {
"fieldName" : "PS_LOADING",
"value" : "On"
}, {
"fieldName" : "UNIT_TIME_ZONE",
"value" : "-12 .. +12"
}, {
"fieldName" : "CHIEF",
"value" : "Chandler Engineerson"
}, {
"fieldName" : "MGO",
"value" : "140"
}, {
"fieldName" : "LABEL_MGO",
"value" : "MGO Consumption"
}, {
"fieldName" : "TITLE",
"value" : "MRV - Port Departure Measurement Form"
}, {
"fieldName" : "PS_REPAIR",
"value" : "Off"
}, {
"fieldName" : "PORT_DATE",
"value" : "01/01/2023"
}, {
"fieldName" : "UNIT_MGO",
"value" : "mt"
}, {
"fieldName" : "PS_BUNKER",
"value" : "Off"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of forms |
|
|
Last modification date (mandatory) |
|
|
Form description (optional) |
|
|
Vessel name. Not present if form was created by the office (optional) |
|
|
User name who recorded the form (mandatory) |
|
|
User name who changed the form (mandatory) |
|
|
Date when the form was last modified (mandatory) |
|
|
Date when the form was created (mandatory) |
|
|
Form number (mandatory) |
|
|
Document number (optional) |
|
|
Date of an event related to this form (mandatory) |
|
|
Status of the form (mandatory) |
|
|
Form data (optional) |
|
|
Field name (mandatory) |
|
|
Field value (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Inspections
Get Inspections
Returns inspections.
Http Request
GET /api/rest/r5/v1/inspections?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 800
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"inspectionId" : "ff808181879f3bd70187a346aa4c0000",
"imoNumber" : "9113367",
"installationName" : "Kine (MS A1)",
"inspectionReferenceNumber" : "1000",
"creationDate" : "2013-05-24",
"inspectionCountry" : "Hong Kong",
"inspectionName" : "Inspection on MSA1",
"inspectionType" : "Vetting Inspection",
"inspectionRemark" : "Yearly ship inspection",
"inspectionFromDate" : "2022-12-31",
"inspectionToDate" : "2023-01-05",
"nextInspection" : "2023-12-31",
"inspectionPlace" : "Harbour in Hong Kong",
"inspectingPerson" : "John Doe",
"inspectingOrganization" : "Inspection Experts Inc.",
"inspectedDepartment" : "Master",
"inspectionAuthor" : "Jack Thomson"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of inspections |
|
|
Inspection identification (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Vessel name (mandatory) |
|
|
Inspection reference number (mandatory) |
|
|
Inspection creation date (mandatory) |
|
|
Inspection country (mandatory) |
|
|
Inspection name (mandatory) |
|
|
Inspection type (mandatory) |
|
|
InspectionRemark type (optional) |
|
|
Inspection start date (mandatory) |
|
|
Inspection start end date (mandatory) |
|
|
Next inspection date (optional) |
|
|
Inspection place (mandatory) |
|
|
Inspection person (mandatory) |
|
|
Inspection organisation (mandatory) |
|
|
Inspection department (optional) |
|
|
Inspection author (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Installations
Get Installations
Returns installations.
Http Request
GET /api/rest/r5/v1/installations?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 1248
{
"data" : [ {
"lastModifiedDate" : "2023-04-21 12:44",
"installationId" : "c4ca4238a0b923820dcc509a6f75849b",
"installationName" : "Kine (MS A1)",
"imoNumber" : "9113367",
"installationOwner" : "OwnerBuyer Company C",
"installationManager" : "Buyer Company A",
"deadWeightTons" : 5000,
"buildingNumber" : "100",
"buildingYear" : 2008,
"installationClass" : "LRS",
"installationType" : "Tanker",
"isStandard" : true,
"commissioningDate" : "2022-04-20",
"accountingNo" : "0002",
"accountingId" : "123-A1",
"portOfRegistry" : "Singapore",
"callLetter" : "XXXXX",
"grossTon" : 20000,
"netTon" : 10000,
"lengthOa" : "100.00",
"lengthPp" : "100.00",
"breathMld" : "15.00",
"depthMld" : "8.00",
"refTxt" : "MS-A1",
"budgetStartMonth" : 4,
"budgetStartDay" : 1,
"vatNo" : "111111",
"invoiceAddressId" : 6,
"usesOwnerAddress" : false,
"status" : "Active",
"rootAccountNoId" : 999,
"specHandlingFlag" : 0,
"isInvisible" : false,
"iceClassId" : "IA SUPER",
"eedi" : "2.35",
"flagState" : "Hong Kong",
"itOpsMode" : "CUBE",
"group" : "Group A"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of installations |
|
|
Last modification date (mandatory) |
|
|
Installation identification number (mandatory) |
|
|
Installation name (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Owner company name (mandatory) |
|
|
Manager user name (mandatory) |
|
|
Dead weight tons (optional) |
|
|
Building number (optional) |
|
|
Building year (mandatory) |
|
|
Installation class (mandatory) |
|
|
Installation type (mandatory) |
|
|
True or false (mandatory) |
|
|
The date of installation delivery (mandatory) |
|
|
Accounting number (optional) |
|
|
Accounting identification (optional) |
|
|
Port of registry (optional) |
|
|
Call letter (optional) |
|
|
Gross tons (optional) |
|
|
Net tons (optional) |
|
|
Length OA (optional) |
|
|
Length PP (optional) |
|
|
Breath MLD (optional) |
|
|
Depth MLD (optional) |
|
|
Identifier used in the procurement module (optional) |
|
|
Budget start month (optional) |
|
|
Budget start day (optional) |
|
|
VAT number (optional) |
|
|
Invoice address identifier (optional) |
|
|
True or false (mandatory) |
|
|
Installation status (mandatory) |
|
|
Root account identification number (optional) |
|
|
Special handling flag (mandatory) |
|
|
True or false (mandatory) |
|
|
ICE class identification (optional) |
|
|
EEDI (optional) |
|
|
Flag state (optional) |
|
|
IT related operation model of the installation. See Enum Values (IT OPS Mode) (mandatory) |
|
|
Installation group (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Noon Reports
Get Noon Reports
Returns noon reports.
Http Request
GET /api/rest/r5/v1/noon-reports?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 2202
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"id" : "43",
"vesselName" : "Kine (MS A1)",
"imoNumber" : "9113367",
"reportDate" : "2023-04-20 02:00",
"lastModifiedDate" : "2023-04-21 14:53",
"reportTime" : "1681948800",
"reportTimeZone" : "00:00",
"mandatorNumber" : "123-A1",
"isDraft" : false,
"dataList" : [ {
"fieldId" : 1,
"data" : "Rapperswil",
"fieldName" : "Next Harbour"
}, {
"fieldId" : 4,
"data" : "15",
"fieldName" : "Wind speed"
}, {
"fieldId" : 5,
"data" : "true",
"fieldName" : "Clouds"
}, {
"fieldId" : 6,
"data" : "21.04.2023",
"fieldName" : "EDA next Port"
}, {
"fieldId" : 7,
"data" : "11:00 pm",
"fieldName" : "ETA (Local Time)"
}, {
"fieldId" : 8,
"data" : "Blue",
"fieldName" : "Favorite Color"
}, {
"fieldId" : 11,
"data" : "0.90",
"fieldName" : "Minimum Speed (SOG) [kt]"
}, {
"fieldId" : 12,
"data" : "1.1",
"fieldName" : "Average Speed (SOG) [kt]"
}, {
"fieldId" : 13,
"data" : "1.80",
"fieldName" : "Maximum Speed (SOG) [kt]"
}, {
"fieldId" : 14,
"data" : "2.00",
"fieldName" : "Virtual Speed"
}, {
"fieldId" : 16,
"data" : "2.1",
"fieldName" : "ROB LSFO [mt]"
}, {
"fieldId" : 17,
"data" : "3.1",
"fieldName" : "ROB HSFO [mt]"
}, {
"fieldId" : 18,
"data" : "4.1",
"fieldName" : "ROB MDO [mt]"
}, {
"fieldId" : 19,
"data" : "01.01.2015",
"fieldName" : "Report date (read-only)"
}, {
"fieldId" : 254,
"data" : "5.1",
"fieldName" : "Main Engine HFO Consumption [mt] at sea"
}, {
"fieldId" : 255,
"data" : "6.1",
"fieldName" : "Main Engine MDO Consumption [mt] at sea"
}, {
"fieldId" : 274,
"data" : "-5.00000000",
"fieldName" : "Longitude"
}, {
"fieldId" : 275,
"data" : "45.00000000",
"fieldName" : "Latitude"
}, {
"fieldId" : 276,
"data" : "Sailing",
"fieldName" : "Vessel Status"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of noon reports |
|
|
Noon report identification number (mandatory) |
|
|
Vessel name (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Noon report creation date (mandatory) |
|
|
Last modification date (mandatory) |
|
|
Noon report creation date as UNIX timestamp (mandatory) |
|
|
Time zone (mandatory) |
|
|
Mandator number (mandatory) |
|
|
True or false (mandatory) |
|
|
Noon report data (optional) |
|
|
Field identification number (mandatory) |
|
|
Field name (mandatory) |
|
|
Field value (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Buyer Offers
Get Buyer Offers
Returns buyer offers.
Http Request
GET /api/rest/r5/v1/offers?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
Content-Length: 2052
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"lastModifiedDate" : "2023-04-21 14:53",
"mespasOfferId" : 2,
"requestReferenceNumber" : "O-2023-MS-A1-00201-D/01",
"vesselName" : "Kine (MS A1)",
"offerDate" : "2023-04-19",
"offerReferenceNumber" : "Offer 0001",
"supplierName" : "Supplier Company A",
"productLabel" : "Washer A1",
"productId" : 20,
"productBrand" : "Electrolux",
"productType" : "A-S160",
"offerCurrency" : "CHF",
"amount" : "4481.25",
"amountPacking" : "15.00",
"rebate" : "10.00",
"amountTransport" : "15.00",
"otherCost" : "59.00",
"area" : "Engine Repaires",
"description" : "Procurement case subject",
"offerState" : "ordered",
"offerNote" : "Offer note",
"items" : [ {
"positionNumber" : 1,
"componentDescription" : "Front Panel",
"componentExecution" : "Complete, Yellow",
"componentRemark" : "Offer item important remark",
"quantityOffered" : "1.00",
"quantityApproved" : "1.00",
"quantityOfferedUnit" : "pcs.",
"quantityRequested" : "1.00",
"quantityRequestedUnit" : "pcs.",
"unitConversionRate" : "0.10",
"rob" : "200.00",
"robUnit" : "pcs.",
"pricePerUnit" : "125.00",
"rebate" : "15.00",
"sumPrice" : "106.25",
"componentSpecification1" : "4729904-69",
"componentSpecificationHeader1" : "Part No.",
"componentSpecification2" : "01",
"componentSpecificationHeader2" : "Item No.",
"componentSpecification3" : "Spec 1",
"componentSpecificationHeader3" : "Spec header 3",
"componentSpecification4" : "Spec 4",
"componentSpecificationHeader4" : "Spec header 4",
"componentSpecification5" : "Spec 5",
"componentSpecificationHeader5" : "Spec header 5",
"componentSpecification6" : "Spec 6",
"componentSpecificationHeader6" : "Spec header 6",
"componentSpecification7" : "Spec 7",
"componentSpecificationHeader7" : "Spec header 7"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of offers |
|
|
Last modification date (mandatory) |
|
|
Offer identification number (mandatory) |
|
|
Request reference number (mandatory) |
|
|
Vessel name (mandatory) |
|
|
Offer creation date (optional) |
|
|
Supplier reference number (optional) |
|
|
Supplier company name (mandatory) |
|
|
Product label (mandatory) |
|
|
Product identification number (mandatory) |
|
|
Product identification number (mandatory) |
|
|
Product brand name (mandatory) |
|
|
Product type name (mandatory) |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
Total amount (mandatory) |
|
|
Amount of packaging cost (optional) |
|
|
Total discount in percent (optional) |
|
|
Amount of transport cost (optional) |
|
|
Amount of other costs (optional) |
|
|
Area (optional) |
|
|
Offer description (optional) |
|
|
Offer state (mandatory). See Enum Values (Buyer Offer States) |
|
|
Offer note (optional) |
|
|
Offer items (optional) |
|
|
Offer item position (optional) |
|
|
Component description (optional) |
|
|
Component execution (optional) |
|
|
Component remark (optional) |
|
|
Offered quantity (mandatory) |
|
|
Offered quantity unit (mandatory). See Enum Values (Units) |
|
|
Quantity approved |
|
|
Requested quantity unit (optional) |
|
|
Requested quantity unit (optional). See Enum Values (Units) |
|
|
Unit conversion rate (optional) |
|
|
Items remaining on board (optional) |
|
|
Unit of items remaining on board (optional). See Enum Values (Units) |
|
|
Price per unit (optional) |
|
|
Item discount in percent (optional) |
|
|
Total price for item (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Buyer Orders
Get Buyer Orders
Returns buyer orders.
Http Request
GET /api/rest/r5/v1/orders?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 3403
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"mespasOrderId" : "4",
"lastModifiedDate" : "2023-02-01 09:46",
"mandatorNumber" : "123-A2",
"imoNumber" : "9162526",
"orderNumber" : "HKT-A2-2023-00001-01",
"referenceNumber" : "O-2023-A2-00001-D/~/01",
"ownersCode" : "XXX-XX",
"creditorNumber" : "BuyA/SuppA",
"accountingNumber" : "0002",
"budgetPeriod" : 2023,
"parentAccountLevel" : "9",
"accountLevel" : "10",
"creditNoteAccountingNumber" : "0003",
"amountItem" : 201.96,
"rebate" : 0.0,
"amountAfterRebate" : 201.96,
"amountFreight" : 2.0,
"amountPacking" : 2.0,
"amountInsurance" : 2.0,
"freePos1Name" : "Custom Fee",
"amountPos1" : 4.0,
"freePos2Name" : "Phone Cost",
"amountPos2" : 1.0,
"vat" : 8.0,
"prepayment" : 99.0,
"amount" : 230.0,
"orderAmountConverted" : 230.0,
"orderAmountConvertedCurrency" : "EUR",
"amountWithoutFreight" : 10.0,
"amountItemDelivered" : 10.0,
"currency" : "EUR",
"invoicedAmountConverted" : 230,
"invoiceAmountConvertedCurrency" : "50",
"accrual" : 230.0,
"accrualCurrency" : "EUR",
"cancelled" : false,
"approvedBy" : "John Doe",
"allInvoiceReceived" : true,
"area" : "Engine Repaires",
"description" : "Procurement case remark",
"subject" : "Procurement case subject",
"orderDate" : "2023-01-22",
"manualCaseStatus" : "Blue",
"caseOwner" : "A1 Buyer",
"orderSender" : "Jeremy Bean",
"caseClosed" : false,
"orderYear" : 2023,
"commissionType" : "Base",
"commissionTypeValue" : 10.0,
"effectiveDeliveryDate" : "2023-02-01",
"allReceived" : true,
"partialDeliveryNoted" : false,
"productCategoryName" : "Laundry",
"productLabel" : "Washer A2",
"productBrandName" : "Electrolux",
"productTypeName" : "A-S160",
"productBuilderName" : "Product Builder 6",
"productFunction" : "Main Engine",
"plannedDeliveryCountry" : "Kiribati",
"plannedDeliveryPort" : "Teraina Harbour",
"plannedDeliveryCity" : "Teraina",
"plannedDeliveryDate" : "2023-02-01",
"plannedDeliveryRemark" : "Important delivery remark",
"items" : [ {
"componentDescription" : "Front Panel",
"componentExecution" : "Complete, Green",
"remark" : "Order item important remark",
"positionNumber" : 1,
"quantityOrdered" : 1.0,
"quantityUnit" : "pcs.",
"quantityReceived" : 1.0,
"dateReceived" : "2023-01-01T08:51:24.000Z",
"pricePerUnit" : 1.0,
"sumPriceDelivered" : 0.99,
"rebate" : 1.0,
"sumPrice" : 0.99,
"receptionRemark" : "Important reception remark",
"componentSpecification1" : "4729904-69",
"componentSpecification2" : "01",
"componentSpecification3" : "4729904-69",
"componentSpecification4" : "01",
"componentSpecification5" : "Spec 5",
"componentSpecification6" : "Spec 6",
"componentSpecification7" : "Spec 7",
"componentSpecificationHeader1" : "Spec 1",
"componentSpecificationHeader2" : "Spec 2",
"componentSpecificationHeader3" : "Part No.",
"componentSpecificationHeader4" : "Item No.",
"componentSpecificationHeader5" : "Spec header 5",
"componentSpecificationHeader6" : "Spec header 6",
"componentSpecificationHeader7" : "Spec header 7"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of orders |
|
|
Order identification number (mandatory) |
|
|
Last modification date (mandatory) |
|
|
Mandator number (mandatory) |
|
|
Order number (optional) |
|
|
Reference number (mandatory) |
|
|
Owners code (optional) |
|
|
Creditor number (mandatory) |
|
|
Accounting number (mandatory) |
|
|
Accounting budget period (optional) |
|
|
Parent account level (optional) |
|
|
Account level (optional) |
|
|
Credit note accounting number (optional) |
|
|
Amount item (mandatory) |
|
|
Discount (optional) |
|
|
Amount after rebate (mandatory) |
|
|
Amount freight (optional) |
|
|
Amount packing (optional) |
|
|
Amount insurance (optional) |
|
|
Free pos 1 name (optional) |
|
|
Amount pos 1 (optional) |
|
|
Free pos 2 name (optional) |
|
|
Amount pos 2 (optional) |
|
|
Vat (optional) |
|
|
Prepayment (optional) |
|
|
Amount (mandatory) |
|
|
Order amount converted (mandatory) |
|
|
Order amount converted currency (mandatory). See Enum Values (Currencies) |
|
|
Amount without freight (optional) |
|
|
Amount item delivered (optional) |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
Invoiced amount converted (optional) |
|
|
Invoice amount converted currency (optional). See Enum Values (Currencies) |
|
|
Accrual (mandatory) |
|
|
Accrual currency (mandatory). See Enum Values (Currencies) |
|
|
Cancelled (mandatory) |
|
|
Approved by (optional) |
|
|
All invoice received (mandatory) |
|
|
Area (optional) |
|
|
Description (optional) |
|
|
Subject (optional) |
|
|
Order date (optional) |
|
|
Manual case status (optional) |
|
|
Case owner (optional) |
|
|
Order sender (mandatory) |
|
|
Case closed (mandatory) |
|
|
Order year (optional) |
|
|
Commission type (optional) |
|
|
Commission type value (optional) |
|
|
Effective delivery date (optional) |
|
|
All received (mandatory) |
|
|
Partial delivery noted (mandatory) |
|
|
Product category name (mandatory) |
|
|
Product label (mandatory) |
|
|
Product brand name (mandatory) |
|
|
Product type name (mandatory) |
|
|
Product builder name (mandatory) |
|
|
Product function (mandatory) |
|
|
Planned delivery country (optional) |
|
|
Planned delivery port (optional) |
|
|
Planned delivery city (optional) |
|
|
Planned delivery date (optional) |
|
|
Planned delivery remark (optional) |
|
|
Order items (optional) |
|
|
Component description (optional) |
|
|
Component execution (optional) |
|
|
Remark (optional) |
|
|
Position number (optional) |
|
|
Quantity ordered (mandatory) |
|
|
Quantity unit (mandatory). See Enum Values (Units) |
|
|
Quantity received (optional) |
|
|
Date received (optional) |
|
|
Price per unit (optional) |
|
|
Sum price delivered (optional) |
|
|
Rebate (optional) |
|
|
Sum price (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Overhauls
Get Overhauls
Returns overhauls.
Http Request
GET /api/rest/r5/v1/overhauls?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Content-Length: 4405
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"lastModifiedDate" : "2023-04-24 12:37",
"mespasOverhaulId" : "ff80818187b2a2020187b2d77f8d0000",
"mespasPmsSettingId" : "9",
"companyName" : "Buyer Company A",
"updateDate" : "2022-12-31",
"dateDone" : "2023-01-01",
"runningHours" : "450.00",
"dateDue" : "2023-01-14",
"overdueTime" : 5,
"reportedBy" : "A1 Chief",
"jobCarriedOutBy" : "Thomas Jackson/Capitan",
"isFinal" : true,
"datePlanned" : "2023-01-01 11:40",
"planningRemark" : "Important planning remark",
"plannedBy" : "Thomas Jackson",
"reasonForPlanning" : "Important reason",
"planningAssessmentStatus" : "accepted",
"planningAssessmentDate" : "2023-01-01 11:40",
"planningAssessedBy" : "Thomas Jackson",
"planningAssessmentRemark" : "Important assesment remark",
"timeUsed" : "55.00",
"numberOfPerson" : 15,
"jobRemark" : "Important comment.",
"partsUsed" : [ {
"componentDescription" : "Company Spec. (A) Comp 4 Desc",
"componentExecution" : "Execution 7",
"brandName" : "Sulzer",
"typeName" : "PT-001-1",
"quantityUsed" : 1.0,
"quantityUnit" : "pcs.",
"componentSpecification1" : "Company Spec. (A) Comp 1 Spez.",
"componentSpecificationHeader1" : "Spec header 1",
"componentSpecification2" : "Spec 2",
"componentSpecificationHeader2" : "Spec header 2",
"componentSpecification3" : "Spec 3",
"componentSpecificationHeader3" : "Spec header 3",
"componentSpecification4" : "Spec 4",
"componentSpecificationHeader4" : "Spec header 4",
"componentSpecification5" : "Spec 5",
"componentSpecificationHeader5" : "Spec header 5",
"componentSpecification6" : "Spec 6",
"componentSpecificationHeader6" : "Spec header 6",
"componentSpecification7" : "Spec 7",
"componentSpecificationHeader7" : "Spec header 7"
} ],
"vesselName" : "Kine (MS A1)",
"mandatorNumber" : "123-A1",
"imoNumber" : "9113367",
"productOperationSystem" : "Power Supply",
"productCategoryName" : "Engine",
"productLabel" : "Main Engine A1",
"isCriticalProduct" : false,
"productBrandName" : "Sulzer",
"productTypeName" : "PT-001-1",
"productTagNumber" : "213703",
"productSerialNumber" : "42-XXX",
"productBuilderName" : "Product Builder 1",
"productFunction" : "Main Engine",
"productLocation" : "Cargo Hold #1",
"productPosition" : "Port side",
"componentName" : "Buyer Company A",
"unit" : "1",
"activity" : "500 hrs Inspection",
"tboValue" : 1,
"tboUnit" : "1",
"tboValueRh" : 500,
"alarmValue" : 2,
"responsible" : "Capitan",
"isClassRequired" : true,
"isCritical" : true,
"instruction" : "Important instruction",
"department" : "Department",
"activityKind" : "Inspection",
"requiredTime" : "15.00",
"requiredPerson" : 15,
"isShoreRequired" : true,
"shoreTime" : "10.00",
"shorePerson" : 10,
"classId" : " 00024",
"regulation" : "Regulation",
"ismNumber" : "XXX-XX",
"data" : [ {
"fieldName" : "carried_out_by",
"value" : "John Doe"
}, {
"fieldName" : "date_of_execution",
"value" : "2022-12-31"
}, {
"fieldName" : "form_publication_date",
"value" : "2020-10-21 11:51:00"
}, {
"fieldName" : "form_revision",
"value" : "1"
}, {
"fieldName" : "gate_check",
"value" : "OK"
}, {
"fieldName" : "housing_tension_check",
"value" : "OK"
}, {
"fieldName" : "installation_name",
"value" : "Celebrity Eclipse (MS A2)"
}, {
"fieldName" : "is_critical",
"value" : "Yes"
}, {
"fieldName" : "is_follow_up_required",
"value" : "No"
}, {
"fieldName" : "job_carried_out_confirmation",
"value" : "NOT_AVAILABLE"
}, {
"fieldName" : "location",
"value" : "Aft Engine Room"
}, {
"fieldName" : "number_of_hours",
"value" : "15,00"
}, {
"fieldName" : "organization_name",
"value" : "Web Sourcing System Company"
}, {
"fieldName" : "power_supply_check",
"value" : "NOK"
}, {
"fieldName" : "remark",
"value" : "Important comment."
}, {
"fieldName" : "user_name",
"value" : "Web-Integration User"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of overhauls |
|
|
Last modified date (mandatory) |
|
|
Mespas overhaul id (mandatory) |
|
|
Mespas pms setting id (mandatory) |
|
|
Company name (mandatory) |
|
|
Update date (mandatory) |
|
|
Date done (mandatory) |
|
|
Running hours (optional) |
|
|
Date due (mandatory) |
|
|
Overdue time (mandatory) |
|
|
Reported by (mandatory) |
|
|
Job carried out by (mandatory) |
|
|
Is final (mandatory) |
|
|
Date planned (optional) |
|
|
Planning remark (optional) |
|
|
Planned by (optional) |
|
|
Reason for planning (optional) |
|
|
Planning assessment status (optional) |
|
|
Planning assessment date (optional) |
|
|
Planning assessed by (optional) |
|
|
Planning assessment remark (optional) |
|
|
Time used (optional) |
|
|
Number of person (optional) |
|
|
Job remark (optional) |
|
|
Vessel name (mandatory) |
|
|
Mandator number (mandatory) |
|
|
IMO number (International Maritime Organization) (optional) |
|
|
Product operation system (optional) |
|
|
Product category name (optional) |
|
|
Product label (optional) |
|
|
Is critical product (optional) |
|
|
Product brand name (optional) |
|
|
Product type name (optional) |
|
|
Product tag number (optional) |
|
|
Product serial number (optional) |
|
|
Product builder name (optional) |
|
|
Product function (optional) |
|
|
Product location (optional) |
|
|
Product position (optional) |
|
|
Component name (optional) |
|
|
Unit (optional). See Enum Values (Units) |
|
|
Activity (mandatory) |
|
|
Tbo value (optional) |
|
|
Tbo unit (optional). See Enum Values (Units) |
|
|
Tbo value rh (optional) |
|
|
Alarm value (mandatory) |
|
|
Responsible (optional) |
|
|
Is class required (mandatory) |
|
|
Is critical (mandatory) |
|
|
Instruction (optional) |
|
|
Department (optional) |
|
|
Activity kind (optional) |
|
|
Required time (optional) |
|
|
Required person (optional) |
|
|
Is shore required (mandatory) |
|
|
Shore time (optional) |
|
|
Shore person (optional) |
|
|
Class id (optional) |
|
|
Regulation (optional) |
|
|
Ism number (optional) |
|
|
Overhaul used parts (optional) |
|
|
Component description (optional) |
|
|
Component execution (optional) |
|
|
Product brand name (optional) |
|
|
Product type name (optional) |
|
|
Quantity used (optional) |
|
|
Quantity unit (mandatory). See Enum Values (Units) |
|
|
Overhaul data (optional) |
|
|
Field name (mandatory) |
|
|
Field value (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
PMS Settings
Get PMS Settings
Returns PMS settings.
Http Request
GET /api/rest/r5/v1/pms-settings?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 1129
{
"data" : [ {
"lastModifiedDate" : "2023-04-24 14:45",
"pmsStatusId" : "1",
"accountingId" : "123-A2",
"installationId" : "2",
"activityShortName" : "Inspect",
"activityOther" : "Other activity name",
"tboValue" : 2400,
"tboUnit" : 1,
"tboValueRh" : 100,
"responsibleUserRoleShortName" : "Chief Engineer",
"roleOther" : "Other role",
"classRequired" : true,
"classId" : "ClassID 12345",
"installationName" : "Celebrity Eclipse (MS A2)",
"tagNumber" : "a1",
"erpId" : "xxx",
"productLabel" : "Washer A2",
"productBrand" : "1",
"productType" : "A-S160",
"critical" : true,
"instruction" : "Please do it good!",
"vesselDepartmentShortName" : "Vessel department",
"activityKindShortName" : "Maintenance",
"requiredTime" : 2,
"requiredPersons" : "1",
"shoreRequired" : true,
"shoreTime" : 1,
"shorePersons" : "1",
"componentDescription" : "Front Panel",
"componentUnit" : 1,
"fixedDueDateMode" : true,
"cronExpression" : "0 0 0 ? 1-12 3/7 *"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of PMS settings |
|
|
Last modified date (mandatory) |
|
|
Pms status id (mandatory) |
|
|
Accounting id (mandatory) |
|
|
Installation id (mandatory) |
|
|
Activity short name (conditional - mandatory if activityShortName is activityOther) |
|
|
Activity other (conditional - mandatory if activityShortName is empty) |
|
|
Tbo value (optional) |
|
|
Tbo unit (optional). See Enum Values (Units) |
|
|
Tbo value rh (optional) |
|
|
Responsible user role short name (optional) |
|
|
Role other (optional) |
|
|
Class required (mandatory) |
|
|
Class id (optional) |
|
|
Installation name (mandatory) |
|
|
Tag number (optional) |
|
|
Erp id (optional) |
|
|
Product label (optional) |
|
|
Product brand (optional) |
|
|
Product type (optional) |
|
|
Critical (mandatory) |
|
|
Instruction (optional) |
|
|
Vessel department short name (optional) |
|
|
Activity kind short name (optional) |
|
|
Required time (optional) |
|
|
Required persons (optional) |
|
|
Shore required (mandatory) |
|
|
Shore time (optional) |
|
|
Shore persons (optional) |
|
|
Component description (optional) |
|
|
Component unit (optional). See Enum Values (Units) |
|
|
Fixed due date mode (optional) |
|
|
Cron expression (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
PMS Statistics
Get PMS Statistics
Returns PMS statistics.
Http Request
GET /api/rest/r5/v1/pms-stat?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 348
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"id" : "eefe4e0ce2a911edb5ea0242ac12",
"imoNumber" : "9113367",
"lastModifiedDate" : "2023-02-01 15:12",
"syncDate" : "2023-01-27 15:12",
"overdue" : 10,
"overdueCritical" : 2,
"overdueClass" : 4,
"planned" : 15,
"plannedOverdue" : 4
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of PMS statistics |
|
|
Identification number (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Last modified date (mandatory) |
|
|
Sync date (mandatory) |
|
|
Overdue (mandatory) |
|
|
Overdue critical (mandatory) |
|
|
Overdue class (mandatory) |
|
|
Planned (mandatory) |
|
|
Planned overdue (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
PMS Statistics Monthly
Get PMS Statistics Monthly
Returns PMS statistics monthly.
Http Request
GET /api/rest/r5/v1/pms-stat-monthly?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 733
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"id" : "02e3e40ee2a511edb5ea0242ac120002",
"imoNumber" : "9113367",
"installationName" : "Kine (MS A1)",
"month" : 1,
"year" : 2023,
"jobsDone" : 1000,
"jobsDoneDue" : 2000,
"jobsDoneDueCritical" : 100,
"jobsDoneCritical" : 100,
"jobsDue" : 1500,
"jobsDueCritical" : 150,
"jobsOverdue" : 5,
"jobsOverdueCritical" : 5,
"jobsOverdueMonthEnd" : 3,
"jobsOverdueMonthEndCritical" : 1,
"jobsOverdueTotal" : 6,
"jobsOverdueTotalCritical" : 4,
"jobsDueMonthEnd" : 1000,
"jobsDueMonthEndCritical" : 100,
"dateCreated" : "2023-02-02 14:46",
"lastModifiedDate" : "2023-02-01 14:36"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of PMS statistics monthly |
|
|
Identification number (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Installation name (mandatory) |
|
|
Month (mandatory) |
|
|
Year (mandatory) |
|
|
Jobs done (mandatory) |
|
|
Jobs done due (mandatory) |
|
|
Jobs done due critical (mandatory) |
|
|
Jobs done critical (mandatory) |
|
|
Jobs due (mandatory) |
|
|
Jobs due critical (mandatory) |
|
|
Jobs overdue (mandatory) |
|
|
Jobs overdue critical (mandatory) |
|
|
Jobs overdue month end (mandatory) |
|
|
Jobs overdue month end critical (mandatory) |
|
|
Jobs overdue total (mandatory) |
|
|
Jobs overdue total critical (mandatory) |
|
|
Jobs due month end (mandatory) |
|
|
Jobs due month end critical (mandatory) |
|
|
Date created (mandatory) |
|
|
Last modified date (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Procurement Activities
Get Procurement Activities
Returns procurement activities.
Http Request
GET /api/rest/r5/v1/pms-stat?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 348
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"id" : "eefe4e0ce2a911edb5ea0242ac12",
"imoNumber" : "9113367",
"lastModifiedDate" : "2023-02-01 15:12",
"syncDate" : "2023-01-27 15:12",
"overdue" : 10,
"overdueCritical" : 2,
"overdueClass" : 4,
"planned" : 15,
"plannedOverdue" : 4
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of procurement activities |
|
|
Identification number (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Last modified date (mandatory) |
|
|
Sync date (mandatory) |
|
|
Overdue (mandatory) |
|
|
Overdue critical (mandatory) |
|
|
Overdue class (mandatory) |
|
|
Planned (mandatory) |
|
|
Planned overdue (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Purchase Requests
Get Purchase Requests
Returns purchase requests.
Http Request
GET /api/rest/r5/v1/purchase-requests?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
Content-Length: 1869
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"lastModifiedDate" : "2023-04-24 16:39",
"mespasPurchaseRequestId" : "df58f1953c9c5e0c80b57d6fe30982bf",
"mandatorNumber" : "123-A1",
"referenceNumber" : "I-2023-MS-A1-00101-D",
"creationDate" : "2023-04-24",
"creatorOccupation" : "Position not selected",
"subject" : "Procurement case subject",
"urgency" : 0,
"accountNumber" : "0002",
"productLabel" : "Main Engine A1",
"productBrand" : "Sulzer",
"productType" : "PT-001-1",
"productSerialNumber" : "42-XXX",
"remark" : "Important note for the purchase manager.",
"items" : [ {
"mespasPurchaseRequestItemId" : "4a5a6b7ef4c50c0c730a7c892fd8fee3",
"positionNumber" : 1,
"stock" : "5.000 pcs.",
"quantity" : "1.00",
"quantityUnit" : "kg",
"componentId" : "8f14e45fceea167a5a36dedd4bea2543",
"externalComponentId" : "EXTERNAL Company Spec. (A) Comp 4 Desc",
"componentDescription" : "Company Spec. (A) Comp 4 Desc",
"componentExecution" : "Execution 7",
"componentSpecification1" : "Company Spec. (A) Comp 1 Spez.",
"componentSpecification2" : "Spec 2",
"componentSpecification3" : "Spec 3",
"componentSpecification4" : "Spec 4",
"componentSpecification5" : "Spec 5",
"componentSpecification6" : "Spec 6",
"componentSpecification7" : "Spec 7",
"remark" : "Important remark",
"componentSpecificationHeader1" : "Spec header 1",
"componentSpecificationHeader2" : "Spec header 2",
"componentSpecificationHeader3" : "Spec header 3",
"componentSpecificationHeader4" : "Spec header 4",
"componentSpecificationHeader5" : "Spec header 5",
"componentSpecificationHeader6" : "Spec header 6",
"componentSpecificationHeader7" : "Spec header 7"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of purchase requests |
|
|
Last modified date (mandatory) |
|
|
Mespas purchase request id (mandatory) |
|
|
Mandator number (mandatory) |
|
|
Reference number (mandatory) |
|
|
Creation date (mandatory) |
|
|
Creator occupation (optional) |
|
|
Subject (optional) |
|
|
Urgency (optional). See Enum Values (Purchase Request Urgency) |
|
|
Account number (optional) |
|
|
Product label (mandatory) |
|
|
Product brand (mandatory) |
|
|
Product type (mandatory) |
|
|
Product serial number (optional) |
|
|
Remark (optional) |
|
|
Purchase request items (optional) |
|
|
Mespas purchase request item id (mandatory) |
|
|
Position number (mandatory) |
|
|
Stock (mandatory) |
|
|
Quantity (mandatory) |
|
|
Quantity unit (mandatory). See Enum Values (Units) |
|
|
Component id (mandatory) |
|
|
External component id (optional) |
|
|
Component description (mandatory) |
|
|
Component execution (optional) |
|
|
Remark (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
Component specification (optional) |
|
|
Component specification header (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Ship Schedules
Get Ship Schedules
Returns ship schedules.
Http Request
GET /api/rest/r5/v1/ship-schedules?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 586
{
"data" : [ {
"portStayId" : "ff80818187b3bed80187b3d763600000",
"imoNumber" : "9113367",
"installationName" : "Kine (MS A1)",
"port" : "Hamburg",
"country" : "Germany",
"timezone" : "Europe/Berlin",
"arrivalDate" : "2034-01-01",
"arrivalTime" : "11:15",
"departureDate" : "2034-01-31",
"departureTime" : "13:45",
"ownerAgent" : "Important owner agent infos.",
"chartererAgent" : "Important charterer agent infos.",
"remark" : "Important remarks.",
"position" : 271
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of ship schedules |
|
|
Port stay id (mandatory) |
|
|
IMO number (International Maritime Organization) (mandatory) |
|
|
Installation name (mandatory) |
|
|
Port (mandatory) |
|
|
Country (mandatory) |
|
|
Timezone (mandatory) |
|
|
Arrival date (optional) |
|
|
Arrival time (optional) |
|
|
Departure date (optional) |
|
|
Departure time (optional) |
|
|
Owner agent (optional) |
|
|
Charterer agent (optional) |
|
|
Remark (optional) |
|
|
Position (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Tasks
Get Tasks
Returns tasks.
Http Request
GET /api/rest/r5/v1/tasks?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 2201
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"taskId" : "ff80818187b3e2860187b3f2db000000",
"companyName" : "Buyer Company A",
"taskNumber" : "A2-321",
"mandatorNumber" : "123-A2",
"installationName" : "Celebrity Eclipse (MS A2)",
"state" : "PENDING",
"taskLocation" : "",
"type" : "Recommendation",
"title" : "Clean control room",
"description" : "Clean the control room (before next inspection)",
"instruction" : "Important work instructions",
"lastModifiedDate" : "2023-04-24 17:52",
"creationDate" : "2021-06-15 00:00",
"orderer" : "Chief Engineer",
"responsible" : "Chief Engineer",
"author" : "A1 Buyer",
"targetDate" : "2021-08-19",
"carriedOutBy" : "Chief Engineer",
"priority" : "Urgent",
"operatingSystem" : "ISM",
"product" : "Main Engine A2",
"tagNumber" : "yt-3",
"erpId" : "XX-XXX",
"productSerialNumber" : "ENG-123",
"productBuilderName" : "Product Builder 1",
"productBrandName" : "Sulzer",
"productTypeName" : "PT-001-1",
"productCategoryName" : "Engine",
"productFunction" : "Main Engine",
"productLocation" : "Engine Room",
"productPosition" : "1",
"immediateCause" : "NA",
"isDryDock" : true,
"dateDone" : "2023-01-01 16:53",
"isOfficeUseOnly" : false,
"needsApproval" : false,
"lastChange" : "2023-04-24 17:52",
"codePattern" : "PSC (Paris MoU)",
"mainCode" : "01",
"subCode1" : "02",
"subCode2" : "03",
"shoreRequired" : "55",
"actionCode" : "Action Code 2",
"dateOfIncident" : "2021-06-15",
"timeUsed" : 7,
"hotWork" : true,
"requiredTime" : 8.0,
"rootCause" : "Important root cause.",
"correctiveActions" : "Important corrective actions.",
"preventiveMeasures" : "Important preventive measures.",
"officeComments" : "Important office comments.",
"taskComments" : [ {
"author" : "A1 Buyer",
"actionExecutedDate" : "2023-04-24 00:00",
"topic" : "Used Parts recorded",
"note" : "Used parts recorded in task",
"isOfficeUseOnly" : false,
"timeSpent" : 6,
"recordedDate" : "2023-04-24 17:49"
} ]
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of tasks |
|
|
Task id (mandatory) |
|
|
Company name (mandatory) |
|
|
Task number (mandatory) |
|
|
Mandator number (optional) |
|
|
Installation name (optional) |
|
|
State (mandatory). See Enum Values (Task State) |
|
|
Task location (optional) |
|
|
Type (mandatory) |
|
|
Title (mandatory) |
|
|
Description (optional) |
|
|
Instruction (optional) |
|
|
Last modified date (mandatory) |
|
|
Creation date (mandatory) |
|
|
Orderer (optional) |
|
|
Responsible (mandatory) |
|
|
Author (mandatory) |
|
|
Target date (mandatory) |
|
|
Carried out by (mandatory) |
|
|
Priority (mandatory) |
|
|
Operating system (optional) |
|
|
Product (optional) |
|
|
Tag number (optional) |
|
|
Erp id (optional) |
|
|
Product serial number (optional) |
|
|
Product builder name (optional) |
|
|
Product brand name (optional) |
|
|
Product type name (optional) |
|
|
Product category name (optional) |
|
|
Product function (optional) |
|
|
Product location (optional) |
|
|
Product position (optional) |
|
|
Immediate cause (optional) |
|
|
Is dry dock (mandatory) |
|
|
Date done (optional) |
|
|
Is office use only (mandatory) |
|
|
Needs approval (mandatory) |
|
|
Last change (mandatory) |
|
|
Code pattern (optional) |
|
|
Main code (optional) |
|
|
Sub code 1 (optional) |
|
|
Sub code 2 (optional) |
|
|
Shore required (optional) |
|
|
Action code (optional) |
|
|
Date of incident (optional) |
|
|
Time used (optional) |
|
|
Hot work (mandatory) |
|
|
Required time (optional) |
|
|
Root cause (optional) |
|
|
Corrective actions (optional) |
|
|
Preventive measures (optional) |
|
|
Office comments (optional) |
|
|
Task comments (optional) |
|
|
Author (mandatory) |
|
|
Action executed date (mandatory) |
|
|
Topic (optional) |
|
|
Note (optional) |
|
|
Is office use only (mandatory) |
|
|
Time spent (optional) |
|
|
Recorded date (mandatory) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |
Invoices
Get Invoices
Returns invoices.
Http Request
GET /api/rest/r5/v1/invoices?page=0&pageSize=100&from=2023-01-01 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJzdXBwbGllci1hcGlAbWVzcGFzLmNvbSIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJ0b2tlbi1pZCI6IjQwMjg4MDBhODIxNjkxZjgwMTgyMTY5MjdlMTkwMDAwIiwiZXhwIjozODA1NzE5NzIyLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUFBMSUVSX01UTUwiLCJST0xFX1RTTV9BUEkiLCJST0xFX1NVUFBMSUVSX0FQSSJdLCJqdGkiOiIzZmJjMTdmOC00MDgyLTQ0NGQtOWJlMi1kY2JjZDE3ZTgyN2YiLCJjbGllbnRfaWQiOiJtZXNwYXMtd2ViLW1vYmlsZSIsInRva2VuLWtpbmQiOiJtb2JpbGUifQ.qrVnFlc2-FBaEf70N57LTOqq8WRmbWl0xzGKnXt2kAE
Host: api.mespas.com
Http Request Parameter
Parameter | Description |
---|---|
|
The page to retrieve. Zero-based index |
|
Optional request parameter allowing to set the number of records per page. |
|
Optional request parameter allowing to search for forms which were last modified after the specified date. The date format to use is yyyy-MM-dd (e.g. 2017-07-28). |
Http Request Body
Http Response
HTTP/1.1 200 OK
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Expires: 0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Length: 1541
Content-Type: application/json;charset=UTF-8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
{
"data" : [ {
"lastModifiedDate" : "2023-04-25 10:17",
"mespasInvoiceId" : 1,
"mandatorNumber" : "123-A1",
"installationOwner" : "OwnerBuyer Company C",
"invoiceNumber" : "12345",
"externalInvoiceNumber" : "XX-XX",
"mespasOrderId" : 1,
"creditorNumber" : "BuyA/SuppA",
"invoiceSender" : "Supplier Company A",
"cancelled" : false,
"invoiceDate" : "2023-01-31",
"invoiceReceivedDate" : "2023-01-02",
"invoiceDueDate" : "2023-02-14",
"amount" : "229.00",
"currency" : "CHF",
"gst" : "99.00",
"gstType" : "CGST+SGST 18%",
"hsnCode" : "9982",
"orderNumber" : "Order 001",
"referenceNumber" : "I-2016-MS-A1-00201-E/01/01",
"accountNumber" : "0003",
"accountDescription" : "Stores and Provisions",
"externalAccountNumber" : "99999",
"lastInvoiceReceived" : false,
"area" : "Engine Stores",
"description" : "Important remark",
"orderYear" : 2023,
"commission" : "10%",
"orderDate" : "2023-02-24",
"orderAmount" : "229.9968",
"orderCurrency" : "CHF",
"deliveryPort" : "Nukualofa",
"credit" : false,
"caseSubject" : "Procurement",
"bankIbanNumber" : "IBAN 2",
"bankSwiftNumber" : "Swift 2",
"bankClearingNumber" : "Clearing 2",
"bankAccountNumber" : "Account 2",
"bankCurrency" : "EUR",
"bankName" : "Bank 2",
"bankCity" : "Bank 2 City",
"bankCountry" : "Switzerland",
"bankId" : "c81e728d9d4c2f636f067f89cc14862c"
} ],
"page" : 0,
"totalPages" : 1,
"pageSize" : 100
}
Http Response Fields
Path | Type | Description |
---|---|---|
|
|
The list of invoices |
|
|
Last modified date (mandatory) |
|
|
Mespas invoice id (mandatory) |
|
|
Mandator number (mandatory) |
|
|
Installation owner (mandatory) |
|
|
Invoice number (mandatory) |
|
|
External invoice number (optional) |
|
|
Mespas order id (mandatory) |
|
|
Creditor number (mandatory) |
|
|
Invoice sender (mandatory) |
|
|
Cancelled (mandatory) |
|
|
Invoice date (optional) |
|
|
Invoice received date (mandatory) |
|
|
Invoice due date (mandatory) |
|
|
Amount (mandatory) |
|
|
Currency (mandatory). See Enum Values (Currencies) |
|
|
Gst (optional) |
|
|
GST type (optional) |
|
|
HSN code (optional) |
|
|
Order number (optional) |
|
|
Reference number (mandatory) |
|
|
Account number (optional) |
|
|
Account description (optional) |
|
|
External account number (optional) |
|
|
Last invoice received (mandatory) |
|
|
Area (optional) |
|
|
Description (optional) |
|
|
Order year (mandatory) |
|
|
Commission (optional) |
|
|
Order date (mandatory) |
|
|
Order amount (mandatory) |
|
|
Order currency (mandatory). See Enum Values (Currencies) |
|
|
Delivery port (optional) |
|
|
Credit (mandatory) |
|
|
Case subject (optional) |
|
|
Bank iban number (optional) |
|
|
Bank swift number (optional) |
|
|
Bank clearing number (optional) |
|
|
Bank account number (optional) |
|
|
Bank currency (optional). See Enum Values (Currencies) |
|
|
Bank name (optional) |
|
|
Bank city (optional) |
|
|
Bank country (optional) |
|
|
Bank id (optional) |
|
|
The current page (see pagination) |
|
|
The total number of pages (see pagination) |
|
|
The number of records per page |