Skip to main content
Skip table of contents

Generate Return Receipt

The print options marked in Blue in the dialog box shown below are controlled by Employee default setting in R2. In this API , it will be considered from Employee defaults of the User Context Employee, except Status print options i.e., a. ALL b. Only Shipped c. Only Filled d. Only Returned.

Print Return Receipt endpoint, will always consider Status option as "Only Returned".

image-20250728-060745.png

The options in yellow box is not controlled by Employee default setting. For these, API will consider from the Payload request.

POST

End Point: /warehouse/orders/{orderID}/returnreceipt/generate

This method allows you to send a request to generate a return receipt.

In the request, you can provide the from and to date which will get you only the items whose Status change happened between these two dates.

  • The system will use the Return Receipt form that is set as default in R2 form setup.

  • If no form is set as default in R2 form setup, the system will automatically choose the first form in alphabetical order from the available forms.

  • Make sure the Return Receipt forms are accessible from the R2API server. We suggest setting them up as shared network paths during the form setup in R2.

  • If no form setup exists or if the form is not accessible from the R2API server, the return receipt will be generated based on the built-in form packaged within the API.

Sample request payload

CODE
{
  "fromdate": "MM/dd/yyyy HH:mm",
  "todate": "MM/dd/yyyy HH:mm",
  "excludenonprintable": true
}

 

  • The excludenonprintable used to exclude non-printable lines.

    • If excludenonprintable is not provided in payload, system considers it as FALSE.

 

Sample response payload

image-20250812-075158.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.