Reprice Large Volumes of Sales Orders

Oracle Order Management Fusion Cloud provides the ability to reprice large volume of sales orders using REST API. You can use a REST API to request reprice of multiple sales orders and get the status of the request that's submitted for reprice. For example, the price of many items may have been updated at the end of a month, so all the open orders for these items would need to be repriced to reflect the new price.

Here's a typical application processing flow for the scenario:

  1. In this example, you have a list of header IDs of the orders that you want to reprice. You can use the GET service of the Sales Orders for Order Hub resource to get the header IDs of the order numbers that you want to reprice. Alternatively, as described in the Submit Large Volume of Sales Order use case, you can also use a filter criteria to reprice the orders.

  2. You send a request payload using the Sales Order Action Requests REST API to reprice the list of header IDs.

  3. The response payload includes details of the batch process that's submitted to reprice the header IDs. As this is an offline process, so the immediate response is always PRE_PROCESSING.

  4. You can get the summarized status of the order reprice request by calling the GET service of the Sales Order Action Requests REST API for the request.

  5. The GET service of the Sales Order Action Requests REST API for the request also provides the unique request identifiers that are spawned for each header ID that you request for reprice. You can get the status of an order reprice and error or warning details if any for each order using the request identifier of each header ID.

    In this example, there are three header IDs submitted for reprice. Two result in error and one in success.

Create One Sales Action Request

Example URL

Use this resource URL format:

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/salesOrderActionRequests"

Example Request

Here's an example of the request body in JSON format. You plan to reprice three sales orders with Header IDs 300100609979963, 300100610845045, and 300100601830766. Specify ActionCode: ORA_FOM_REPRICE_ORDER to indicate that the sales order action request is for repricing the orders.
{
    "ActionCode": "ORA_FOM_REPRICE_ORDER",
    "requests": [
        {
            "HeaderId": 300100609979963
        },
        {
            "HeaderId": 300100610845045
        },
        {
            "HeaderId": 300100601830766
        }
    ]
}

Example Response Body

Here's an example of the response body in JSON format.

  • You can see one master request and three child action requests for repricing three sales orders with header IDs mentioned in the request payload. The master ActionRequestId is 300100610889715. The master action request spawned three child request to handle processing of three individual header IDs:
    • ActionRequestId 300100610889716 for HeaderId 300100609979963
    • ActionRequestId 300100610889717 for HeaderId 300100610845045
    • ActionRequestId 300100610889718 for HeaderId 300100601830766
  • The orders are repriced through a batch process, so the response shows StatusCode as PRE_PROCESSING and ProcessStatus as IN_QUEUE as the batch process is yet to start processing.
    Note the following:
    • TotalRecords: 3
    • TotalFailed: 0
    • TotalPassed: 0

Example Response

Here's an example of the response body in JSON format:

{
    "ActionCode": "ORA_FOM_REPRICE_ORDER",
    "ActionRequestId": 300100610889715,
    "ActionRequestTrackingId": 353752,
    "CreatedBy": "SCMOPERATIONS",
    "CreationDate": "2024-02-09T11:28:25.028+00:00",
    "FulfillLineId": null,
    "HeaderId": -1,
    "LastUpdateDate": "2024-02-09T11:28:25.063+00:00",
    "MassActionFlag": true,
    "OutcomeCode": null,
    "StatusCode": "PRE_PROCESSING",
    "Action": null,
    "ProcessId": 313824,
    "TotalRecords": 3,
    "TotalFailed": 0,
    "TotalPassed": 0,
    "ProcessStatus": "IN_QUEUE",
    "FilterCriteria": null,
    "Comments": null,
    "CancelReasonCode": null,
    "HoldCode": null,
    "ReleaseReasonCode": null,
    "RequireReasonCodeFlag": null,
    "requests": [
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889716,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100609979963,
            "MassActionFlag": false,
            "OutcomeCode": null,
            "StatusCode": "PRE_PROCESSING",
            "SummaryMessageText": null,
            "RequestStatus": "IN_QUEUE",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        },
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889717,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100610845045,
            "MassActionFlag": false,
            "OutcomeCode": null,
            "StatusCode": "PRE_PROCESSING",
            "SummaryMessageText": null,
            "RequestStatus": "IN_QUEUE",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        },
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889718,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100601830766,
            "MassActionFlag": false,
            "OutcomeCode": null,
            "StatusCode": "PRE_PROCESSING",
            "SummaryMessageText": null,
            "RequestStatus": "IN_QUEUE",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
            "name": "salesOrderActionRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
            "name": "salesOrderActionRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests",
            "name": "requests",
            "kind": "collection"
        }
    ]
}

