Country/State Code API

To create an order, you have to use country and state codes to specify the recipient address. Both country code and state code are mandatory for orders to the USA, Canada and Australia. For other countries only the country code is needed to create an order.

Country codes are based on the ISO 3166-1 alpha-2 standard and are two letters long.

State codes are based on the ISO 3166-2 standard by omitting the country code part of the code and are used only for the USA, Canada and Australia.

All state/country codes that Printful accepts can be listed by this API.

Retrieve country list

GET https://api.printful.com /countries

Returns list of countries and states that are accepted by the Printful.
Input parameters:
None
Response format:
code integer Response status code 200
result Country [ ] Array of countries
code string Country code
name string Country name
states State [ ] Array of states
code string State code
name string State name
API key
Execute
Response data:
{
    "code": 200,
    "result": [{
        "code": "AF",
        "name": "Afghanistan",
        "states": null
    }, {
        "code": "AL",
        "name": "Albania",
        "states": null
    }, {
        "code": "DZ",
        "name": "Algeria",
        "states": null
    },

    ...

    {
        "code": "GB",
        "name": "United Kingdom",
        "states": null
    }, {
        "code": "US",
        "name": "United States",
        "states": [{
            "code": "AK",
            "name": "Alaska"
        }, {
            "code": "AL",
            "name": "Alabama"
        }, {
            "code": "AS",
            "name": "American Samoa"
        },

        ...
        ]
    },

    ...
    ]
}

Ready to try Printful ?

Get Me Started

Printing is what we do best.

Trusted to print 2 371 863 shirts since 2013