KMack64
Member
I have created a connector for an external rest call, and I am having issues parsing the return values.
The data returns correctly up to the highlighted:
This is the raw return:
ConnectorRequest1": {
"quoteSummaries": [
{
"quoteId": 2215455953,
"carrier": {
"carrierCode": "T8154",
"carrierName": "Saia Motor Freight Line",
"scac": "SAIA"
},
"customer": {},
"totalCharge": 337.95,
"totalFreightCharge": 291.08,
"totalAccessorialCharge": 46.86,
"transit": {
"minimumTransitDays": 3,
"originService": "Direct",
"destinationService": "Direct"
},
"rates": [
{
"rateId": 390089714,
"totalRate": 46.86,
"unitRate": 46.86,
"quantity": 291.0839,
"rateCode": "405",
"rateCodeValue": "Fuel Surcharge",
"currencyCode": "USD",
"isOptional": false
},
],
"transportModeType": "LTL",
"equipmentType": "Van",
"cargoLiability": {
"perPound": 5,
"max": 50000,
"amount": 5415,
"currencyCode": "USD"
},
"quoteSource": "Contractual"
}
]
},
Here is what I am getting:
"ConnectorRequest1": {
"quoteSummaries": [
{
"quoteId": 2215445778,
"carrier.carrierCode": "T8154",
"carrier.carrierName": "Saia Motor Freight Line",
"carrier.scac": "SAIA",
"totalCharge": 337.95,
"totalFreightCharge": 291.08,
"totalAccessorialCharge": 46.86,
"transit.minimumTransitDays": 3,
"transit.originService": "Direct",
"transit.destinationService": "Direct",
"transportModeType": "LTL",
"equipmentType": "Van"
}
]
},
I have noticed that the rates section is enclosed by [...]
Any ideas on how to return the rates section?
The data returns correctly up to the highlighted:
This is the raw return:
ConnectorRequest1": {
"quoteSummaries": [
{
"quoteId": 2215455953,
"carrier": {
"carrierCode": "T8154",
"carrierName": "Saia Motor Freight Line",
"scac": "SAIA"
},
"customer": {},
"totalCharge": 337.95,
"totalFreightCharge": 291.08,
"totalAccessorialCharge": 46.86,
"transit": {
"minimumTransitDays": 3,
"originService": "Direct",
"destinationService": "Direct"
},
"rates": [
{
"rateId": 390089714,
"totalRate": 46.86,
"unitRate": 46.86,
"quantity": 291.0839,
"rateCode": "405",
"rateCodeValue": "Fuel Surcharge",
"currencyCode": "USD",
"isOptional": false
},
],
"transportModeType": "LTL",
"equipmentType": "Van",
"cargoLiability": {
"perPound": 5,
"max": 50000,
"amount": 5415,
"currencyCode": "USD"
},
"quoteSource": "Contractual"
}
]
},
Here is what I am getting:
"ConnectorRequest1": {
"quoteSummaries": [
{
"quoteId": 2215445778,
"carrier.carrierCode": "T8154",
"carrier.carrierName": "Saia Motor Freight Line",
"carrier.scac": "SAIA",
"totalCharge": 337.95,
"totalFreightCharge": 291.08,
"totalAccessorialCharge": 46.86,
"transit.minimumTransitDays": 3,
"transit.originService": "Direct",
"transit.destinationService": "Direct",
"transportModeType": "LTL",
"equipmentType": "Van"
}
]
},
I have noticed that the rates section is enclosed by [...]
Any ideas on how to return the rates section?