• 0
Elvis

Alterar pedido para transporte "shipped"

Question

Estou com problema modificar o pedido para enviado.

https://developers.mercadolibre.com/pt_br/envio-personalizado/#Entrega

PUT https://api.mercadolibre.com/shipments/{shipping_id}?access_token=$ACCESS_TOKEN

{
  "speed": 216,
  "status": "shipped",
  "tracking_number": 540473,
  "receiver_id": 257373227
}

Resposta

{
   
  "message": "Invalid parameters for shipping mode",

  "error": "invalid_parameters",

  "status": 400,

  "cause": null,

  "internal_cause": []

}

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
35 minutes ago, Elvis said:

Estou com problema modificar o pedido para enviado.

https://developers.mercadolibre.com/pt_br/envio-personalizado/#Entrega

PUT https://api.mercadolibre.com/shipments/{shipping_id}?access_token=$ACCESS_TOKEN

{
  "speed": 216,
  "status": "shipped",
  "tracking_number": 540473,
  "receiver_id": 257373227
}

Resposta

{
   
  "message": "Invalid parameters for shipping mode",

  "error": "invalid_parameters",

  "status": 400,

  "cause": null,

  "internal_cause": []

}

sua order tem shipping_id ? está como "to_be_agreed"?

Share this post


Link to post
Share on other sites
  • 0

Não encontrei esse valor nem na /orders/{id} nem em /shipments/{id}
 

{
  "id": 1845963254,
  "date_created": "2018-10-30T13:33:07.000-04:00",
  "date_closed": "2018-10-30T13:33:09.000-04:00",
  "last_updated": "2018-10-30T13:33:10.000-04:00",
  "manufacturing_ending_date": null,
  "feedback": {},
  "mediations": [
  ],
  "comments": null,
  "pickup_id": null,
  "order_request": {},
  "fulfilled": null,
  "total_amount": 729,
  "total_amount_with_shipping": 796.03,
  "paid_amount": 796.03,
  "taxes": {
    "amount": null,
    "currency_id": null
  },
  "coupon": {
    "id": null,
    "amount": 0
  },
  "expiration_date": "2018-11-29T13:33:09.000-04:00",
  "order_items": [],
  "currency_id": "BRL",
  "payments": [],
  "shipping": {
    "id": 27726417891,
    "site_id": "MLB",
    "shipment_type": "shipping",
    "mode": "me1",
    "shipping_mode": "me1",
    "status": "handling",
    "substatus": null,
    "date_created": "2018-10-30T13:33:07.000-04:00",
    "receiver_address": {},
    "sender_address": {},
    "currency_id": "BRL",
    "date_first_printed": null,
    "service_id": null,
    "shipping_items": [],
    "receiver_id": 257373227,
    "sender_id": 193200465,
    "shipping_option": {
      "id": 105042560600001,
      "shipping_method_id": 100009,
      "name": "Normal",
      "currency_id": "BRL",
      "cost": 67.03,
      "delivery_type": null,
      "list_cost": 67.03,
      "estimated_delivery_time": {
        "type": "known",
        "date": "2018-11-07T00:00:00.000-03:00",
        "unit": "hour",
        "offset": {
          "date": null,
          "shipping": null
        },
        "time_frame": {
          "from": null,
          "to": null
        },
        "pay_before": null,
        "shipping": 48,
        "handling": 48,
        "schedule": null
      }
    },
    "logistic_type": "default",
    "picking_type": null,
    "cost_components": {
      "special_discount": 0,
      "loyal_discount": 0,
      "compensation": 0
    },
    "cost": 67.03
  },
  "status": "paid",
  "status_detail": null,
  "tags": [
    "not_delivered",
    "paid"
  ],
  "buyer": {},
  "seller": {}
}

Share this post


Link to post
Share on other sites
  • 0
53 minutes ago, Elvis said:

Sem a tag "speed" eu consigo modificar porem quando adiciono da erro

 

https://developers.mercadolibre.com/pt_br/envio-personalizado

 

na documentação está:

Quote

 

"Para isso, você deve realizar uma solicitação PUT ao envio com os atributos service_id, tracking_number e o status."

 

ou seja, não há o valor "speed" no caso do ME1 (não sei porque, mas é assim)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now