GET One Sales Order Action Request

Use this resource URL format:

GET

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/ActionRequestId"

For example:

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715"

Example Response

Here's an example of the response body in JSON format. You can review the summarized status of the reprice order request.

StatusCode indicates the status of the reprice order request for all the header IDs or orders. It can be COMPLETE, PRE_PROCESSING, or PROCESSING. Unless StatusCode is COMPLETE, the request is still being processed. Keep checking the status till the StatusCode is marked COMPLETE. OutcomeCode indicates the outcome of the reprice order request. It's SUCCESS if all the orders are repriced successfully, otherwise it's ERROR. In this example, notice that StatusCode is COMPLETE and OutcomeCode is ERROR. This means the reprice order request has been processed for all the orders and at least one order is not repriced successfully.

Note the following:
  • TotalRecords: 3
  • TotalFailed: 2
  • TotalPassed: 1

ProcessStatus indicates the combined status of StatusCode and OutcomeCode. COMPLETED_WITH_ERRORS indicates that the reprice request is processed for all the orders but there are errors.

{
    "ActionCode": "ORA_FOM_REPRICE_ORDER",
    "ActionRequestId": 300100610889715,
    "ActionRequestTrackingId": 353752,
    "CreatedBy": "SCMOPERATIONS",
    "CreationDate": "2024-02-09T11:28:25.028+00:00",
    "FulfillLineId": null,
    "HeaderId": -1,
    "LastUpdateDate": "2024-02-09T11:28:25.063+00:00",
    "MassActionFlag": true,
    "OutcomeCode": "ERROR",
    "StatusCode": "COMPLETE",
    "Action": "Reprice Order",
    "ProcessId": 313824,
    "TotalRecords": 3,
    "TotalFailed": 2,
    "TotalPassed": 1,
    "ProcessStatus": "COMPLETED_WITH_ERRORS",
    "FilterCriteria": null,
    "Comments": null,
    "CancelReasonCode": null,
    "HoldCode": null,
    "ReleaseReasonCode": null,
    "RequireReasonCodeFlag": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
            "name": "salesOrderActionRequests",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
            "name": "salesOrderActionRequests",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests",
            "name": "requests",
            "kind": "collection"
        }
    ]
}

GET All Requests

Use this resource URL format:

GET

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/ActionRequestId/child/requests"

For example:

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests"

Example Response

Here's an example of the response body in JSON format. You can review the summarized status of the reprice order request.

If your reprice order request has been completed with errors, then you can review the status of the reprice order request for each order along with the error or warning details for the order that wasn't repriced successfully.

StatusCode indicates the status of the reprice order request for each header ID or order. It can be COMPLETE, PRE_PROCESSING, or PROCESSING. Unless StatusCode is COMPLETE, the request is still being processed for the order. Keep checking the status till the StatusCode is marked COMPLETE. OutcomeCode indicates the outcome of the reprice order request for each order. It's set to SUCCESS if the order is repriced successfully, otherwise it's set to ERROR.

You can see that for the HeaderId 300100609979963 associated with ActionRequestId 300100610889716, StatusCode = COMPLETE and OutcomeCode = ERROR. This means that the request is completed but this order hasn't been repriced successfully. You see that the SummaryMessageText ="The price wasn't determined because currency from BRL to USD couldn't be converted using the general ledger.". This indicates currency conversion between BRL and USD isn't defined so the order wasn't repriced.

You can see that for HeaderId 300100610845045 associated with ActionRequestId 300100610889717, StatusCode = COMPLETE and OutcomeCode = SUCCESS. This means the order has been repriced successfully.

You can see that for the HeaderId 300100601830766 associated with ActionRequestId 300100610889718, StatusCode = COMPLETE and OutcomeCode = ERROR. This means that the request is completed but this order hasn't been repriced successfully. You see that the SummaryMessageText ="Order is priced in a different source system. (FOM-4515710) Details: Reprice the order in its source system. Reprice Order action can only reprice orders that are priced using Oracle Pricing.". This indicates the order isn't repriced because it's priced in a different source system, not in Oracle Fusion Pricing Cloud.

