• 0
Sign in to follow this  
Sergio Cabrera

Inconsistencia de Manual con API

Question

Estimados,

 

Me pueden explicar por que en el manual  http://developers.mercadolibre.com/es/gestiona-ventas/#Búsqueda-de-órdenes   se indica que el json de respuesta al consultar una orden es la siguiente:

 

{
  "id": 768570754,
  "status": "paid",
  "status_detail": null,
  "date_created": "2013-05-27T10:01:50.000-04:00",
  "date_closed": "2013-05-27T10:04:07.000-04:00",
  "order_items": - [
	- {
  	"item": - {
    	"id": "MLB12345678",
  	  "title": "Samsung Galaxy",
    	"variation_id": null,
    	"variation_attributes": [
    	],
  	},
  	"quantity": 1,
  	"unit_price": 499,
  	"currency_id": "BRL",
	},
  ],
  "total_amount": 499,
  "currency_id": "BRL",
  "buyer": - {
	"id": "123456789",
	"nickname": "COMPRADORTESTE",
	"email": "b@b.com",
	"phone": - {
  	"area_code": "11",
  	"number": "12345678",
  	"extension": null,
	},
	"first_name": "Comprador de testes",
	"last_name": "da Silva",
	"billing_info": - {
  	"doc_type": "CPF",
  	"doc_number": "12345678910",
	},
  },
  "seller": - {
	"id": "123456789",
	"nickname": "VENDEDORTESTES",
	"email": "a@a.com",
	"phone": - {
  	"area_code": null,
  	"number": "11 12345678",
  	"extension": "11",
	},
	"first_name": "Vendedor de Testes",
	"last_name": "testes de documentacao",
  },
  "payments": - [
	- {
  	"id": "596707837",
  	"transaction_amount": 499,
  	"currency_id": "BRL",
  	"status": "approved",
  	"date_created": null,
  	"date_last_modified": null,
	},
  ],
  "feedback": - {
	"purchase": null,
	"sale": null,
  },
  "shipping": - {
	"id": 20676482441,
	"shipment_type": "shipping",
	"status": "handling",
    "date_created": "2013-05-27T10:03:28.000-04:00",
	"receiver_address": - {
  	"id": 12345678,
  	"address_line": "Rua dos testes 123  ",
  	"zip_code": "01001000",
  	"city": - {
    	"id": "BR-SP-44",
    	"name": "São Paulo",
  	},
  	"state": - {
    	"id": "BR-SP",
    	"name": "São Paulo",
  	},
  	"country": - {
    	"id": "BR",
    	"name": "Brasil",
  	},
  	"latitude": null,
  	"longitude": null,
  	"comment": null,
	},
	"currency_id": "BRL",
	"cost": 0,
  },
  "tags": - [
	"paid",
	"not_delivered",
  ],
}

 

 

Siendo que realmente la respuesta es esta?

 

 

