Git Product home page Git Product logo

developer.skroutz.gr's Introduction

developer.skroutz.gr

This is the Skroutz developer platform built with middleman.

Submissions are welcome.

Contributing

Please read our "getting started" section

TL;DR
The following steps will get you started

  1. git pull # make sure you get latest changes
  • bundle install # make sure dependencies are met
  • bundle exec middleman server # have changes auto-compiled (leave it running)
  • Submit pull request

Deploy

Deployment is handled automatically on push.

License

cc-by-4.0

Creative Commons CC-BY license

developer.skroutz.gr's People

Contributors

agis avatar alexandrosth avatar alexunder193 avatar argirisnt avatar bill-kolokithas avatar cioannid avatar clontos avatar ctrochalakis avatar cvkef avatar cvrac avatar dimsf avatar filippiazikou avatar georgemanif avatar grigoriap avatar harrisred avatar itholoenos avatar kosdiamantis avatar leopal77 avatar mike-bekos avatar mrgoumx avatar mrwhizzy avatar mzachariadis avatar nikostsaganos avatar papantonis avatar parstra avatar pharlez avatar psilolouben avatar rpk0 avatar vpitsios avatar zorbash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

developer.skroutz.gr's Issues

Webhook URL

Καλημέρα, επειδή το eshop μας είναι στο domain πχ aaa.gr και θέλουμε το Webhook να φιλογξενείται σε άλλο domain πχ bbb.gr αυτό δεν το επιτρέπετε να δηλωθεί στο σύστημα.
Ορίσαμε ένα subdomain πχ wh.aaa.gr να παραπέμπει στην IP του bbb.gr και το δηλώσαμε με επιτυχία στο Skroutz Webhook.
Δοκιμές simulation με Postman λειτουργούν. Δυστυχώς δεν δεχόμαστε κλήσεις από το Skroutz.
Μήπως φταίει ότι αν και δηλώνουμε subdomain (wh.aaa.gr) το σύστημα προσπαθεί να στείλει στο aaa.gr αγνοώντας το subdomain?
Μήπως φταίει κάποιος έλεγχος πιστοποιητικού ασφαλείας SSL?
Υπάρχει περίπτωση να μας επιτρέψετε την προώθηση κλήσεων σε άλλο domain?
Ευχαριστούμε εκ των προτέρων.

Μήνυμα σφάλματος "UniqueID must appear more than once".

Καλησπέρα, έκανα ενα δοκιμαστικό validation, για ένα είδος που εξάχθη απο τρίτο πρόγραμμα (Pylon) και μου εμφανιζει το εξής σφάλμα στο ID καθώς και σε όλα τα άλλα πεδία.
image
Θα ήθελα να ξέρω τι ακριβώς σημαίνει το παρόν σφάλμα.
Ευχαριστώ εκ των προτέρων.

XML Description format

Στα docs δεν υπάρχουν λεπτομέρειες σχετικά με το Description παρά μόνο το αρχικό μήνυμα:

"Η HTML δεν επιτρέπεται σε κανένα από τα πεδία του XML."

Το κείμενο πρέπει να είναι plain text ή μπορεί να είναι Markdown ώστε να μπορούν να υπάρχουν lists, links, κ.ο.κ.;

Allow updating voucher code using Skroutz API

Hello,

Skroutz -> Eshop

at the moment, there is support to receive the voucher code using the order_updated event type or using the courier_tracking_codes field when retrieving an order.

That only applies for accepted orders that Skroutz created a voucher.

Eshop -> Skroutz

When viewing a Skroutz Marketplace order, you have the option to enter a voucher code:

image

Would it be possible to allow updating this field using the Skroutz API?

Conditional Requests seem to not be working

The example from the developer API documentation does not seem to be working even if you change the dates: http://developer.skroutz.gr/api/v3/#conditional-requests

Trying different kinds of requests like getting specifications of an SKU or retrieving the first page of the review of an SKU none seems to contain the Last-Modified response header and thus the conditional request is not working. In all cases, the response code is 200, even if the "If-Modified-Since" header points a time and date in the future.

See a screenshot from Postman (chrome app) here:
image

How could this be fixed?

Skroutz XML Feed - Shopify

Καλησπέρα σας,

Το app Skroutz XML Feed σε Shopify, δεν επιστρέφει στο xml feed additional images ενώ τα προιόντα έχουν περασμένες και αλλες φωτογραφίες. Αυτό είναι ένα app το οποίο το έχει φτιάξει η think-plus.gr. Εχω στείλει email για αυτο και δεν έχω πάρει απάντηση. Που πρέπει να αναφερθώ για αυτό;

Με εκτίμηση.

Orders API - express delivery

Καλησπέρα, εχουμε κάνει συνδεση της πλατφόρμας για να πεφτουν οι παραγγελίες και στο e-shop. Εχουμε ενεργοποιημένο το feature express delivery εδω και καιρό και οι παραγγελίες περνουσαν κανονικά.

Σήμερα λάβαμε 2 express παραγγελίες οπού έγιναν accepted με status "προς αποστολή" αλλά δεν πέρασαν την σελίδα.
Η απαντηση απο το curl command για την αποδοχη της παραγγελίας είναι η παρακάτω. Η διαδικασία ολοκληρώθηκε δηλαδη απο open εγινε eccepted αλλα η απαντηση ηταν error. Μπορείτε να μου πείτε λίγο παραπάνω για αυτό το error διότι δεν βρήκα κατι σχετικό στο documentation.

[errors] => Array
        (
            [0] => Array
                (
                    [code] => order_status
                    [messages] => Array
                        (
                            [0] => Order is express
                        )

                )

        )

validator.skroutz.gr can no longer handle zip files

Recently noticed that validator.skroutz.gr no longer accepts zip files as it stops with error Line:1 Column:1 Start tag expected, '<' not found Please check the XML file with an XML validator.

If I unzip the xml and test it on its own it works fine. If I gzip it it works fine too.

Allow API token access to Sandbox, not binded to a merchant

Hello,

we are currently working on implementing integration with Skroutz Marketplace, using Webhooks and Skroutz API.

At the moment, API token can only be issued from and for an active Skroutz merchant.

It would be nice, to have a generic developer/sandbox API token to access the DEMO-ORDERs, without depending on a customer.

Example:

curl -X GET https://api.skroutz.gr/merchants/ecommerce/orders/DEMO-OPEN \
  -H 'Accept: application/vnd.skroutz+json; version=3.0' \
  -H 'Authorization: Bearer skroutz-sandbox-api-token'

It would also allow us to write tests for our implementation without using a customer's API token.

I understand that triggering webhooks will not be possible, since it wouldn't know where to send an event. That would require creating a Developer account.

Skroutz Analytics

My website is WordPress, I want to add the script in the thank you page to tracking orders and items and I can't understand for the example what part of the code I must to take and replace it. Example in the order_id: '123456' with what I must to replace?

Retrieve an SKU's products endpoint returns 404

Using GET /skus/:id/products to get an SKU's products, I always get 404 even though the SKU has products :(

This was a working call (last time I checked was almost a year ago) and now it seems that it stopped working.

Example call:

curl \
  --verbose \
  --request GET \
  --header 'Accept: application/vnd.skroutz+json; version=3.2' \
  --header 'Authorization: Bearer redacted' \
  'https://api.skroutz.gr/skus/25549852/products'

skroutz script shopify

Hello people. We are currently trying to make our online shop a member of an online shopping web-page platform . To do so, we have to add some scripts to our page's codes. One of those, is a tracking script, that will send data (like the order id, product id, revenue etc) after an order is completed. We are told that this script should be added to the thank you or checkout page. Since we do not have a Shopify plus submission, we are not allowed to access the checkout.liquid page, so we are trying to add it on settings/checkout/additional scripts but it is not sending them any data. Are we adding the code on the wrong place? Are there any mistakes on the script? Here you can see the code we are trying to add :

<script> (function(a,b,c,d,e,f,g){a['SkroutzAnalyticsObject']=e;a[e]= a[e] || function(){ (a[e].q = a[e].q || []).push(arguments);};f=b.createElement(c);f.async=true; f.src=d;g=b.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g); })(window,document,'script','https://analytics.skroutz.gr/analytics.min.js','skroutz_analytics'); skroutz_analytics('session', 'connect', 'SA-XXXXX-066XX'); // Connect your Account. </script> <script> skroutz_analytics('ecommerce', 'addOrder',({ order_id: '{{ order.name }}', // Order ID. Required. revenue: '{{ checkout.total_price | money}}', // Grand Total. Includes Tax and Shipping. Does not include payment costs. shipping: '{{ shipping_method.price | money }}', // Total Shipping Cost. Does not include payment costs. tax: '{{ checkout.tax_price | money }}' // Total Tax. })); </script> <script> skroutz_analytics('ecommerce', 'addItem',({ order_id: '{{ order.name }}', product_id: {% for line in checkout.line_items %} {{ line.product.id }} {% endfor %}, name: {% for line in checkout.line_items %} {{ line.product.title }} {% endfor %} , price: {% for line in checkout.line_items %} {{ line.price | money }} {% endfor %}, quantity: '{% for line in checkout.line_items %}}' '{{ line.quantity }}' {% endfor %} }); </script>

Add license

We have to pick an open-source license to use and add a LICENSE.txt

VAT Exclusion Representative - List of possible ID Type values

Hello,

we recently added support for Invoice 39a orders and we want to extend this feature for the Skroutz Marketplace orders using Skroutz API.

We have the following questions:

  1. Do you perform an eligibility check (using AADE's vt39afpaBu3GetBuyer) if the buyer is entitled to VAT exclusion?

  2. Can you add the id_type ID to the API response?

      "vat_exclusion_representative": {
        "id_type_id": 1,
        "id_type": "ΑΤ Αστυνομική Ταυτότητα",
        "id_number": "12345",
        "otp": "123456"
      }
      "vat_exclusion_representative": {
        "id_type_id": 8,
        "id_type": "Διαβατήριο",
        "id_number": "12345",
        "otp": "123456"
      }
  1. If (2) is not possible, can you publish a list with all the possible values of field invoice_details.vat_exclusion_representative.id_type?

Issue here is that the API returned values, do not match with AADE's documentation. As such, we will have to create a mapping on our side.

Examples

ID AADE Skroutz
1 ΑΤ ΑΣΤΥΝΟΜΙΚΗ ΤΑΥΤΟΤΗΤΑ ΑΤ Αστυνομική Ταυτότητα
8 ΔΙ ΔΙΑΒΑΤΗΡΙΟ Διαβατήριο

Related Documentation

Sizes documentation

Βλέπουμε στο documentation την παρακάτω παράγραφο

Επίσης σε περίπτωση ρούχων τα μεγέθη μπορεί να έχουν ένα από τα παρακάτω format:

  1. XXS, XS, S, M, L, XL, XXL, XXXL
  2. Extra Small, Small, Medium, Large, Extra Large
  3. 00, 0, 2, 4, 6, 8, 10, 12, 14, 16

Ερώτηση
Αν αυτα ειναι 3 διαφορετικά φορματ
το XXS πως γινεται στο δευτερο φορματ;
το XXL πως γινεται στο δευτερο φορματ;
το XXXL πως γινεται στο δευτερο φορματ;

Client_id and client_secret

Hello,

How can I obtain a valid client_id and client_secret in order to get access to resources of your API?

Open-Cart Skroutz problem

Hello we have an E-shop made by open cart and have issues in validating ( sizes,titles,avalaibility ) i have taken the task to fix them so we can procceed by importing our website to skroutz store but i have problems fixing those issues . Any help is welcomed thank you.

XML feed specification update

Hello, I have a question for you regarding the ideal form of the XML feed.

I looked at the specification of the XML feed at https://developer.skroutz.gr/feedspec/ and noticed a discrepancy in the description of the elements.

Some elements have different forms on the specification page 3, depending on where they are written.

For example, the element for "Additional Image Link":

  • The specification page states that it should look like "additional_imageurl"
  • Listed in the sample feed as "additionalimage"
  • The XSD schema is then listed as "additional_image"

Another example of the "Unique ID" element:

  • The specification lists the following 3 registration options:
    32 ... 232AD
  • The sample feed contains: "id"
  • The XSD schema then states: "uid"

How should we base the XML file check?
Would it be possible to update the specifications or send the ideal sample feed?

Thank you very much in advance for the help and have a nice day

Leoš Humpolík

XMLFeed// Shipping // τιμή 0 για δωρεάν μεταφορικά, δεν επιτρέπεται

Καλησπέρα σας,

Θα χρειαστώ μία διευκρίνηση περί του πεδίου Shipping που θέλω να προσθέσω στο Skroutz Feed του πελάτη.

Στο Skroutz Validator, μου λέει ότι απαγορεύεται η τιμή 0, ενώ το documentation λέει να βάλω την 0 αν θέλω να δείξω ότι ένα προιόν έχει δωρεάν μεταφορικά.
Μπορείτε να με κατευθύνεται ?

Επίσης, μία ακόμα ερώτηση αν είναι εφικτό.
Μπορούμε να feedάρουμε πολλαπλά barcodes/eans ανά προιόν?

Ευχαριστώ πολύ για τον χρόνο σας.

API Access Request

Hello,

I'd like to build a new application using your api for my website, is there any way to obtain access on it?

Thanks in advance

mpn/barcode says is missing but it's there

Hello,
I uploaded my XML feed and the feedback among other is that there is no mpn/barcode field. As you can see here https://prnt.sc/RlMM1ryCB1O4 I have an mpn field, and when I inserted the xml file in the data feed validator, it recognises it as you can see here https://prnt.sc/oPHNPvNe5ASz . Why you do not see it when I insert my xml feed for validation? Furthermore you ask for a manufacturer and a quantity of product. Manufacturer is required? Can't we do something to bypass it? And regarding the quantity, isn't the "instock" variable matters? If it is instock it means there is quantity...can we somehow bypass it to or we have to isert in all of our products the manufacturer and the quantity?

Thank you

Unauthorized API Request

Καλησπέρα σας,

Πραγματοποιώ δοκιμές όσο αφορά στo Orders API σας αλλά ενώ χρησιμοποιώ ένα ενεργό API Token λαμβάνω συνεχώς ως απάντηση το μήνυμα με error code : EcommerceMerchantUnauthorized.

Μπορείτε να μας βοηθήσετε;

Ευχαριστώ.

Analytics Implementation Issue

I am trying to implement the analytics API, while the tracking script is integrated merchants/analytics/integrators/ reports missing tracking script.

I did some research and I can see all the iframes correctly generated and I get no errors from the console and from the Network tab I see all script down to easyXDM to load correctly.

Any ideas are welcome

Multi-dimensional size variations

Hello, I am implementing a plugin solution for a client of mine that uses multi-dimensional size variations.
The specific product type I'm referring to is a mattress that is variable on length, width and height so the actual dimension is generated as AxBxCcm and is required for every variation.

My issue is that when all options are collected together in the parent size definition it crosses the 1000 characters limit causing the validator to drop it. I'll try to break this down using an example:

One specific product has way too many variations:

Length: 170 to 210 cm with a 2cm step.
Width: 70 to 180 cm with a 2cm step.
Height: 12, 20, 28 cm (3 options)

The way price is handled accross these variations is based on width and height options, while length dimension even though it is variable it is set as "any" in the options and play no part in price adjustment.

The price in ranges using width and height only:
Width: 70-90cm in relation to height 12cm options have the same price.
Width: 70-90cm in relation to height 20cm options have the same price but different than the above case.
Width: 92-100cm in relation to height 12cm options have the same price but different than the 70-90cm x 12cm options.
etc.

I successfully export all variations with the variations size like this:
<variations> <variation> ... <size>170x70x12cm</size> ... </variation> <variation> ... <size>170x72x12cm</size> ... </variation> ... </variations>

However in the parent product where all of them are concatenated like this:
<size>170/70/25, 172/70/25, ...</size>
...the string is becoming huge causing the validator to reject it.

It is important for us to allow the user to select a specific dimension in a 2cm step because this is one of our selling advantages and we need to keep it that way. What is the best course of action to dynamically handle such cases?

Retrieve a single order with customer's mobile number

Hi guys,

As I can see on your documentation page here, the response of the endpoint "Retrieve a single order
" GET /merchants/ecommerce/orders/:code, does not include the mobile number in the customer object, as you can see in the screenshot below. Is it possible to retrieve also the mobile number of the customer?

How we can contact the customer if there is a problem with his order?

Screenshot 2022-07-26 at 00 23 31

Looking forward to your answer.
Thanks in advance.

Add /categories/:id/manufacturers endpoint to fetch "available" manufacturers for each category

Right now there is no way to show filters for manufacturers other than making one call for each manufacturer in available filters. By implementing this endpoint, the consumer will be able to fetch all available manufacturers prior to rendering filters. One can cache this information until a manufacturer not already in list, appears in available filters. Then a new call to fetch categories manufacturers will be needed.

Not accepting access requests

Hi,
Can you please provide some more info about not accepting access request?
Is there a timeline when access request will be open again?

woocommerce σε shopify

Άλλαξα το κατάστημα μου από woocommerce σε shopify και δεν μπορω να βρω κάποια λύση πως να στειλω την παραγγελια μιας και το shopify δεν σου επιτρεπει να επεμβεις στην σελιδα checkout ή thank you. Μπορείτε να με βοήθησετε μιας και έχετε plugin μονο για woocommerce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.