Rest API Configure

71 views
Skip to first unread message

Kev

unread,
Jun 21, 2021, 8:35:05 AM6/21/21
to COZYROC
Hi,
I need to connect to a Rest API whereby I must specific the API Key within the query parameters.

URL example: https://<BaseURL>/cb_invoices?apikey=XXXXX

Please could you advise how to configure this.

kind Regards 

Ivan Peev

unread,
Jun 21, 2021, 9:56:17 PM6/21/21
to COZYROC
Hi,

Please review the demo "Basics of custom configuration" from the documentation page here.

Kev

unread,
Jun 22, 2021, 5:39:44 PM6/22/21
to COZYROC
Thanks Ivan, this has helped.

I have a rest source setup which consumes a list of invoice header details and writes them into a InvoiceHeader table within SQL Server. For each Invoice written into the header table I've got to make a call to the Invoice Detail endpoint (  https://<BaseURL>/cb_invdetail/{{Invoice}}?{{APIKey}} ) to get the detail of the invoice. Could you advise how best to do this using the REST Source component??

Thank you.

Ivan Peev

unread,
Jun 22, 2021, 6:42:18 PM6/22/21
to COZYROC
You can implement the retrieval of the invoice detail inside the REST configuration. For example how it is done, please check Magento.rcm -> "Sales Invoice" resource -> items field definition.

Kev

unread,
Jun 23, 2021, 8:22:12 AM6/23/21
to COZYROC
Hi Ivan,

Apologies, I'm struggling to understand how to configure this as needed. Do you have any further documentation on this??

Thank you.

Ivan Peev

unread,
Jun 23, 2021, 9:19:00 AM6/23/21
to COZYROC
All documentation for the REST framework is posted here.
Reply all
Reply to author
Forward
0 new messages