Hi All,
I'm using Postman API to send messages to ION through IMS ION API.
I found a sample JSON file in wiki that inputs XML type message.

for testing purpose imported to postman API, but it throws below error in screenshot.

multipart message status: 412 precondition failed
{
"status": "FAIL",
"code": 473,
"errors": "Document 'Sync.SalesOrder' is not accepted for tenantId 'XAIC01_TST' and logicalId 'lid://infor.ims.ims_ionapi'."
}
As my objective is to send JSON message to ION, I have no clue what is the format for JSON payload to postman API as input....So i have removed message payload and parameter request from the below JSON.
IMS via ION API using IMS v3.postman_collection.json
{
"info": {
"_postman_id": "87dbf98b-378c-4c70-97e3-87ae439c0965",
"name": "IMS via ION API using IMS v3",
"schema": "">schema.getpostman.com/.../collection.json"
},
"item": [
{
"name": "ping",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{iu}}/{{ti}}/IONSERVICES/api/ion/messaging/service/ping",
"host": [
"{{iu}}"
],
"path": [
"{{ti}}",
"IONSERVICES",
"api",
"ion",
"messaging",
"service",
"ping"
]
}
},
"response": []
},
{
"name": "versions",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{iu}}/{{ti}}/IONSERVICES/api/ion/messaging/service/versions",
"host": [
"{{iu}}"
],
"path": [
"{{ti}}",
"IONSERVICES",
"api",
"ion",
"messaging",
"service",
"versions"
]
}
},
"response": []
},
{
"name": "protocol",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{iu}}/{{ti}}/IONSERVICES/api/ion/messaging/service/protocol",
"host": [
"{{iu}}"
],
"path": [
"{{ti}}",
"IONSERVICES",
"api",
"ion",
"messaging",
"service",
"protocol"
]
}
},
"response": []
},
{
"name": "acceptedDocuments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{iu}}/{{ti}}/IONSERVICES/api/ion/messaging/service/v3/:lid/acceptedDocuments",
"host": [
"{{iu}}"
],
"path": [
"{{ti}}",
"IONSERVICES",
"api",
"ion",
"messaging",
"service",
"v3",
":lid",
"acceptedDocuments"
],
"variable": [
{
"key": "lid",
"value": "lid:%2F%2F{{lid}}"
}
]
}
},
"response": []
},
{
"name": "multipartMessage",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "MessagePayload",
"value": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\r\n<ProcessMyOrder xmlns=\"http://schema.infor.com/InforOAGIS/2\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" releaseID=\"2\" xsi:schemaLocation=\"http://schema.infor.com/InforOAGIS/2 http://schema.infor.com/2.2.0/InforOAGIS/BODs/Developer/ProcessMyOrder.xsd\">\r\n <ApplicationArea>\r\n <Sender>\r\n <LogicalID>lid://infor.test.mysalesapp<\/LogicalID>\r\n <ComponentID>erp<\/ComponentID>\r\n <ConfirmationCode>OnError<\/ConfirmationCode>\r\n <\/Sender>\r\n <CreationDateTime>2010-12-13T17:00:46Z<\/CreationDateTime>\r\n <BODID>infor-nid:infor:438:ORI010:112000001:?MyOrder&verb=Process<\/BODID>\r\n <\/ApplicationArea>\r\n <DataArea>\r\n <Process>\r\n <TenantID>infor<\/TenantID>\r\n <AccountingEntityID>438<\/AccountingEntityID>\r\n <LocationID>ORI010<\/LocationID>\r\n <ActionCriteria>\r\n <ActionExpression actionCode=\"Add\"/>\r\n <\/ActionCriteria>\r\n <\/Process>\r\n <MyOrder>\r\n <MyOrderHeader>\r\n <DocumentID agencyRole=\"Customer\">\r\n <ID accountingEntity=\"438\" lid=\"lid://infor.test.mysalesapp\" location=\"ORI010\" variationID=\"13\">112000001<\/ID>\r\n <\/DocumentID>\r\n <AlternateDocumentID agencyRole=\"Supplier\">\r\n <ID/>\r\n <\/AlternateDocumentID>\r\n <LastModificationDateTime>2008-02-12T14:01:29Z<\/LastModificationDateTime>\r\n <DocumentDateTime>2008-02-12T13:58:00Z<\/DocumentDateTime>\r\n <Status>\r\n <Code>Open<\/Code>\r\n <EffectiveDateTime>2008-02-12T14:01:29Z<\/EffectiveDateTime>\r\n <\/Status>\r\n <CustomerParty>\r\n <Location type=\"Office\">\r\n <ID lid=\"lid://infor.test.mysalesapp\">D_ORI010<\/ID>\r\n <\/Location>\r\n <\/CustomerParty>\r\n <SupplierParty>\r\n <PartyIDs>\r\n <ID lid=\"lid://infor.ln.ln\">MANDERS<\/ID>\r\n <\/PartyIDs>\r\n <Name>MANDERS<\/Name>\r\n <Location>\r\n <Address>\r\n <FormatCode>NLD<\/FormatCode>\r\n <AttentionOfName>Amsterdam, Granulaatstraat 80<\/AttentionOfName>\r\n <AddressLine sequence=\"1\">Granulaatstraat 80<\/AddressLine>\r\n <AddressLine sequence=\"2\"/>\r\n <AddressLine sequence=\"3\"/>\r\n <AddressLine sequence=\"4\"/>\r\n <AddressLine sequence=\"5\"/>\r\n <AddressLine sequence=\"6\"/>\r\n <CityName>Amsterdam<\/CityName>\r\n <CountrySubDivisionCode>NH<\/CountrySubDivisionCode>\r\n <CountryCode>NL<\/CountryCode>\r\n <PostalCode>1066 AB<\/PostalCode>\r\n <\/Address>\r\n <\/Location>\r\n <\/SupplierParty>\r\n <ShipToParty>\r\n <Location type=\"Warehouse\">\r\n <ID lid=\"lid://infor.test.mysalesapp\">W_WH112<\/ID>\r\n <Address>\r\n <FormatCode/>\r\n <AttentionOfName>Richmond variant 1.1.1<\/AttentionOfName>\r\n <AddressLine sequence=\"1\"/>\r\n <AddressLine sequence=\"2\"/>\r\n <AddressLine sequence=\"3\"/>\r\n <AddressLine sequence=\"4\"/>\r\n <AddressLine sequence=\"5\"/>\r\n <AddressLine sequence=\"6\"/>\r\n <CityName>Montreal<\/CityName>\r\n <CountrySubDivisionCode>QU<\/CountrySubDivisionCode>\r\n <CountryCode>CA<\/CountryCode>\r\n <PostalCode/>\r\n <\/Address>\r\n <\/Location>\r\n <\/ShipToParty>\r\n <ExtendedAmount currencyID=\"GBP\">0<\/ExtendedAmount>\r\n <CarrierParty>\r\n <PartyIDs>\r\n <ID/>\r\n <\/PartyIDs>\r\n <\/CarrierParty>\r\n <PaymentTerm>\r\n <Description>30 Days 0% Discount<\/Description>\r\n <\/PaymentTerm>\r\n <OrderDateTime>2008-02-12T13:58:00Z<\/OrderDateTime>\r\n <UserArea>\r\n <Property>\r\n <NameValue name=\"ln.OrderType\" type=\"StringType\">SPO<\/NameValue>\r\n <\/Property>\r\n <\/UserArea>\r\n <Classification>\r\n <Codes>\r\n <Code listID=\"Office\" sequence=\"1\">ORI010<\/Code>\r\n <\/Codes>\r\n <\/Classification>\r\n <DocumentUsageCode>Standard<\/DocumentUsageCode>\r\n <BaseCurrencyAmount type=\"ExtendedAmount\">\r\n <Amount currencyID=\"EUR\">0<\/Amount>\r\n <\/BaseCurrencyAmount>\r\n <\/MyOrderHeader>\r\n <MyOrderLine>\r\n <LineNumber>10<\/LineNumber>\r\n <Note/>\r\n <Status>\r\n <Code>Open<\/Code>\r\n <\/Status>\r\n <Item>\r\n <ItemID>\r\n <ID lid=\"lid://infor.test.mysalesapp\">112PURUITEM<\/ID>\r\n <\/ItemID>\r\n <ServiceIndicator>false<\/ServiceIndicator>\r\n <Description>Purchased Item<\/Description>\r\n <Note/>\r\n <SerializedLot>\r\n <Lot>\r\n <LotIDs>\r\n <ID/>\r\n <\/LotIDs>\r\n <\/Lot>\r\n <LotSelection>Any<\/LotSelection>\r\n <\/SerializedLot>\r\n <\/Item>\r\n <Quantity unitCode=\"PCS\">25<\/Quantity>\r\n <UnitPrice>\r\n <Amount currencyID=\"GBP\">0<\/Amount>\r\n <PerQuantity unitCode=\"PCS\">1<\/PerQuantity>\r\n <\/UnitPrice>\r\n <ExtendedAmount currencyID=\"GBP\">0<\/ExtendedAmount>\r\n <RequiredDeliveryDateTime>2008-03-28T05:12:00Z<\/RequiredDeliveryDateTime>\r\n <ShipToParty>\r\n <Location type=\"Warehouse\">\r\n <ID lid=\"lid://infor.test.mysalesapp\">W_WH112<\/ID>\r\n <Address>\r\n <FormatCode/>\r\n <AttentionOfName>Richmond variant 1.1.1<\/AttentionOfName>\r\n <AddressLine sequence=\"1\"/>\r\n <AddressLine sequence=\"2\"/>\r\n <AddressLine sequence=\"3\"/>\r\n <AddressLine sequence=\"4\"/>\r\n <AddressLine sequence=\"5\"/>\r\n <AddressLine sequence=\"6\"/>\r\n <CityName>Montreal<\/CityName>\r\n <CountrySubDivisionCode>QU<\/CountrySubDivisionCode>\r\n <CountryCode>CA<\/CountryCode>\r\n <PostalCode/>\r\n <\/Address>\r\n <\/Location>\r\n <\/ShipToParty>\r\n <RequisitionReference>\r\n <DocumentID>\r\n <ID/>\r\n <\/DocumentID>\r\n <\/RequisitionReference>\r\n <BackOrderedQuantity unitCode=\"PCS\">0<\/BackOrderedQuantity>\r\n <ReceivedQuantity unitCode=\"PCS\">25<\/ReceivedQuantity>\r\n <OpenQuantity unitCode=\"PCS\">0<\/OpenQuantity>\r\n <SalesOrderReference>\r\n <DocumentID>\r\n <ID/>\r\n <\/DocumentID>\r\n <\/SalesOrderReference>\r\n <ContractApplicableIndicator>false<\/ContractApplicableIndicator>\r\n <UnitQuantityConversionFactor>1<\/UnitQuantityConversionFactor>\r\n <BaseCurrencyAmount type=\"ExtendedAmount\">\r\n <Amount currencyID=\"EUR\">0<\/Amount>\r\n <\/BaseCurrencyAmount>\r\n <\/MyOrderLine>\r\n <\/MyOrder>\r\n <\/DataArea>\r\n<\/ProcessMyOrder>",
"contentType": "application/octet-stream",
"type": "text"
},
{
"key": "ParameterRequest",
"value": "{"documentName": "Sync.SalesOrder","fromLogicalId": "{{lid}}","encoding": "NONE","characterSet": "UTF-8","toLogicalId": "lid://default"}",
"contentType": "application/json",
"type": "text"
}
],
"options": {
"formdata": {}
}
},
"url": {
"raw": "{{iu}}/{{ti}}/IONSERVICES/api/ion/messaging/service/v3/multipartMessage",
"host": [
"{{iu}}"
],
"path": [
"{{ti}}",
"IONSERVICES",
"api",
"ion",
"messaging",
"service",
"v3",
"multipartMessage"
]
}
},
"response": []
}
],
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "accessToken",
"value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkluZm9yQWNjZXNzVG9rZW5TaWduaW5nQ2VydGlmaWNhdGUtMTU4NTg2MjcyNCJ9.eyJzY29wZSI6IiIsImNsaWVudF9pZCI6IklPTkRFVl9ERVZ-VVVaaGtzWEV0Vi16MUlQN1RVYmlkbkxuVDZQeU9NdFBuZENySHgxby1odyIsImdyYW50X2lkIjoiS1hnYU12cnZhejZzWmhNY0dXT3FTcmVyQ0FGakNQQW8iLCJqdGkiOiJPRGpwWnBpNGpBeGJWWGhoQ3JEV2pIVk5NMVFNbVBnTGNCY3QiLCJTZXJ2aWNlQWNjb3VudCI6IklPTkRFVl9ERVYjRHQ1TmF0UFcwLUxiQ0RiTGhPNFRWYVFYelo3SGtoUk1VeXBISzhFTkhPR3RxeHZZRVJLSkx0RXFMLTNzOW9nYXpOdkdKNzBXdXNrc2QzUWJMS2cyVEEiLCJUZW5hbnQiOiJJT05ERVZfREVWIiwiRW5mb3JjZVNjb3Blc0ZvckNsaWVudCI6IjAiLCJleHAiOjE1OTQwNDAwMDN9.uKu4GQjx3z4YxEOsJ6opp5qYm8WF0Z4M3CMAYvX6u_jWS-e29k4CiarCvrkxKEGBqAmSGpHlM7Ckd8LCxFq3ZFsWapsFhJ_wSYtnQL21FulCYhc5SVQ1f_jeWsURD7l-TozHhfmPxvq7EqIk5Hhl2xcWb2F1sTEFPlfnoktUtVFAgPkZQ3PN4i1__OQ6PeBiTww6U4VFyVo1JTTg15xAHVs9zylgfHJ5ex3iSepK7RyPK1jwZXMJLvWfC5cfvuj8gV1Ei5vS4Wo_UyOTBnCOvvfxrHS7T5__S71315KKtb8aXjQxJmiaLS0trb4iZfz9CMF4_QdBCa8tBUkP1atyJg",
"type": "string"
},
{
"key": "tokenType",
"value": "Bearer",
"type": "string"
},
{
"key": "addTokenTo",
"value": "header",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "2fb23dce-f03f-42cd-afba-bc2e1d5eab25",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "14c836b6-fa40-4f4b-81f9-8865cae86596",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "7d7763be-842a-4316-b141-de3c45727608",
"key": "ti",
"value": ""
},
{
"id": "e3a4ddb4-b8da-446c-b0a3-01b73e1a984e",
"key": "ci",
"value": ""
},
{
"id": "161ec59e-94bd-4196-ab64-d23df4c9bd9b",
"key": "cs",
"value": ""
},
{
"id": "3872a2cb-1d49-40dd-bbc1-657f5a0c7135",
"key": "pu",
"value": ""
},
{
"id": "c64d4257-5ac5-4136-b826-21d898f23772",
"key": "oa",
"value": "authorization.oauth2"
},
{
"id": "25d56518-483d-4ce2-bfc9-83956d4d22ca",
"key": "ot",
"value": "token.oauth2"
},
{
"id": "f173c750-0ed4-4ca6-9d83-93dd033449bc",
"key": "saak",
"value": ""
},
{
"id": "05fd6ba0-369d-4e30-b5f7-59a09e8f81f9",
"key": "sask",
"value": ""
},
{
"id": "267ab10e-52bc-4c6c-a4b7-6de4310ca8f7",
"key": "iu",
"value": ""
},
{
"id": "17f1a5db-b958-4645-9c1d-083e8e0d06cd",
"key": "lid",
"value": "infor.ims.cpmyapp"
}
],
"protocolProfileBehavior": {}
}

Giving status error as: 415 unsupported media type.
Can anyone help me on ... How to send a JSON message from POSTMAN API to ION through IMS ?
if there is any sample file for JSON message, it would be more helpful.
TIA..