Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $params = array(
- 'system' => array(
- 'validate' => 0,//1 - only validates the data, 0 - creates a shipment
- 'only_calculate' => 0,//1 - only calculates the price for delivery, 0 - creates a shipment
- 'response_type' => 'XML',//'email_errors_to' => 'tihomir@tivart.com',// request will be async, and sends mail with errors (for big requests with multiple shipments)
- ), 'client' => array (
- 'username' => 'andika',
- 'password' => 'andika2001',
- ),
- 'loadings' => array(
- 'row' => array(
- 'sender' => array(
- 'name' => "Димка Димова",
- 'name_person' => "Димка Димова",
- 'email' => 'info@andika.bg',
- 'phone_num' => '0876329729',
- 'city' => 'Бургас',
- 'post_code' => 8000,
- 'office_code' => 8011,//if the delivery is from office
- 'quarter' => '',
- 'street' => '',
- 'street_num' =>'',
- 'street_bl' => '',
- 'street_vh' => '',
- 'street_et' => '',
- 'street_ap' => '',
- 'street_other' => ''
- ),
- 'receiver' => array(
- 'name' => post('name'),
- 'name_person' => post('name'),
- 'email' => post('email'),
- 'phone_num' => post('phone_num'),
- 'sms_no' => post('phone_num'),
- 'city' => $cityTitle,
- 'post_code' => $postcode,
- 'office_code' => post('office_id'),//if the delivery is to office
- 'quarter' => post('quarter'),
- 'street' => post('street'),
- 'street_num' => post('street_num'),
- 'street_bl' => post('street_bl'),
- 'street_vh' => post('street_vh'),
- 'street_et' => post('street_et'),
- 'street_ap' => post('street_ap'),
- 'street_other' => post('street_other')),
- 'payment' => array(
- 'side' => 'RECEIVER',
- 'method' => 'CASH',
- 'key_word' => ''
- ),
- 'shipment' => array(
- 'shipment_type' => 'PACK',
- 'description' => post('description'),
- 'pack_count' => post('packages'),//pieces count
- 'weight' => post('weight'),
- 'tariff_sub_code' => $tariff,//delivery type from/to DOOR/OFFICE - DOOR_DOOR, DOOR_OFFICE, OFFICE_DOOR, OFFICE_OFFICE
- 'pay_after_accept' => 0,//receiver may review the contents before paying the COD
- 'pay_after_test' => 0,//receiver may test or try out the contents before paying the COD
- ),
- 'services' => array(
- 'oc' => '',//decalred value (insurance)
- 'oc_currency' => 'BGN',//currency of the declared value
- 'cd' => post('dc'),//COD - nalojen platej
- 'cd_currency' => 'BGN',//currency of the COD
- 'cd_agreement_num' => '',//agreement number for paying COD (ex. if cod amount will be paid via bank)
- ),)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement