Sending requests

To send a request:

  1. Open the collection.
  2. Select the request to send.
  3. Disable the default request parameters:
    1. Click the Params tab. A list of default parameters is displayed. To send a basic test request, the parameters must be disabled.
    2. Disable the parameters by clearing the corresponding check boxes.
    Note: In a later stage, if you want to send more advanced requests, you can re-enable the parameters.
  4. Ensure all required variables to run the request are filled.
    The required variables are displayed in the URL of the request. For example: The URL of the Get entity from Lines by key request contains the PurchaseOrder, Line, and Sequence variables. You can fill these variables on the Variables tab of the Postman collection.
  5. Modify the request header.
    1. Click the Headers tab. A list of default headers is displayed.
    2. Disable the Content-Language header by clearing the corresponding check box. As a result, the system and data language of the LN service (svc_ln) user are used while executing the request.

      Alternatively, to use a different system and data language, enable this header and specify the desired language.

    3. For X-Infor-LnCompany, specify this value: {{company}}. As a result, the company number you specified on the Variables tab of the collection is used while executing the request.
      Alternatively, to run the request in a different company number, specify that company number in the Value field. You must specify an LN company number for which the service has been activated.
      Note: If this header is disabled or empty, the default company of the LN service (svc_ln) user is used while executing the request.
    4. Disable the X-Infor-LnIdentity header by clearing the corresponding check box. To send a basic test request, this header must be disabled.
      Note: In a later stage, you might want to send more advanced requests that apply identity switching. In that case, you can enable this header again.

      See Identity switching.

  6. If applicable, complete the body of the request.
    The content of the request body depends on the type of request:
    • For GET and DELETE requests, the body is typically empty.
    • For PATCH requests, you must specify the new values for the properties you want to update. For example, for a PATCH request for a purchase order line, you can specify new values for the OrderedQuantity, PurchaseUnit, ConfirmedReceiptDate, and Price properties.
    • For PUT requests, you must specify the new values for all properties.
    • For POST requests, you must specify the desired action parameters. For example, for a POST request to approve a purchase order, you must specify the ApplyApprovalRules, CheckAmountUpto, and CheckAmountUptoCurrency parameters.
  7. Click Save.
  8. Click Send.
    The response of the request is displayed on the Body tab.

    If the request fails, an error status code is displayed. In most situations, the response body contains information about what is wrong.

    For details, see Error status codes returned by Infor LN REST services.