SHARE
TWEET

Untitled

a guest Jan 27th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $params = array(
  2.         'system' => array(
  3.             'validate' => 0,//1 - only validates the data, 0 - creates a shipment
  4.             'only_calculate' => 0,//1 - only calculates the price for delivery, 0 - creates a shipment
  5.             'response_type' => 'XML',//'email_errors_to' => 'tihomir@tivart.com',// request will be async, and sends mail with errors (for big requests with multiple shipments)
  6.         ), 'client' => array (
  7.             'username' => 'andika',
  8.             'password' => 'andika2001',
  9.             ),
  10.         'loadings' => array(
  11.             'row' => array(
  12.                 'sender' => array(
  13.                     'name' => "Димка Димова",
  14.                     'name_person' => "Димка Димова",
  15.                     'email' => 'info@andika.bg',
  16.                     'phone_num' => '0876329729',
  17.                     'city' => 'Бургас',
  18.                     'post_code' => 8000,
  19.                     'office_code' => 8011,//if the delivery is from office
  20.                     'quarter' => '',
  21.                     'street' => '',
  22.                     'street_num' =>'',
  23.                     'street_bl' => '',
  24.                     'street_vh' => '',
  25.                     'street_et' => '',
  26.                     'street_ap' => '',
  27.                     'street_other' => ''
  28.                 ),
  29.                 'receiver' => array(
  30.                     'name' => post('name'),
  31.                     'name_person' => post('name'),
  32.                     'email' => post('email'),
  33.                     'phone_num' => post('phone_num'),
  34.                     'sms_no' => post('phone_num'),
  35.                     'city' => $cityTitle,
  36.                     'post_code' => $postcode,
  37.                     'office_code' => post('office_id'),//if the delivery is to office
  38.                     'quarter' => post('quarter'),
  39.                     'street' => post('street'),
  40.                     'street_num' => post('street_num'),
  41.                     'street_bl' => post('street_bl'),
  42.                     'street_vh' => post('street_vh'),
  43.                     'street_et' => post('street_et'),
  44.                     'street_ap' => post('street_ap'),
  45.                     'street_other' => post('street_other')),
  46.                 'payment' => array(
  47.                     'side' => 'RECEIVER',
  48.                     'method' => 'CASH',
  49.                     'key_word' => ''
  50.                 ),
  51.                 'shipment' => array(
  52.                     'shipment_type' => 'PACK',
  53.                     'description' => post('description'),
  54.                     'pack_count' => post('packages'),//pieces count
  55.                     'weight' => post('weight'),
  56.                     'tariff_sub_code' => $tariff,//delivery type from/to DOOR/OFFICE - DOOR_DOOR, DOOR_OFFICE, OFFICE_DOOR, OFFICE_OFFICE
  57.                     'pay_after_accept' => 0,//receiver may review the contents before paying the COD
  58.                     'pay_after_test' => 0,//receiver may test or try out the contents before paying the COD
  59.                 ),
  60.                 'services' => array(
  61.                     'oc' => '',//decalred value (insurance)
  62.                     'oc_currency' => 'BGN',//currency of the declared value
  63.                     'cd' => post('dc'),//COD - nalojen platej
  64.                     'cd_currency' => 'BGN',//currency of the COD
  65.                     'cd_agreement_num' => '',//agreement number for paying COD (ex. if cod amount will be paid via bank)
  66.                 ),)));
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