General Description of the Feature

This feature deals with the development of a new External Function workflow tool that can be used as a custom functionality with the Automarin.gr marketplace integration.

The new external function is called "MarkVehicleAsSoldInAutomarinDotGR". When it is triggered through a Workflow transition, it is informing, through a service, the Automarin website and the publication relevant with this vehicle, that the vehicle is sold and should be marked as such.

Find below an example of the service request body for such an action:

Service Request example
{
  "RequestUri": "https://dev.automarin.gr/api/car/27476",
  "RequestMethod": "PUT",
  "RequestProperties": {},
  "RequestHeaders": {
    "Accept": "application/json",
    "Authorization": "Bearer 6017f250-0150-4bad-b533-f7dfccccec74",
    "Content-Type": "application/x-www-form-urlencoded",
    "Content-Length": "1317"
  },
  "RequestData": [
    {
      "Key": "id",
      "Value": "27476"
    },
    {
      "Key": "url",
      "Value": "/used/passenger/mitsubishi/asx/27476"
    },
    {
      "Key": "make",
      "Value": "mitsubishi"
    },
    {
      "Key": "model",
      "Value": "ASX"
    },
    {
      "Key": "year",
      "Value": "2018"
    },
    {
      "Key": "month",
      "Value": "10"
    },
    {
      "Key": "engine",
      "Value": "1.6"
    },
    {
      "Key": "pass_buss",
      "Value": "Επιβατικά"
    },
    {
      "Key": "type",
      "Value": "Compact - Hatchback"
    },
    {
      "Key": "title",
      "Value": "mitsubishi ASX 1.6 (2018)"
    },
    {
      "Key": "extra",
      "Value": "1.6 Diesel"
    },
    {
      "Key": "price",
      "Value": "14.000"
    },
    {
      "Key": "sale_price",
      "Value": "9.500"
    },
    {
      "Key": "wmc_price",
      "Value": "8.000"
    },
    {
      "Key": "location",
      "Value": "23o ΧΛΜ Ε.Ο. ΑΘΗΝΩΝ-ΛΑΜΙΑΣ, ΑΓ. ΣΤΕΦΑΝΟΣ"
    },
    {
      "Key": "km",
      "Value": "110.000"
    },
    {
      "Key": "cc",
      "Value": "1599"
    },
    {
      "Key": "hp",
      "Value": "117"
    },
    {
      "Key": "consumption",
      "Value": "133.00"
    },
    {
      "Key": "color",
      "Value": "ΓΚΡΙ"
    },
    {
      "Key": "inside_color",
      "Value": "ΜΑΥΡΟ"
    },
    {
      "Key": "gearbox",
      "Value": "ΧΕΙΡΟΚΙΝΗΤΟ"
    },
    {
      "Key": "fuel",
      "Value": "ΒΕΝΖΙΝΗ"
    },
    {
      "Key": "doors",
      "Value": "5"
    },
    {
      "Key": "seats",
      "Value": "8"
    },
    {
      "Key": "engine_guarantee",
      "Value": "10"
    },
    {
      "Key": "drive",
      "Value": "Προσθιοκίνητο"
    },
    {
      "Key": "guarantee",
      "Value": "1"
    },
    {
      "Key": "guarantee_months",
      "Value": "6"
    },
    {
      "Key": "guarantee_bundle",
      "Value": "Premium"
    },
    {
      "Key": "equipment[0]",
      "Value": "Radio CD"
    },
    {
      "Key": "vat",
      "Value": "0"
    },
    {
      "Key": "photo[0]",
      "Value": "carimgs/27476-0.jpg"
    },
    {
      "Key": "photo[1]",
      "Value": "carimgs/27476-1.jpg"
    },
    {
      "Key": "euro",
      "Value": "Euro 5"
    },
    {
      "Key": "traffic",
      "Value": "0"
    },
    {
      "Key": "fumes",
      "Value": "7"
    },
    {
      "Key": "youtube_link",
      "Value": "https://www.youtube.com/watch?v=EUNVGGgI1Eo"
    },
    {
      "Key": "panoramic",
      "Value": "panoramic-27476.jpg"
    },
    {
      "Key": "withdrawal",
      "Value": "0"
    },
    {
      "Key": "trunk",
      "Value": "0.00"
    },
    {
      "Key": "length",
      "Value": "4.37"
    },
    {
      "Key": "interior_length",
      "Value": "0.00"
    },
    {
      "Key": "width",
      "Value": "1.81"
    },
    {
      "Key": "interior_width",
      "Value": "0.00"
    },
    {
      "Key": "height",
      "Value": "1.64"
    },
    {
      "Key": "interior_height",
      "Value": "0.00"
    },
    {
      "Key": "weight",
      "Value": "5200.00"
    },
    {
      "Key": "sold",
      "Value": "1"
    },
    {
      "Key": "disabled",
      "Value": "0"
    },
    {
      "Key": "onedealer_id",
      "Value": "1000003"
    }
  ]
}

This part of the request is controlling how the vehicle publication will be displayed in the Automarin.gr marketplace:

{
"Key": "sold",
"Value": "1"
},
{
"Key": "disabled",
"Value": "0"
}

Version - Patch

This feature is originally included in the development of the 2.60 version. However, for project and GoLive reasons it has been patched and deployed in patch version 2.57.21

Functional Process (mandatory)

This feature is an addition on the available functions related with the Automarin.gr Marketplace publication. So, in order for it to work properly such integration should be enabled and the relevant vehicle publications should exist.

Find more information regarding the Automarin.gr Marketplace integration here: 2.55-1. Integration with Automarin.gr - Marketplace Integration

Business Benefit

This new addition and enhancement will mark the vehicle publication as sold instead of completely removing them. 

Configuration 

External Functions

  • MarkVehicleAsSoldInAutomarinDotGR - Marks the vehicle on Automarin side as sold and mark vehicle publication status as Removed on OneDealer side

Additional Information

  • Feature No.:  AM-261 - Getting issue details... STATUS
  • Test Case No.:  AM-267 - Getting issue details... STATUS
Write a comment…