Dear Community,
I have a case where an external application need to get information from M3 using ION API calls. No issue with this, the application is doing the API calls, using OAuth2 authentication, everything is going well (we are even able to create Customer orders from this application).
But this application also needs to get information from M3. the information requested is Item Sales price for a specific customer. For this, we are using OIS345MI/LstPriceMargin API.
This API is giving the expected result, except that there are a lot of information that are not needed by the external application. From the JSON result example below, We only need to get the SEQN = 30 (Prix Net) section of the JSON file.
I'm thinking about designing an ION API flow, but I guess that I should implement a JQ Transform statement to crop the standard M3 API result and extract the only part I need... pAm I in the right way ? does anyone can give me some advise on how to do this ?
Many thanks for your support !
{
"SEQN": "10",
"TX25": "Mnt brut-ligne",
"PBAM": "12.91",
"CUCD": "EUR",
"PCMA": "0.00",
"PBA1": "0",
"CUC1": "",
"PRID": "REN",
"ORIG": "Tarif",
"PRMO": "2",
"CLAT": "",
"TEPY": "N60",
"NTCD": "0",
"TINC": "0",
"DICO": "0",
"SIMI": "",
"SCEL": "",
"TX15": "",
"WSOP": "",
"OVHE": "",
"UNI1": "",
"RATE": "",
"UNI2": "",
"PBA2": "",
"CUC2": "",
"DIPC": "0.00"
},
{
"SEQN": "20",
"TX25": "Rem : Promotop,",
"PBAM": "0.00",
"CUCD": "EUR",
"PCMA": "0.00",
"PBA1": "0",
"CUC1": "",
"PRID": "",
"ORIG": "",
"PRMO": "",
"CLAT": "",
"TEPY": "",
"NTCD": "0",
"TINC": "0",
"DICO": "1",
"SIMI": "",
"SCEL": "",
"TX15": "",
"WSOP": "",
"OVHE": "",
"UNI1": "",
"RATE": "",
"UNI2": "",
"PBA2": "",
"CUC2": "",
"DIPC": "0.00"
},
{
"SEQN": "21",
"TX25": "Rem : Remise client F",
"PBAM": "0.00",
"CUCD": "EUR",
"PCMA": "0.00",
"PBA1": "0",
"CUC1": "",
"PRID": "",
"ORIG": "",
"PRMO": "",
"CLAT": "",
"TEPY": "",
"NTCD": "0",
"TINC": "0",
"DICO": "1",
"SIMI": "",
"SCEL": "",
"TX15": "",
"WSOP": "",
"OVHE": "",
"UNI1": "",
"RATE": "",
"UNI2": "",
"PBA2": "",
"CUC2": "",
"DIPC": "0.00"
},
{
"SEQN": "29",
"TX25": "Total rem/ligne",
"PBAM": "0.00",
"CUCD": "EUR",
"PCMA": "0.00",
"PBA1": "0",
"CUC1": "",
"PRID": "",
"ORIG": "",
"PRMO": "",
"CLAT": "",
"TEPY": "",
"NTCD": "0",
"TINC": "0",
"DICO": "0",
"SIMI": "",
"SCEL": "",
"TX15": "",
"WSOP": "",
"OVHE": "",
"UNI1": "",
"RATE": "",
"UNI2": "",
"PBA2": "",
"CUC2": "",
"DIPC": "0.00"
},
{
"SEQN": "30",
"TX25": "Montant net",
"PBAM": "12.91",
"CUCD": "EUR",
"PCMA": "0.00",
"PBA1": "0",
"CUC1": "",
"PRID": "",
"ORIG": "",
"PRMO": "",
"CLAT": "",
"TEPY": "",
"NTCD": "0",
"TINC": "0",
"DICO": "0",
"SIMI": "",
"SCEL": "",
"TX15": "",
"WSOP": "",
"OVHE": "",
"UNI1": "",
"RATE": "",
"UNI2": "",
"PBA2": "",
"CUC2": "",
"DIPC": "0.00"
},
{
"SEQN": "40",
"TX25": "Prix revient",
....
}
}