{
    "items": [
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889716,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100609979963,
            "MassActionFlag": false,
            "OutcomeCode": "ERROR",
            "StatusCode": "COMPLETE",
            "SummaryMessageText": "The price wasn't determined because currency from BRL to USD couldn't be converted using the general ledger.",
            "RequestStatus": "FAILED",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        },
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889717,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100610845045,
            "MassActionFlag": false,
            "OutcomeCode": "SUCCESS",
            "StatusCode": "COMPLETE",
            "SummaryMessageText": null,
            "RequestStatus": "COMPLETED",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889717/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        },
        {
            "ActionCode": "ORA_FOM_REPRICE_ORDER",
            "ActionRequestId": 300100610889718,
            "ActionRequestTrackingId": 353752,
            "FulfillLineId": null,
            "HeaderId": 300100601830766,
            "MassActionFlag": false,
            "OutcomeCode": "ERROR",
            "StatusCode": "COMPLETE",
            "SummaryMessageText": "Order is priced in a different source system. (FOM-4515710) Details: Reprice the order in its source system. Reprice Order action can only reprice orders that are priced using Oracle Pricing.",
            "RequestStatus": "FAILED",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718",
                    "name": "requests",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718",
                    "name": "requests",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715",
                    "name": "salesOrderActionRequests",
                    "kind": "item"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/messageDetails",
                    "name": "messageDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/orderDetails",
                    "name": "orderDetails",
                    "kind": "collection"
                },
                {
                    "rel": "child",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889718/child/orderLineDetails",
                    "name": "orderLineDetails",
                    "kind": "collection"
                }
            ]
        }
    ],
    "count": 3,
    "hasMore": false,
    "limit": 25,
    "offset": 0,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests",
            "name": "requests",
            "kind": "collection"
        }
    ]
}

GET Details of All Messages for an Action Request

Use this resource URL format:

GET

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/ActionRequestId/child/requests/ActionRequestId2/child/messageDetails"

For example:

curl -u username:password "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails"

Example Response

Here's an example of the response body in JSON format.

If your reprice request for an order has been completed with one or more errors, then you can get the details of all the errors logged for the order. You can see in this example that two messages with MessageId 100105346520897 and 100105346520898 have been logged for the ActionRequestId 300100610889716 that contains Header ID 300100609979963. MessageType indicates that both are of type ERROR, MessageText contains the error message for each of the MessageId, LastUpdateDate shows that when each of the error messages was logged, EntityType LINE indicates that both the error messages are logged on a line, and the EntityDisplayNumber indicates that MessageId 100105346520897 and 100105346520898 were logged on line 1 and 2 respectively.

{
    "items": [
        {
            "MessageId": 100105346520897,
            "ActionRequestId": 300100610889716,
            "MessageType": "ERROR",
            "MessageText": "The price wasn't determined because currency from BRL to USD couldn't be converted using the general ledger.",
            "LastUpdateDate": "2024-02-09T11:28:44+00:00",
            "EntityType": "LINE",
            "EntityDisplayNumber": "1",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails/100105346520897",
                    "name": "messageDetails",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails/100105346520897",
                    "name": "messageDetails",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item"
                }
            ]
        },
        {
            "MessageId": 100105346520898,
            "ActionRequestId": 300100610889716,
            "MessageType": "ERROR",
            "MessageText": "The price wasn't determined because currency from BRL to USD couldn't be converted using the general ledger.",
            "LastUpdateDate": "2024-02-09T11:28:44+00:00",
            "EntityType": "LINE",
            "EntityDisplayNumber": "2",
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails/100105346520898",
                    "name": "messageDetails",
                    "kind": "item"
                },
                {
                    "rel": "canonical",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails/100105346520898",
                    "name": "messageDetails",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716",
                    "name": "requests",
                    "kind": "item"
                }
            ]
        }
    ],
    "count": 2,
    "hasMore": false,
    "limit": 25,
    "offset": 0,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/salesOrderActionRequests/300100610889715/child/requests/300100610889716/child/messageDetails",
            "name": "messageDetails",
            "kind": "collection"
        }
    ]
}