SHARE
TWEET

Untitled

a guest Jan 27th, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "order": {
  3.         "id": 450789469,
  4.         "created_at": "2008-01-10T11:00:00-05:00",
  5.         "updated_at": "2008-01-10T11:00:00-05:00",
  6.         "closed_at": null,
  7.         "cancelled_at": null,
  8.         "cancel_reason": null,
  9.         //Colocar los timestamp de cada estado ...
  10.         "payment": "", //tipo de pago quee realizará el cliente (Cheque, Efectivo, Credito)
  11.         "total_price": "598.94", //Valor a pagar
  12.         "subtotal_price": "597.00", //Total antes de eimpuestos
  13.         "total_tax": "11.94", //Total de impuestos
  14.         "actual_status": "",
  15.         "total_discounts": "10.00", //Total de descuentos
  16.         //Aquí abajo están los detalles de los descuentos
  17.         "discount_applications": [
  18.             {
  19.                 "type": "discount_code",
  20.                 "value": "10.0",
  21.                 "value_type": "percentage"
  22.             }
  23.         ],
  24.         "discount_codes": [
  25.             {
  26.                 "code": "TENOFF",
  27.                 "amount": "10.00",
  28.                 "type": "percentage"
  29.             }
  30.         ],
  31.         "shipping_address": {
  32.             "first_name": "Felipe",
  33.             "last_name": "Castilla",
  34.             "address1": "La Concepción 141",
  35.             "address2": "Oficina 501",
  36.             "phone": "+56973719471",
  37.             "commune": "Providencia",
  38.             "region": "Region Metropolitana",
  39.             "business_name": "I 2B Technologies S.A", //Razón social
  40.             "latitude": 45.41634,
  41.             "longitude": -75.6868
  42.         },
  43.         "payment_details": {
  44.             "type": "Cheque"
  45.         },
  46.         "customer": {
  47.             "id": 207119551,
  48.             "email": "bob.norman@hostmail.com",
  49.             "first_name": "Felipe",
  50.             "last_name": "Castilla",
  51.             "address1": "La Concepción 141",
  52.             "address2": "Oficina 501",
  53.             "phone": "+56973719471",
  54.             "commune": "Providencia",
  55.             "region": "Region Metropolitana",
  56.             "business_name": "I 2B Technologies S.A", //Razón social
  57.             "latitude": 45.41634,
  58.             "longitude": -75.6868
  59.         }
  60.         "line_items": [
  61.             {
  62.                 "sku_id": 39072856,
  63.                 "nombre": "coca-cola xxxx",
  64.                 "quantity": 1,
  65.                 "sku": "IPOD2008GREEN",
  66.                 "vendor": null,
  67.                 "product_id": 632910392,
  68.                 "price": "199.00",
  69.                 "total_discount": "0.00",
  70.                 "discount_applications": [
  71.                     {
  72.                         "type": "discount_code",
  73.                         "value": "10.0",
  74.                         "value_type": "percentage"
  75.                     }
  76.                 ],
  77.                 "discount_codes": [
  78.                     {
  79.                         "code": "TENOFF",
  80.                         "amount": "10.00",
  81.                         "type": "percentage"
  82.                     }
  83.                 ],
  84.             }
  85.         ]
  86. }
  87. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top