197 lines
6.2 KiB
JSON
Executable File
197 lines
6.2 KiB
JSON
Executable File
{
|
|
"openapi": "3.0.0",
|
|
"servers": [
|
|
{
|
|
"description": "M3 Sentinel Json Receiver",
|
|
"url": "http://esn2:10014"
|
|
}
|
|
],
|
|
"info": {
|
|
"description": "Sentinel Receiver",
|
|
"version": "1.0.0",
|
|
"title": "Sentinel API",
|
|
"contact": {
|
|
"email": "you@your-company.com"
|
|
},
|
|
"license": {
|
|
"name": "Apache 2.0",
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
}
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "M3 API",
|
|
"description": "Receive Json from Mulesoft"
|
|
}
|
|
],
|
|
"components": {
|
|
"securitySchemes": {
|
|
"basicAuth": {
|
|
"type": "http",
|
|
"scheme": "basic"
|
|
}
|
|
}
|
|
},
|
|
"paths": {
|
|
"/api/m3receiver": {
|
|
"post": {
|
|
"tags": [
|
|
"General"
|
|
],
|
|
"summary": "M3 Laravel API",
|
|
"description": "M3 POC listener",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"example": {
|
|
|
|
"Recipient": {
|
|
"BillToId": "IC7401",
|
|
"ShipToId": "IC7401",
|
|
"PersonName": "Mary Berry",
|
|
"CompanyName": "IC7401",
|
|
"Country": "SG",
|
|
"CountryName": "United Kingdom",
|
|
"State": "ST",
|
|
"City": "SINGAPORE",
|
|
"PostalCode": "608830",
|
|
"Address1": "5A Toh Guan Road East",
|
|
"Address2": "/#04-01",
|
|
"Address3": "SINGAPORE 608830",
|
|
"Address4": "SINGAPORE",
|
|
"AccountNo": "0212520",
|
|
"Email": "KRISTIN@ELIT.NO"
|
|
},
|
|
"Contents": {
|
|
"Commodities": [
|
|
{
|
|
"Quantity": 40,
|
|
"PartWeight": 200,
|
|
"Description": "BRAID MBJ 6-150-6",
|
|
"PartNumber": "556600",
|
|
"UOM": "EA",
|
|
"SellUOM": "EA",
|
|
"PartConv": 1.000000000,
|
|
"BaseUnitPrice": 1,
|
|
"OrderLine": 1,
|
|
"ShipmentPOLine": 1,
|
|
"PrimaryLocation": "AD21A13",
|
|
"LocationSeq": "042620",
|
|
"LocationType": "PR",
|
|
"Zone": "A",
|
|
"HazMat": "H4.1",
|
|
"PartUPC": "782856449713",
|
|
"PartEAN": "3479775566009",
|
|
"ProdType": "EFX",
|
|
"LotFlag": "Y",
|
|
"LotNumber": "121333",
|
|
"ManOrd": "22222",
|
|
"FreightClass": "50",
|
|
"PallSize": "60",
|
|
"MasterCarton": "EBV-240381",
|
|
"MasterQty": 12,
|
|
"InnerQty": 1,
|
|
"PalletQty": 1,
|
|
"CartonQty": 14
|
|
}
|
|
,
|
|
{
|
|
"Quantity": 500,
|
|
"PartWeight": 500,
|
|
"Description": "ISO TP 15M4",
|
|
"PartNumber": "548400",
|
|
"UOM": "EA",
|
|
"SellUOM": "EA",
|
|
"PartConv": 1.000000000,
|
|
"BaseUnitPrice": 1,
|
|
"OrderLine": 2,
|
|
"ShipmentPOLine": 1,
|
|
"PrimaryLocation": "AE40Q26",
|
|
"LocationSeq": "054130",
|
|
"LocationType": "PR",
|
|
"Zone": "A",
|
|
"HazMat": "H4.1",
|
|
"PartUPC": "782856875413",
|
|
"PartEAN": "3479775484006",
|
|
"ProdType": "EFX",
|
|
"LotFlag": "Y",
|
|
"LotNumber": "121333",
|
|
"ManOrd": "22222",
|
|
"FreightClass": "50",
|
|
"PallSize": "60",
|
|
"MasterCarton": "EBV-240381",
|
|
"MasterQty": 12,
|
|
"InnerQty": 1,
|
|
"PalletQty": 1,
|
|
"CartonQty": 14
|
|
}
|
|
]
|
|
},
|
|
"Warehouse": "A02",
|
|
"PickerNumber": "00000087126",
|
|
"Company": "001",
|
|
"Plant": "11",
|
|
"OrderNumber": "3140001799",
|
|
"ShipmentNumber": "001",
|
|
"ShipmentPONumber": "100497",
|
|
"PromDate": 20220914,
|
|
"Currency": "EUR",
|
|
"ExchangeRate": 1.134,
|
|
"RouteCode": "111009",
|
|
"ShipTerms": "FCA",
|
|
"OrderClass": "CIC",
|
|
"CarrierCode": "BWAY",
|
|
"ShipVia": "004"
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"basicAuth": []
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "Content-Type",
|
|
"in": "header",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "application/json"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"headers": {
|
|
"Content-Type": {
|
|
"schema": {
|
|
"type": "string",
|
|
"example": "text/plain"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"text/plain": {
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": {
|
|
"code": "200",
|
|
"status": "success",
|
|
"message": "File Received, DB Updated"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |