How am I suppose to get the shipping price for a tshirt without creating an order?

14/04/2015 00:22

Dylan Kingsberry

Went through the api and I don't find any method to get the shipping price without creating an order. I am trying to receive the shipping price and add it into the total price and display it to user before they are directed for payment. Is there any possible way to handle this?? Also, I don't see any method to update or delete the order via api??
14/04/2015 08:41

Andrew Lyle

Hi Dylan,

We offer all of our pricing on our Pricing Page here:

We don't have an API that can tell you pricing before the order is placed, only after.

I would recommend creating your own shipping table and charge customers accordingly. Your pricing should be hire than tshirtgang's pricing in order to make a profit off each sale.


Developer / Project Manager
Support Ticket
Twitter: @phpandrew
14/04/2015 10:05

Dylan Kingsberry

got it..

14/04/2015 21:12

Dylan Kingsberry

Hi Andrew!

I am not sure how but recently createproduct api is returning Error: 500 and I am not being able to proceed my test. Here, is the detail array from curl:

[EXE] =>
[INF] => Array
[url] =>
[content_type] =>
[http_code] => 500
[header_size] => 0
[request_size] => 760
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 2.807892
[namelookup_time] => 0.000341
[connect_time] => 0.027815
[pretransfer_time] => 0.10189
[size_upload] => 491
[size_download] => 0
[speed_download] => 0
[speed_upload] => 174
[download_content_length] => -1
[upload_content_length] => 491
[starttransfer_time] => 2.807874
[redirect_time] => 0
[certinfo] => Array

[redirect_url] =>

[ERR] => The requested URL returned error: 500
[ENO] => 22

can you please look into this and let me know .. you help is much appreciated..

14/04/2015 22:01

Dylan Kingsberry

FYI: Also, yesterday night my time, it wasn't creating product as well but this morning its creating the product but not returning any xml response but the above error..

8699984 this is the product ID I just tried creating and it was successful but no xml response..
14/04/2015 22:30

Andrew Lyle

Hi Dylan,

I'm not seeing any issues with the CreateProduct api, there appears to be people uploading successfully as I type.

Can you open a Support Ticket with the XML you are using or send it to

Don't post your XML here, or if you do, please remove any authentication keys.

Developer / Project Manager
Support Ticket
Twitter: @phpandrew
14/04/2015 23:06

Dylan Kingsberry

Thank you for immediate response. Below is the xml code I am using:

$XML = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<key>My Key</key>
<title>T Shirt Title</title>
<appID>My AppID</appID>

$sml = xml_post($XML, "");

$res = simplexml_load_string($sml);

You must be logged in to reply.