Shirts.io is a t-shirt printing and fulfillment platform that lets you print and ship shirts anywhere in the world on demand.
Creating an account is simple and quick! Create an account here.
After creating an account, you will be given a unique API key to grant you access to the Shirts.io API.
The Shirts.io API is broken up into four main components:
- Products API
- View our entire product selection
- Access thousands of high-quality product images
- View product specifications, available colors, available sizes
- Check stock levels before placing an order
- Quote API
- Get an exact quote before placing an order
- Order API
- Place an order
- Upload artwork and all order details
- Status API
- Check the current status of your order
- Receive tracking numbers when available
You can learn more by reading the API Manual
Obtain the latest version at:
git clone https://github.com/shirtsio/shirtsio-php
To get started, add the following to your PHP script:
require_once("/path/to/shirtsio-php/lib/Shirtsio.php");
Simple usage looks like:
Shirtsio::setApiKey('0ef58f89c6c8d0ce3f71e4ab3537db4e24d6ac40');
$categories_resp = Products::list_categories();
print_r($categories_resp);
Our API uses an API key authentication system. When you create an account, you will be given a unique API key. Every call you make through the shirts.io API must include this key.
HTTP Status Code Summary
200 OK - Request successfully delivered.
400 Bad Request - Parameters invalid.
401 Unauthorized - API key was invalid or deactivated.
402 Request Failed - Request failed on server end.
xxsml - 2XSmall
xsml - XSmall
sml - Small
med - Medium
lrg - Large
xlg - XLarge
xxl - 2XLarge
xxxl - 3XLarge
xxxxl - 4XLarge
xxxxxl - 5XLarge
xxxxxxl - 6XLarge
Please see https://www.shirts.io/docs/getting_started/ for the most up-to-date documentation.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request