M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 10:14:57 +01:00
parent 4af997c465
commit 6d60cbff84
5853 changed files with 79032 additions and 1825 deletions
+197
View File
@@ -0,0 +1,197 @@
{
"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"
}
}
}
}
}
}
}
}
}
+177
View File
@@ -0,0 +1,177 @@
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: C09586
ShipToId: C09587
PersonName: Mary Berry
CompanyName: ELIT AS
Country: UK
CountryName: United Kingdom
State: ''
City: GJERDRUM N
PostalCode: '2022'
Address1: HELLENVEGEN 9
Address2: ''
Address3: ''
Address4: ''
AccountNo: '0212520'
Email: KRISTIN@ELIT.NO
Contents:
Commodities:
- Quantity: 1
PartWeight: 102.552
Description: Electrical and Fastening Products
PartNumber: C1586230
UOM: EA
SellUOM: EA
PartConv: '1'
BaseUnitPrice: 1
FrgnUnitPrice: 1.134
OrderLine: 1
ShipmentPOLine: 1
PrimaryLocation: 1A69580
LocationSeq: B003550
LocationType: PRIMARY
Zone: A
HazMat: H4.1
PartUPC: '78285637301'
PartEAN: '3479775637204'
ProdType: FE
LotFlag: 'N'
LotNumber: ''
ManOrd: ''
FreightClass: '50'
PallSize: 60
MasterCarton: EBV-240381
MasterQty: 12
InnerQty: 1
PalletQty: 14400
CartonQty: 14
- Quantity: 50
PartWeight: 6.21
Description: HANGER,CONDUIT,FLEXIBLE
PartNumber: KX
UOM: BG
SellUOM: EA
PartConv: '1000'
BaseUnitPrice: 15.015
FrgnUnitPrice: 19.73
OrderLine: 2
ShipmentPOLine: 4
PrimaryLocation: 1F12L01
LocationSeq: A003280
LocationType: PRIMARY
Zone: A
HazMat: H4
PartUPC: '78285600156'
PartEAN: ''
ProdType: FEP
LotFlag: A
LotNumber: '450012584451'
ManOrd: C458987
FreightClass: '50'
PallSize: 60
MasterCarton: EBV-240381
MasterQty: 12
InnerQty: 1
PalletQty: 14400
CartonQty: 150
- Quantity: 50
PartWeight: 6.21
Description: HANGER,CONDUIT,FLEXIBLE
PartNumber: KX
UOM: BG
SellUOM: EA
PartConv: '1000'
BaseUnitPrice: 15.015
FrgnUnitPrice: 19.73
OrderLine: 2
ShipmentPOLine: 4
PrimaryLocation: 1F12L01
LocationSeq: A003280
LocationType: PRIMARY
Zone: A
HazMat: H4
PartUPC: '78285600156'
PartEAN: ''
ProdType: FEP
LotFlag: A
LotNumber: '450012584451'
ManOrd: C458987
FreightClass: '50'
PallSize: 60
MasterCarton: EBV-240381
MasterQty: 12
InnerQty: 1
PalletQty: 14400
CartonQty: 150
Company: '11'
Plant: '11'
Warehouse: '111'
OrderNumber: '79758'
ReleaseNumber: '05'
ShipmentNumber: '001'
PickerNumber: '1454221245'
ShipmentPONumber: '100497'
PromDate: 20221001
Currency: EUR
ExchangeRate: 1.134
RouteCode: '00'
ShipTerms: FC
FOBCode: SP
OrderClass: '001'
CarrierCode: BWAY
ShipVia: AIR
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: File Received, DB Updated