Obtener los Detalles de una Orden¶
-
GET
https://api.software.madkting.com/shops/
(shop_pk)/marketplace/
(marketplace_pk)/orders/
(order_pk)/
¶ Parameters: - shop_pk – El id de la tienda de la que se quiere obtener la orden.
- markplace_pk – El id del marketplace del que se quiere obtener la orden.
- order_pk – El id de la orden de la que se quiere obtener los detalles.
Objeto de respuesta Órdenes
Status Codes: - 200 OK – Ok.
- 404 Not Found – El id de la tienda, marketplace o orden no existe.
- 500 Internal Server Error – Error interno.
Ejemplo de petición¶
GET https://api.software.madkting.com/shops/82/marketplace/13/orders/1209738736/ HTTP/1.1
Accept: application/json
Authorization: Token 54f2d8bcfc49e7821da31a83ab95e40213c0a5c1
Ejemplo de respuesta¶
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
Allow: GET, OPTIONS
{
"actions": [
"feedback",
"manage_notes",
"refund"
],
"billing_address": null,
"coupon": null,
"created_at": "2016-10-31T21:41:14",
"currency": "mxn",
"customer": {
"email": "tlloyd@gmail.com",
"first_name": "Nicole",
"last_name": "Thomas",
"phone": "(None)2622283515"
},
"delivery_deadline": null,
"items": [
{
"carrier": null,
"comments": null,
"currency": "MXN",
"delivery_time": null,
"item_pk": "MLM964332322",
"name": "Soporte Cargador Usb Flexible Iphone 6 Cable Holder Lighting",
"price": 199.0,
"product_pk": 123,
"product_url": "https://api.software.madkting.com/shops/82/products/123/",
"quantity": 1,
"sku": null,
"status": "delivered",
"tracking_code": null
}
],
"notes": false,
"paid_total": 295.0,
"payment_method": "credit_card",
"pk": 1229238536,
"progress": [
{
"name": "paid",
"status": "done"
},
{
"name": "ready_to_ship",
"status": "done"
},
{
"name": "shipped",
"status": "done"
},
{
"name": "delivered",
"status": "done"
}
],
"reference": "1206718796",
"shipping_address": {
"address": "09610 Baker Passage",
"city": "South Emily",
"country": "Mexico",
"email": null,
"first_name": null,
"last_name": null,
"latitude": "-13.953822",
"longitude": "-13.953822",
"neighborhood": "Village Suite",
"phone": "1-170-206-9595",
"postal_code": "68387",
"reference": null,
"region": "Tamaulipas",
"street_name": "Baker Passage",
"street_number": "30406"
},
"status": "close",
"total": 295.0,
"updated_at": "2016-11-21T21:50:03"
}