Array
  (
  [id] => 1573217901
  [date_created] => 2017-12-15T09:27:47.000-04:00
  [date_closed] => 2017-12-15T09:28:04.000-04:00
  [last_updated] => 2017-12-15T09:28:04.000-04:00
  [feedback] => Array
  (
  [sale] =>
  [purchase] =>
  )
   
  [comments] =>
  [order_request] => Array
  (
  [return] =>
  [change] =>
  )
   
  [fulfilled] =>
  [mediations] => Array
  (
  )
   
  [shipping] => Array
  (
  [id] => 26946849846
  [site_id] => MLC
  [shipment_type] => custom_shipping
  [mode] => custom
  [shipping_mode] => custom
  [status] => pending
  [shipping_items] => Array
  (
  [0] => Array
  (
  [id] => MLC453472021
  [description] => Burlete 103 Rollo 100 Mts Negro
  [quantity] => 1
  [dimensions] =>
  )
   
  )
   
  [shipping_option] => Array
  (
  [id] => MLC453472021-0
  [name] => bla
  [currency_id] => CLP
  [list_cost] => 2000
  [cost] => 2000
  [speed] =>
  )
   
  [currency_id] => CLP
  [receiver_address] => Array
  (
  [id] => 374170807
  [address_line] => Duble almeyda 3755
  [street_name] => Duble almeyda
  [street_number] => 3755
  [comment] => 119
  [zip_code] =>
  [city] => Array
  (
  [id] => TUxDQ9FV0WU0MmM2
  [name] => Ñuñoa
  )
   
  [state] => Array
  (
  [id] => CL-RM
  [name] => RM (Metropolitana)
  )
   
  [country] => Array
  (
  [id] => CL
  [name] => Chile
  )
   
  [neighborhood] => Array
  (
  [id] =>
  [name] => Ñuñoa
  )
   
  [municipality] => Array
  (
  [id] =>
  [name] =>
  )
   
  [agency] =>
  [types] => Array
  (
  [0] => default_buying_address
  )
   
  [latitude] =>
  [longitude] =>
  [geolocation_type] =>
  [receiver_name] => Sergio Cabrera
  [receiver_phone] => 966679151
  )
   
  [sender_address] => Array
  (
  [id] => 463894355
  [address_line] => Calle Fray Camilo Henríquez 951
  [street_name] => Calle Fray Camilo Henríquez
  [street_number] => 951
  [comment] =>
  [zip_code] =>
  [city] => Array
  (
  [id] => TUxDQ1NBTjk4M2M
  [name] => Santiago
  )
   
  [state] => Array
  (
  [id] => CL-RM
  [name] => RM (Metropolitana)
  )
   
  [country] => Array
  (
  [id] => CL
  [name] => Chile
  )
   
  [neighborhood] => Array
  (
  [id] =>
  [name] => Santiago
  )
   
  [municipality] => Array
  (
  [id] =>
  [name] =>
  )
   
  [agency] =>
  [types] => Array
  (
  [0] => billing
  [1] => default_selling_address
  [2] => shipping
  )
   
  [latitude] =>
  [longitude] =>
  [geolocation_type] =>
  )
   
  [picking_type] =>
  [logistic_type] =>
  [cost] => 2000
  [substatus] =>
  [date_created] => 2017-12-15T09:28:02.000-04:00
  [date_first_printed] =>
  [service_id] =>
  [receiver_id] => 286200796
  [sender_id] => 286141812
  [cost_components] => Array
  (
  [special_discount] => 0
  )
   
  )
   
  [pickup_id] =>
  [expiration_date] => 2018-01-05T09:28:04.000-04:00
  [status] => paid
  [status_detail] =>
  [order_items] => Array
  (
  [0] => Array
  (
  [item] => Array
  (
  [id] => MLC453472021
  [title] => Burlete 103 Rollo 100 Mts Negro
  [category_id] => MLC3530
  [variation_id] =>
  [seller_custom_field] =>
  [variation_attributes] => Array
  (
  )
   
  [warranty] => 30 días
  [condition] => new
  )
   
  [quantity] => 1
  [unit_price] => 10000
  [full_unit_price] => 10000
  [currency_id] => CLP
  )
   
  )
   
  [currency_id] => CLP
  [buyer] => Array
  (
  [id] => 286200796
  [nickname] => TETE1860209
  => ttest.mv400d+2-oge2tomzsge3tsnbr@mail.mercadolibre.cl
  [phone] => Array   (   [area_code] => 01   [extension] =>   [number] => 1111-1111   [verified] =>   )       [alternative_phone] => Array   (   [area_code] =>   [extension] =>   [number] =>   )       [first_name] => Test   [last_name] => Test   [billing_info] => Array   (   [doc_type] => RUT   [doc_number] => 111111111   )       )       [seller] => Array   (   [id] => 286141812   [nickname] => TETE7457268   => ttest.bqksxtj+2-oge2tomzsge3tsmzu@mail.mercadolibre.cl   [phone] => Array   (   [area_code] => 01   [extension] =>   [number] => 1111-1111   [verified] =>   )       [alternative_phone] => Array   (   [area_code] =>   [extension] =>   [number] =>   )       [first_name] => Test   [last_name] => Test   )       [payments] => Array   (   [0] => Array   (   [id] => 3252227471   [order_id] => 1573217901   [payer_id] => 286200796   [collector] => Array   (   [id] => 286141812   )       [card_id] => 235694859   [site_id] => MLC   [reason] => Burlete 103 Rollo 100 Mts Negro   [payment_method_id] => visa   [currency_id] => CLP   [installments] => 6   [issuer_id] => 168   [atm_transfer_reference] => Array   (   [company_id] =>   [transaction_id] => 1234567   )       [coupon_id] =>   [activation_uri] =>   [operation_type] => regular_payment   [payment_type] => credit_card   [available_actions] => Array   (   [0] => refund   )       [status] => approved   [status_code] =>   [status_detail] => accredited   [transaction_amount] => 10000   [shipping_cost] => 2000   [coupon_amount] => 0   [overpaid_amount] => 0   [total_paid_amount] => 12000   [installment_amount] => 2000   [deferred_period] =>   [date_approved] => 2017-12-15T09:28:01.000-04:00   [authorization_code] => 1234567   [transaction_order_id] =>   [date_created] => 2017-12-15T09:27:59.000-04:00   [date_last_modified] => 2017-12-15T09:28:04.000-04:00   )       )       [coupon] => Array   (   [id] =>   [amount] => 0   )       [tags] => Array   (   [0] => not_delivered   [1] => paid   )       [total_amount] => 10000   [total_amount_with_shipping] => 12000  

[paid_amount] => 12000

 

 

Cuando se dignaran a actualizar los manuales???

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Sign in to follow this