delete_bundle


Remove completely a bundle.

This call delete the bundle linked address and remove the link on the basket products.

After performing this call the products will return to show the original addresses.


Call parameters:


Parameter

Required

Note

uid

yes

Id client

pid

yes

Id Portal

lid

yes

id Language

key

yes

Autentication Code

api_version  

yes

API Version.

request

yes

Name of function requested

bundle

yes

Bundle name to remove



Reply parameters:


Parameter

Always present

Note

success

si

true o false, indicate if operation has been completed or not

rc

si

return code.

message

si

Error Message



This call can have the following error messages:


  • -2  Access Denied
  • -4  Fatal Error: There was an internal Error. Please retry or contact webmaster@wwt.it
  • -14 Unable to proceed. User does not have permission to perform this action
  • -29 The Bundle specified does not exist



Json request structure:


{

    "uid": 12345,

    "pid": 2,

    "lid": 1,

    "key": "VtKpudWnzRBioQeBKQXPBdSpamppUTw8",

    "api_version": "1.0.0",

    "request": "delete_bundle",

    "bundle": "A",

    "items": "1;2",

    "shipping_item" => "1"

}



Example php call:



$data = array(

    "uid"           => 12345,

    "pid"           => 2,

    "lid"           => 1,

    "key"           => "VtKpudWnzRBioQeBKQXPBdSpamppUTw8",

    "api_version"   => "1.0.0",

    "request"       => "delete_bundle"

);



$data = array('data' => json_encode($data));

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://dev.dropshippingb2b.com/api/");

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,FALSE);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

$ce = curl_exec($ch);


echo $ce;


curl_close($ch);






Example of a positive response:


{

   "success":true,

   "rc":0,

   "message":""

}



Example of negative response:


{

   "success":false,

   "rc":-29,

   "message":"The Bundle specified does not exist"

}




























































Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator