MercadoEnvios does not show option "Withdrawal in OCA branch" (Argentina)

1

Good morning.

I am trying to give my clients the possibility of making a withdrawal in the OCA branch, however, it is only giving me the possibility of 'Agreement with the seller' and 'Shipping at home'.

My preferences JSON is as follows:

var preference = {
    "items": [],
    "shipments": {
      "mode": "me2",
      "dimensions": "30x30x30,500",
      "local_pickup": true,
      "zip_code": 1419
    }
  };

It should be noted that in my code the array of items is not empty but with all the data of the cart.

What would be the json that should be sent so that the user can choose the option of Retirement in OCA Branch?

Thank you,

Juani.

    
asked by Juan Gallo 25.01.2017 в 14:09
source

2 answers

2

in your JSON you must remove or place in false the "local_pickup": true, line since this option is for you to agree with the seller. Check the documentation here

Greetings

    
answered by 06.02.2017 в 16:47
2

The availability of the mails depends on each country and therefore it is necessary to check if the option of withdrawal at the branch of the mail is available or not.

As David said in another answer, the option of local_pickup is used for the buyer to remove the products for your store, and in this case it must be in false .

What you could do, but not always be able to apply safely (and depends on what the buyer chooses) is to send a default_shipping_method .

The complete list of shipping_methods can be obtained by making the following request:

curl -X GET "https://api.mercadolibre.com/sites/MLA/shipping_methods?shipping_modes=me2&access_token=TU_ACCESS_TOKEN&marketplace=NONE"

Note: The NONE marketplace assures us that we do not have the options that are only for Mercado Libre .

Once we have the ID that we are going to use in the preference, we should send it:

var preference = {
    "items": [],
    "shipments": {
        "mode": "me2",
        "dimensions": "30x30x30,500",
        "local_pickup": false,
        "zip_code": 1419,
        "default_shipping_method": 501045
    }
};
    
answered by 09.02.2017 в 14:42