Sending a document PDF to Skroutz is done with a customizable / general-use button on Sales/Purchases, using the #PST command.
For the general button setup and available variables, see: Customizable button on Sales/Purchases.
Sending an invoice to Skroutz
To upload an invoice to Skroutz, the Skroutz order number must be available in a field so it can be inserted into the URL below.
- When there is a direct bridge between EMDI and Skroutz, the Skroutz order number is filled automatically in #REL, so the link looks like:
|
1 |
#PST|https://api.skroutz.gr/merchants/ecommerce/orders/#REL/invoices|invoice_file=#PDF|Authorization:Bearer XXXXXXXXXXXXXXXXXXXX&Accept:application/vnd.skroutz+json; version=3.0|"success":true|one|two |
where #REL is the related-document field of the order and XXXXXXXXXXXXXXXXXXXX is the API token from Skroutz merchants (Services–>Skroutz marketplace).
The same URL pattern also applies when the Skroutz order number exists alone in a field.
- When there is no direct EMDI–Skroutz bridge, the order number must either arrive via the e-shop bridge in the order notes field, or be entered manually in the notes. In that case use:
|
1 |
#PST|https://api.skroutz.gr/merchants/ecommerce/orders/#SXO/invoices|invoice_file=#PDF|Authorization:Bearer XXXXXXXXXXXXXXXXXXXX&Accept:application/vnd.skroutz+json; version=3.0|"success":true|| |
where #SXO is the order notes field and the notes must contain only the Skroutz order number.
If the notes also contain customer comments, isolate the Skroutz order number with start/end markers at the end of the URL:
|
1 |
#PST|https://api.skroutz.gr/merchants/ecommerce/orders/#SXO/invoices|invoice_file=#PDF|Authorization:Bearer XXXXXXXXXXXXXXXXXXXX&Accept:application/vnd.skroutz+json; version=3.0|"success":true|:|: |
where the order number in the notes is wrapped between the two : characters.
Example:
|
1 |
CASH ON DELIVERY - SKROUTZ ORDER NUMBER :101589: |
so that order number 101589 can be recognized by EMDI.
