Estructura normal
Este endpoint permite consultar las ordenes de todos los canales, regresando la información tal cual la entrega el canal.
Estructura
Yuju te entrega la estructura del canal que utilices al que pertenece el pedido.
Ejemplo:
- Línea 1: SKU 1 / 1 pieza.
- Línea 2: SKU 2 / 3 piezas.
Notas Importantes:
- Para órdenes de carrito, el
id_order
a usar debe ser elpack_id
.- Cuando se unifican ítems en uno solo, se genera un nuevo
id_item
basado en los ítems que lo componen.
Endpoint:
GET https://api.tp.yuju.io/orders/?id_channel=13&id_order=50035
Parámetros:
Parámetro | Descripción |
---|---|
id_channel | id del canal |
id_order | id de la orden |
Ejemplo de respuesta:
{
"id_shop": 1084395,
"id_channel": 4301,
"id_order": "50035",
"actions": [
"cancel",
"set_ready_to_ship",
"set_shipped",
"set_delivered"
],
"billing_address": {
"id": null,
"address": "Cra 30 # 90 90",
"neighborhood": "Mexico",
"region": "region",
"city": "Mexico",
"country": "México",
"postal_code": "83200",
"reference": null,
"name": null,
"phone": null,
"email": null,
"taxid": "FUNK671228PH6",
"use_cfdi": null,
"extra": null,
"street_name": null,
"street_number": null,
"street_int_number": null
},
"cart_orders": null,
"coupon": null,
"currency": "mxn",
"customer": {
"first_name": "victor",
"last_name": "martinez",
"email": "[email protected]",
"phone": "66691",
"phone2": null,
"nickname": null,
"customer_id": null,
"doc_type": "cc",
"doc_number": "112198792"
},
"customer_detail": null,
"delivery_deadline": null,
"discounts": [],
"extra": null,
"extra_charges": [],
"ff_type": "fbm",
"fulfillment_type": null,
"invoice": {
"error": "",
"pk": "",
"required": "1",
"rfc": "FUNK671228PH6",
"status": "pending"
},
"marketplace_fee": 15.0,
"meli_chat_status": null,
"notes": false,
"order_created_at": "2023-01-11T17:14:38.640000",
"order_updated_at": "2023-01-11T17:14:38.640000",
"paid_total": 195.0,
"paid_total_to_seller": null,
"payment_accredited_at": "2022-12-28T06:24:00",
"payment_detail": null,
"payment_method": "Tarjeta Credito",
"payment_references": null,
"progress": [
{
"name": "paid",
"status": "done"
},
{
"name": "ready_to_ship",
"status": "pending"
},
{
"name": "shipped",
"status": "pending"
},
{
"name": "delivered",
"status": "pending"
}
],
"reference": "50035",
"seller_shipping_cost": null,
"shipping_address": {
"id": null,
"address": "cr 20c #98-115",
"street_number": "115",
"street_name": "123",
"neighborhood": "Jordan",
"region": "Meta",
"city": "Villavicencio",
"country": "Colombia",
"postal_code": null,
"reference": null,
"first_name": "victor",
"last_name": "martinez",
"phone": "6666666",
"email": "[email protected]",
"lat": null,
"lon": null
},
"shipping_cost": 38.0,
"shipping_detail": null,
"status": "open",
"tags": null,
"total": 195.0,
"items": [
{
"id_shop": 1084395,
"id_channel": 4301,
"id_order": "50035",
"id_item": "sku26",
"carrier": "carrier-example",
"channel_sku": "sku26",
"combo_components": [],
"comments": null,
"coupon_code": null,
"coupon_value": null,
"currency": "mxn",
"delivery_time": null,
"discounts": [],
"extra": null,
"extra_charges": [],
"ff_type": "fbm",
"id_product": null,
"is_combo": false,
"marketplace_fee": null,
"name": "sku26",
"price": 195.0,
"product": {
"id_product": null,
"id_parent": null,
"upc": null,
"ean": null,
"isbn_10": null,
"isbn_13": null,
"color": null,
"size": null,
"custom_variation": null,
"custom_variation_name": null,
"stock": null,
"price": null,
"color_text": null,
"discount": null,
"discount_to": null,
"discount_from": null,
"special_price": null,
"special_price_amz": null,
"special_price_linio": null,
"secondary_color": null,
"asin": null,
"gtin": null,
"jan": null,
"mpn": null,
"part_number": null,
"model": null,
"brand": null,
"official_store_id": null,
"images": [],
"is_virtual": null,
"name": null,
"custom_s1": null,
"custom_s2": null,
"custom_s3": null,
"custom_s4": null,
"custom_s5": null,
"custom_i1": null,
"custom_i2": null,
"custom_i3": null,
"custom_i4": null,
"custom_i5": null,
"custom_f1": null,
"custom_f2": null,
"custom_f3": null,
"custom_f4": null,
"custom_f5": null,
"cost": null,
"channel_stock": null,
"shipping_width": null,
"shipping_height": null,
"shipping_depth": null,
"dimensions_unit": null,
"weight": null,
"weight_unit": null,
"tags": null,
"msrp": null,
"product_code_sat": null,
"measure_unit_code_sat": null
},
"product_id": "sku26",
"product_original_price": null,
"product_special_price": null,
"providers": null,
"quantity": 1,
"shipments": "[{\"id\": null, \"tracking_code\": null, \"quantity\": 1, \"carrier\": null, \"tracking_url\": null, \"label_url\": null, \"status_history\": {\"date_delivered\": null, \"date_created\": null, \"date_shipped\": null, \"date_first_visit\": null, \"date_returned\": null, \"date_delivered_estimated\": null, \"date_ready_to_ship\": null, \"date_not_delivered\": null, \"date_handling\": null, \"date_first_printed\": null, \"date_cancelled\": null}, \"status\": \"shipped\", \"buffering_date\": null}]",
"sku": "sku26",
"status": "paid",
"tracking_code": "asdasdasdasd"
}
]
}
Updated 8 months ago