Advertisement
MrViSiOn

MasterYield: Va bien

Apr 24th, 2024 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.15 KB | None | 0 0
  1. curl --location 'http://eurohotel.masteryield.com:40150/add_charge' \
  2. --header 'api-key: apirest-63f49b30ef842' \
  3. --header 'Content-Type: application/json' \
  4. --data-raw '{
  5.    "id_ticket": "2016882",
  6.    "num_ticket": "8392",
  7.    "id_terminal": "1",
  8.    "date_new": "2024-04-21 15:07:40",
  9.    "id_mesa": null,
  10.    "dto": "0",
  11.    "nickname_ticket": null,
  12.    "employee_id": "10113",
  13.    "pax": "0",
  14.    "lounge_id": null,
  15.    "stock_id": "2",
  16.    "num_invoice": null,
  17.    "return_invoice_serie": "1",
  18.    "sales_day_id": "315",
  19.    "sales_shift_id": "2",
  20.    "installation": "GB442431952",
  21.    "notes": null,
  22.    "change": "0.000000",
  23.    "pending_amount": "0.00000000",
  24.    "return_invoice": "0",
  25.    "return_invoice_num": null,
  26.    "return_invoice_id": "0",
  27.    "date_pay": "2024-04-21 15:08:34",
  28.    "amount_charged": "17.400000",
  29.    "points_has": null,
  30.    "points_card": null,
  31.    "points_total": null,
  32.    "descanjeo_articulo": null,
  33.    "points_type": null,
  34.    "prepaid": "0",
  35.    "points_id_promo": null,
  36.    "delivery_date": null,
  37.    "rider_id": null,
  38.    "address_id": null,
  39.    "paywith": "0.00000000",
  40.    "in_balance": "0",
  41.    "lounge_name": null,
  42.    "date_open_day": "2024-04-21 07:31:11",
  43.    "ticket_lines": [
  44.      {
  45.        "id_lin_ticket": "36617",
  46.        "id_item": "44",
  47.        "amount_item": "3.800",
  48.        "ud_item": "1.000",
  49.        "dto_amount": "0.000",
  50.        "dto_perc": "0.00",
  51.        "total_amount": "3.80000000",
  52.        "description_item": "Coca Cola Zero Cristal",
  53.        "id_variation": "0",
  54.        "tax_perc": "10.00",
  55.        "tax_amount": "3.45454545",
  56.        "id_tax": "2",
  57.        "tax": "0.34545455",
  58.        "parent_lin": null,
  59.        "menu_lin": null,
  60.        "invitation": null,
  61.        "consumption_employees": "0",
  62.        "descrip_kitchen": "Coca Cola Zero",
  63.        "dto_proportional": "0.000",
  64.        "id_family_sale": "9",
  65.        "principal": "0",
  66.        "compound": "0",
  67.        "inventory": "1",
  68.        "tyc": "0",
  69.        "date_sale": "2024-04-21 15:07:41",
  70.        "detail": [
  71.          {
  72.            "id_item": null,
  73.            "description_item": null,
  74.            "id_tax": null,
  75.            "ud_item": null,
  76.            "amount_item": null,
  77.            "id_variation": null,
  78.            "tax_perc": null,
  79.            "tax_amount": null,
  80.            "tax": null,
  81.            "descrip_kitchen": null,
  82.            "id_stock": null
  83.          }
  84.        ]
  85.      },
  86.      {
  87.        "id_lin_ticket": "36618",
  88.        "id_item": "44",
  89.        "amount_item": "3.800",
  90.        "ud_item": "1.000",
  91.        "dto_amount": "0.000",
  92.        "dto_perc": "0.00",
  93.        "total_amount": "3.80000000",
  94.        "description_item": "Coca Cola Zero Cristal",
  95.        "id_variation": "0",
  96.        "tax_perc": "10.00",
  97.        "tax_amount": "3.45454545",
  98.        "id_tax": "2",
  99.        "tax": "0.34545455",
  100.        "parent_lin": null,
  101.        "menu_lin": null,
  102.        "invitation": null,
  103.        "consumption_employees": "0",
  104.        "descrip_kitchen": "Coca Cola Zero",
  105.        "dto_proportional": "0.000",
  106.        "id_family_sale": "9",
  107.        "principal": "0",
  108.        "compound": "0",
  109.        "inventory": "1",
  110.        "tyc": "0",
  111.        "date_sale": "2024-04-21 15:07:41",
  112.        "detail": [
  113.          {
  114.            "id_item": null,
  115.            "description_item": null,
  116.            "id_tax": null,
  117.            "ud_item": null,
  118.            "amount_item": null,
  119.            "id_variation": null,
  120.            "tax_perc": null,
  121.            "tax_amount": null,
  122.            "tax": null,
  123.            "descrip_kitchen": null,
  124.            "id_stock": null
  125.          }
  126.        ]
  127.      },
  128.      {
  129.        "id_lin_ticket": "36619",
  130.        "id_item": "44",
  131.        "amount_item": "3.800",
  132.        "ud_item": "1.000",
  133.        "dto_amount": "0.000",
  134.        "dto_perc": "0.00",
  135.        "total_amount": "3.80000000",
  136.        "description_item": "Coca Cola Zero Cristal",
  137.        "id_variation": "0",
  138.        "tax_perc": "10.00",
  139.        "tax_amount": "3.45454545",
  140.        "id_tax": "2",
  141.        "tax": "0.34545455",
  142.        "parent_lin": null,
  143.        "menu_lin": null,
  144.        "invitation": null,
  145.        "consumption_employees": "0",
  146.        "descrip_kitchen": "Coca Cola Zero",
  147.        "dto_proportional": "0.000",
  148.        "id_family_sale": "9",
  149.        "principal": "0",
  150.        "compound": "0",
  151.        "inventory": "1",
  152.        "tyc": "0",
  153.        "date_sale": "2024-04-21 15:07:41",
  154.        "detail": [
  155.          {
  156.            "id_item": null,
  157.            "description_item": null,
  158.            "id_tax": null,
  159.            "ud_item": null,
  160.            "amount_item": null,
  161.            "id_variation": null,
  162.            "tax_perc": null,
  163.            "tax_amount": null,
  164.            "tax": null,
  165.            "descrip_kitchen": null,
  166.            "id_stock": null
  167.          }
  168.        ]
  169.      },
  170.      {
  171.        "id_lin_ticket": "36620",
  172.        "id_item": "10",
  173.        "amount_item": "3.000",
  174.        "ud_item": "1.000",
  175.        "dto_amount": "0.000",
  176.        "dto_perc": "0.00",
  177.        "total_amount": "3.00000000",
  178.        "description_item": "Capuccino",
  179.        "id_variation": "0",
  180.        "tax_perc": "10.00",
  181.        "tax_amount": "2.72727273",
  182.        "id_tax": "2",
  183.        "tax": "0.27272727",
  184.        "parent_lin": null,
  185.        "menu_lin": null,
  186.        "invitation": null,
  187.        "consumption_employees": "0",
  188.        "descrip_kitchen": "Capuccino",
  189.        "dto_proportional": "0.000",
  190.        "id_family_sale": "4",
  191.        "principal": "0",
  192.        "compound": "0",
  193.        "inventory": "0",
  194.        "tyc": "0",
  195.        "date_sale": "2024-04-21 15:07:47",
  196.        "detail": [
  197.          {
  198.            "id_item": null,
  199.            "description_item": null,
  200.            "id_tax": null,
  201.            "ud_item": null,
  202.            "amount_item": null,
  203.            "id_variation": null,
  204.            "tax_perc": null,
  205.            "tax_amount": null,
  206.            "tax": null,
  207.            "descrip_kitchen": null,
  208.            "id_stock": null
  209.          }
  210.        ]
  211.      },
  212.      {
  213.        "id_lin_ticket": "36621",
  214.        "id_item": "10",
  215.        "amount_item": "3.000",
  216.        "ud_item": "1.000",
  217.        "dto_amount": "0.000",
  218.        "dto_perc": "0.00",
  219.        "total_amount": "3.00000000",
  220.        "description_item": "Capuccino",
  221.        "id_variation": "0",
  222.        "tax_perc": "10.00",
  223.        "tax_amount": "2.72727273",
  224.        "id_tax": "2",
  225.        "tax": "0.27272727",
  226.        "parent_lin": null,
  227.        "menu_lin": null,
  228.        "invitation": null,
  229.        "consumption_employees": "0",
  230.        "descrip_kitchen": "Capuccino",
  231.        "dto_proportional": "0.000",
  232.        "id_family_sale": "4",
  233.        "principal": "0",
  234.        "compound": "0",
  235.        "inventory": "0",
  236.        "tyc": "0",
  237.        "date_sale": "2024-04-21 15:07:47",
  238.        "detail": [
  239.          {
  240.            "id_item": null,
  241.            "description_item": null,
  242.            "id_tax": null,
  243.            "ud_item": null,
  244.            "amount_item": null,
  245.            "id_variation": null,
  246.            "tax_perc": null,
  247.            "tax_amount": null,
  248.            "tax": null,
  249.            "descrip_kitchen": null,
  250.            "id_stock": null
  251.          }
  252.        ]
  253.      }
  254.    ],
  255.    "client": {
  256.      "cliente_id": "136912114",
  257.      "cliente_nombre": "WISSNER, MEIKE",
  258.      "cliente_nif": "LSRX1MZM0",
  259.      "cliente_direccion": "KLEEBERCEB sne sz",
  260.      "cliente_habitual": "0",
  261.      "cliente_localidad": "BonBUQ",
  262.      "cliente_provincia": null,
  263.      "cliente_pais": null,
  264.      "cliente_cp": null,
  265.      "cliente_acu_totalventas": "17.40",
  266.      "cliente_acu_totalpagos": "17.40",
  267.      "cliente_acu_ultimaventa": "2024-04-21",
  268.      "cliente_acu_importeultimaventa": "17.40",
  269.      "cliente_foto": null,
  270.      "cliente_re": "0",
  271.      "cliente_id_tarifa": null,
  272.      "cliente_dto_fijo": null,
  273.      "cliente_credito": "0.00",
  274.      "cliente_telefono1": null,
  275.      "cliente_telefono2": null,
  276.      "cliente_identificador": null,
  277.      "cliente_huella_digital": null,
  278.      "cliente_aplicar_dto_fijo": "0",
  279.      "cliente_e_mail": "MWISSN.592502@GUEST.BOOKING.COM",
  280.      "cliente_clave_pulsera": null,
  281.      "cliente_activar_pulsera": null,
  282.      "cliente_idclit": null,
  283.      "cliente_adicional1": null,
  284.      "cliente_adicional2": null,
  285.      "cliente_adicional3": null,
  286.      "cliente_adicional4": null,
  287.      "cliente_tarjeta_activa": null,
  288.      "cliente_tarjeta_puntos": null,
  289.      "cliente_id_cliente_relacion": null,
  290.      "cliente_requiv": "0",
  291.      "cliente_id_fpago": null,
  292.      "cliente_abrir_mant": null,
  293.      "cliente_subir_nube": "0"
  294.    },
  295.    "hotel": {
  296.      "room": "221",
  297.      "bookingno": 2311984,
  298.      "group": "1"
  299.    },
  300.    "payments": {
  301.      "payment_1_id": "100",
  302.      "payment_1": "CARGO HABITACION",
  303.      "payment_1_amount": "17.400000",
  304.      "payment_2_id": null,
  305.      "payment_2": null,
  306.      "payment_2_amount": "0.000000",
  307.      "payment_3_id": null,
  308.      "payment_3": null,
  309.      "payment_3_amount": "0.000000"
  310.    },
  311.    "cashno": 1,
  312.    "shift": 2
  313.  }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement