cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected response using the API Gateway ExportPDFData

nnouhi
Newcomer
0 Kudos

Hello everyone,

We are in the process of developing a client portal that leverages the Service Layer to fetch invoices, incoming payments, and other customer-related information. Additionally, we aim to automate the process of exporting this data as invoices. However, we've encountered an issue.

When attempting to use the ExportPDFData endpoint to retrieve invoices and incoming payments, we receive unexpected responses, as demonstrated in the attached images. In contrast, when applying ExportPDFData to Crystal Report Document Types, everything functions as expected, as shown in attached images.

Could someone explain the difference between the various Document Types regarding Layout and Sequence? Specifically, why do Crystal Report document types work as expected, while others do not?

Thank you for your time.

@ANKIT_CHAUHAN 

 

1.png2.png3.png4.png6.png7.png8.png

 

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi nnouhi,

ExportPDFDataLoadAuthorizedCRList or LoadCR are expected to work for API Gateway in SAP Business One.

API Gateway allows you to export Crystal Layout into PDF. API Gateway runs on port 60000 or 60020.

Refer to this link for the same: About SAP Business One API Gateway 

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support