What you can do
With the API your server can:
- Sign in and read your profile and organization details.
- List your approved card templates and the fields each one takes.
- Create a card (it starts as a draft), preview its front and back, update it, and finalize it.
- Search, fetch and delete cards, and see when a card was printed.
- Create a print job (an order), add and remove cards, get a price quote, check your balance, and submit it. Submitting is the step that pays and prints.
- Read your balance, your transactions and your shipping methods.
- Save and manage shipping addresses and contacts.
Orders submitted by 4 p.m. Eastern Time normally print and ship the same day. There is no minimum order.
What this reference leaves out: adding funds and canceling an order. To add funds, use Replenish Account in the customer portal. To cancel, call 888-980-6179 right away (see "Canceling a submitted job" under Print jobs). It documents no webhooks or other callbacks, so poll Fetch a print job if you need to watch an order.
Before you start
- A prepaid InstantCard account. The API works on your own organization only. Pay-as-you-go accounts and accounts that pay by card at checkout: talk to us before you use the API.
- An owner or admin login. The login must hold exactly one of those two roles. A login that holds both, or any other role, is refused at sign-in even with the right password.
- At least one approved template. A template that is still being designed, or is waiting for approval, is not available to the API.
- Funds in your balance. Submitting a print job is paid from your balance.
For an integration that runs unattended, email [email protected] and we will set up a login used only by that integration. It keeps working when people join, leave or change their passwords.
Keep your login and tokens on your server
Anyone holding a token can create cards and spend your balance. Call the API from your server only. Never call it from a web page, a mobile app or a browser extension, where anyone can read the token, and never commit a token to a code repository. To let people order from a web page, use an ICO order form instead: it keeps every credential off the page.
Prefer not to write code? Use an ICO order form or Zapier. See all the ways to order.
Base URL
Every address on this page is relative to this base URL:
https://core.instantcard.net/api/v2 Read the curl examples as copy-and-paste commands. They read three shell variables. Set them once, then paste any example as it is:
# Keep these on your server. Never put them in a web page or a code repository.
export IC_API="https://core.instantcard.net/api/v2"
export IC_TOKEN="{api_token}" # from Sign in, below
export IC_ORG="{org_id}" # from Your profile, below In the examples, ids you need to fill in are written in capitals, such as CARD_ID, JOB_ID, TEMPLATE_ID and SHIPPING_PROVIDER_ID. (Capitals, not braces, because curl treats {...} in a web address as a pattern.) In endpoint paths, the same ids are written {card_id}, {job_id} and so on.
{organization_id} in a path is your organization id from Your profile.
How an order works
Most integrations follow the same path from a new person to a card in the mail:
- Sign in to get a token, then read your profile once for your organization id.
- Find the template to use with List templates, and its fields with Template fields.
- Create a card. It starts as a draft.
- Preview it. If something is wrong, update it and preview again.
- Finalize it. Only finalized cards should be printed.
- Create a print job with the card ids, the number of copies, a shipping method and an address. To order several cards together, finalize them all first and create the job with all of their ids.
- Check the cost with Charge details and the funds with Check the balance, then submit the job straight away.
The full copy-and-paste recipe is in Order a card, start to finish.
An open print job is your cart
Until it is submitted, a print job your integration creates shows up as your cart in the customer portal. Cards anyone adds to the cart there go into that job, ship to its address and are paid for when it is submitted. So create and submit a job in the same run, and keep card ids, not an open job, between runs. If you stop before submitting (the balance is short, say), keep that job's id and submit it once you can, rather than creating another. There is no call to delete a print job.
Two more things to know:
- Every card in a print job is printed the same number of times. For different quantities, use separate print jobs.
- Jobs submitted by 4 p.m. Eastern Time are normally printed and shipped the same day, so check everything before you submit.
Order a card, start to finish
This is the whole path in order, from sign-in to a submitted order, with curl. It assumes the three shell variables above, and a card-data.json file for your template. The jq tool is used only to pick values out of the answers; any JSON reader will do.
Send card[data] as a JSON string
card[data] must be a string containing the JSON array. The --data-urlencode "card[data]@card-data.json" example reads the file and sends it as one text field.
Sign in. Get a token and keep it on your server.
Bash export IC_TOKEN=$(curl -s -X POST "$IC_API/authenticate" \ --data-urlencode "[email protected]" \ --data-urlencode "password={password}" | jq -r .auth_token)Read your organization id.
Bash export IC_ORG=$(curl -s "$IC_API/profile/me" -H "Authorization: Bearer $IC_TOKEN" | jq -r .organization_id)Pick a template and read its fields. Use the
idfrom the list asTEMPLATE_ID, then buildcard-data.jsonfrom the fields.Bash curl -s "$IC_API/organizations/$IC_ORG/card_templates" -H "Authorization: Bearer $IC_TOKEN" curl -s "$IC_API/organizations/$IC_ORG/card_templates/TEMPLATE_ID/fields" -H "Authorization: Bearer $IC_TOKEN"Create the card. It is a draft. Keep the
id.cURL curl -s -X POST "$IC_API/organizations/$IC_ORG/cards" \ -H "Authorization: Bearer $IC_TOKEN" \ --data-urlencode "card[card_template_id]=TEMPLATE_ID" \ --data-urlencode "card[data]@card-data.json"Preview it. Look at the front and back. If the answer says
"preview_available": false, wait a few seconds and ask again. To fix something, update the card with its complete data array and preview again.cURL curl -s "$IC_API/organizations/$IC_ORG/cards/CARD_ID/preview" -H "Authorization: Bearer $IC_TOKEN"Finalize it.
cURL curl -s -X PATCH "$IC_API/organizations/$IC_ORG/cards/CARD_ID/finalize" -H "Authorization: Bearer $IC_TOKEN"Choose a shipping method. Use the
idof a method from the list asSHIPPING_PROVIDER_ID. Ifphone_number_requiredis true for it, you will need a phone number in step 8.cURL curl -s "$IC_API/organizations/$IC_ORG/shipping_providers" --get --data "v=2.1" -H "Authorization: Bearer $IC_TOKEN"Create the print job with the card, the copies, the shipping method and the address. Keep the job
idasJOB_ID.cURL curl -s -X POST "$IC_API/organizations/$IC_ORG/print_jobs" \ -H "Authorization: Bearer $IC_TOKEN" \ --data-urlencode "print_job[card_ids]=[CARD_ID]" \ --data-urlencode "print_job[number_of_copies]=1" \ --data-urlencode "print_job[shipping_provider_id]=SHIPPING_PROVIDER_ID" \ --data-urlencode "print_job[address][contact][full_name]=Alex Example" \ --data-urlencode "print_job[address][contact][phone_number]=555-555-0100" \ --data-urlencode "print_job[address][address1]=100 Main St" \ --data-urlencode "print_job[address][city]=Springfield" \ --data-urlencode "print_job[address][state]=PA" \ --data-urlencode "print_job[address][zip_code]=19000" \ --data-urlencode "print_job[address][country]=US"To order more cards together, create and finalize each one, then add them to the same job.
Check the price and the funds. Stop here if
check_balanceanswersfalse, and keep the job id so you can submit it once your balance is topped up.Bash curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/charge_details" -H "Authorization: Bearer $IC_TOKEN" curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/check_balance" -H "Authorization: Bearer $IC_TOKEN"Submit. This pays for the order and sends it to print.
cURL curl -s -X POST "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/print" -H "Authorization: Bearer $IC_TOKEN"Confirm. If the submit timed out or you are not sure it went through, fetch the job and look at
status(Scheduled, orPending_Approvalif your organization approves orders first). Do not submit again until you have looked.cURL curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID" -H "Authorization: Bearer $IC_TOKEN"
Requests, responses and errors
- Requests are form fields, sent as
application/x-www-form-urlencodedormultipart/form-data, with bracketed names such ascard[card_template_id]. - Two values are JSON inside a string:
card[data]andprint_job[card_ids]. Send them as text that holds a JSON array, for exampleprint_job[card_ids]=[264214,264201]. A real array (print_job[card_ids][]=..., or an array in a JSON body) is not read. Creating a card then fails with a server error (500), adding cards to a print job fails, updating a card changes nothing, and creating a print job quietly makes an empty job. - Responses are JSON with
snake_casenames. - Ids are whole numbers.
- Addresses use
address1andaddress2, with no underscore before the number.address_1is ignored. - Money comes back as formatted text, such as
"$29.50". A negative amount is in parentheses,"($4.50)". - Lists are paged with
page(from 1) andpage_size(default 50). A few lists are paged only when you send both; each one says so. - Versions: some calls return extra fields when you add
?v=2.1(or higher). The examples on this page show the default response unless they say otherwise.
Check every response for an error, whatever its status
A missing, wrong or expired token does not return 401. It returns HTTP 200 with {"error":"Not Authenticated"}. A few other errors also arrive with 200. Treat any response with a top-level error field as a failure. A 401 from a print-job call usually means "Print job already processed" (the job was already submitted), not that you need to sign in again.
Do not retry a submit blindly
No call is idempotent. If a submit times out, fetch the job and look at its status before trying again, or you may order the same cards twice. A retry that answers "Print job already processed" means the first attempt went through.
Signing in
Sign in with the same email and password you use for InstantCard, and send the token you get back with every other call, in an Authorization: Bearer header.
Sign in
POST/authenticate
Exchanges an email and password for a token. No token needed.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
email | string | yes | The login of an owner or admin in your organization. |
password | string | yes | Its password. |
remember_me | string | no | Send any value to make the token last two weeks instead of eight hours. |
curl -s -X POST "$IC_API/authenticate" \
--data-urlencode "[email protected]" \
--data-urlencode "password={password}" { "auth_token": "{api_token}" } Good to know
- Send the email and password in the request body, as above, never in the URL, where they end up in server logs.
- Only a login with one role, owner or admin, can sign in. Anyone else, including a login that holds both roles, gets 401
Invalid credentialseven with the right password. - The token lasts 8 hours (two weeks with
remember_me). There is no refresh call. When you get{"error":"Not Authenticated"}, sign in again. - Use the token in a header on every other call:
Authorization: Bearer {api_token}.
Errors
| Status | Body | Meaning |
|---|---|---|
| 401 | {"error":"Invalid credentials"} | Wrong email or password, or the login is not a single-role owner or admin. |
Your profile
GET/profile/me
Who the token belongs to, and your organization id, which every other address needs.
curl -s "$IC_API/profile/me" -H "Authorization: Bearer $IC_TOKEN" {
"id": 12345,
"organization_id": 20001234,
"organization_name": "Example Organization",
"organization": {
"organization_id": 20001234,
"organization_name": "Example Organization",
"settings": { "public_settings": {} }
},
"email": "[email protected]",
"settings": {}
} Good to know
- Read
organization_idfrom here rather than typing it in. An id that is not your organization's answers 404Organization not found.
Keep profile tokens private
The profile response can also contain a long-lived token belonging to the login (it does with ?v=2.1 or higher). Do not log or store that response, and do not use that token. Sign in for one as above.
Templates
Templates are the card designs in your account. Design and approve them in InstantCard. The API reads them.
List templates
GET/organizations/{organization_id}/card_templates
The templates you can create cards from: your approved templates, and approved templates shared with you.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
include | string | no | Send fields to get each template's fields in the same answer. |
curl -s "$IC_API/organizations/$IC_ORG/card_templates" -H "Authorization: Bearer $IC_TOKEN" [
{ "id": 17280, "name": "Staff badge" },
{ "id": 17281, "name": "Volunteer badge" }
] A template that is still being designed or waiting for approval is not listed, and cannot be used to create cards.
Template fields
GET/organizations/{organization_id}/card_templates/{template_id}/fields
The fields a card on this template takes. Each one becomes an entry in card[data].
curl -s "$IC_API/organizations/$IC_ORG/card_templates/TEMPLATE_ID/fields" -H "Authorization: Bearer $IC_TOKEN" [
{ "type": "text", "token": "FullName", "label": "Full Name", "legacy_token": "DATA_1" },
{ "type": "text", "token": "Title", "label": "Title", "legacy_token": "DATA_2" },
{ "type": "image", "token": "Portrait", "label": "Portrait",
"dimensions": { "width": 119, "height": 146 }, "legacy_token": "PHOTO" }
] For a photo field, dimensions gives the frame's shape. Crop photos to that shape before you send them.
Price a template
GET/organizations/{organization_id}/card_templates/{template_id}/price
A quick price for a number of cards on a template, with shipping if you name a method.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
number_of_copies | integer | yes | How many cards. |
shipping_provider_id | integer | no | A shipping method, from Shipping methods. Adds shipping_price. |
curl -s "$IC_API/organizations/$IC_ORG/card_templates/TEMPLATE_ID/price" --get \
--data "number_of_copies=1" --data "shipping_provider_id=SHIPPING_PROVIDER_ID" \
-H "Authorization: Bearer $IC_TOKEN" { "card_price": "$7.25", "shipping_price": "$0.50" } card_price is the total for all the copies, not the price of one. For the amount you will actually be charged, use Charge details on the print job.
Cards
A card is one person's details on one template. It starts as a draft you can preview and change, and is finalized when it is ready to print.
Create a card
POST/organizations/{organization_id}/cards
Creates a draft card from a template and the values for its fields. Keep the id it returns: drafts do not appear in the card list.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
card[ | integer | yes | The template, from List templates. |
card[ | string (JSON array) | yes | A string holding a JSON array with one object per template field: {"type","token","label","value"}. Get type, token and label from Template fields. |
Save the card's values in a file, card-data.json:
[
{ "type": "text", "token": "FullName", "label": "Full Name", "value": "Alex Example" },
{ "type": "text", "token": "Title", "label": "Title", "value": "Volunteer" },
{ "type": "image", "token": "Portrait", "label": "Portrait", "value": "data:image/jpeg;base64,{base64_photo}" }
] Then send it. --data-urlencode "card[data]@card-data.json" reads the file and sends it as one text field:
curl -s -X POST "$IC_API/organizations/$IC_ORG/cards" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "card[card_template_id]=TEMPLATE_ID" \
--data-urlencode "card[data]@card-data.json" {
"id": 264214,
"organization_id": 20001234,
"card_template_id": 17280,
"data": [
{ "type": "text", "label": "Full Name", "token": "FullName", "value": "Alex Example" },
{ "type": "text", "label": "Title", "token": "Title", "value": "Volunteer" },
{ "type": "image", "label": "Portrait", "token": "Portrait", "value": "data:image/jpeg;base64,..." }
],
"last_printed_at": "",
"last_submitted_at": "",
"images": []
} The same call in Node.js 18 or newer (save as create-card.mjs and run node create-card.mjs):
import { readFile } from 'node:fs/promises';
const API = 'https://core.instantcard.net/api/v2';
const token = process.env.IC_TOKEN; // keep it on the server
const org = process.env.IC_ORG;
const photo = await readFile('photo.jpg');
const data = [
{ type: 'text', token: 'FullName', label: 'Full Name', value: 'Alex Example' },
{ type: 'text', token: 'Title', label: 'Title', value: 'Volunteer' },
{ type: 'image', token: 'Portrait', label: 'Portrait', value: `data:image/jpeg;base64,${photo.toString('base64')}` },
];
const body = new URLSearchParams();
body.set('card[card_template_id]', 'TEMPLATE_ID');
body.set('card[data]', JSON.stringify(data)); // a STRING holding the JSON array
const res = await fetch(`${API}/organizations/${org}/cards`, {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body,
});
const card = await res.json();
if (card.error) throw new Error(card.error); // errors can arrive with HTTP 200
console.log('Draft card', card.id); And in Python with the requests library:
import base64, json, os, requests
API = "https://core.instantcard.net/api/v2"
token = os.environ["IC_TOKEN"] # keep it on the server
org = os.environ["IC_ORG"]
with open("photo.jpg", "rb") as f:
photo = "data:image/jpeg;base64," + base64.b64encode(f.read()).decode()
data = [
{"type": "text", "token": "FullName", "label": "Full Name", "value": "Alex Example"},
{"type": "text", "token": "Title", "label": "Title", "value": "Volunteer"},
{"type": "image", "token": "Portrait", "label": "Portrait", "value": photo},
]
res = requests.post(
f"{API}/organizations/{org}/cards",
headers={"Authorization": f"Bearer {token}"},
data={
"card[card_template_id]": "TEMPLATE_ID",
"card[data]": json.dumps(data), # a STRING holding the JSON array
},
timeout=60,
)
card = res.json()
if isinstance(card, dict) and card.get("error"):
raise RuntimeError(card["error"]) # errors can arrive with HTTP 200
print("Draft card", card["id"]) Send card[data] as a JSON string
card[data] must be a string containing the JSON array, even when the rest of your request is JSON. Sent as a real array, it is not read: the request fails with a server error (HTTP 500) and no card is created.
- Photos must be the image itself, as
data:image/jpeg;base64,...ordata:image/png;base64,.... A link to a photo is stored as text and prints as text. Crop the photo to the shape of the template's photo frame first: it is stretched to fit, not cropped. - Text is stored slightly changed: a double quote
"becomes two single quotes'', and a backslash is doubled.
Errors
| Status | Body | Meaning |
|---|---|---|
| 404 | {"error":"Card Template not found"} | The template is not approved, or not shared with your organization. |
| 400 | {"error":"Data <Label> field can't be blank"} | A required field has no value. |
| 400 | {"error":"Missing parameter 'card'"} | The card[...] fields are missing from the body. |
Preview a card
GET/organizations/{organization_id}/cards/{card_id}/preview
Draws the card and returns pictures of its front and, for two-sided cards, its back. Works on drafts and finalized cards.
curl -s "$IC_API/organizations/$IC_ORG/cards/CARD_ID/preview" -H "Authorization: Bearer $IC_TOKEN" {
"preview_available": true,
"orientation": "portrait",
"double_sided": true,
"front": "iVBORw0KGgo...",
"back": "iVBORw0KGgo..."
} Good to know
frontandbackare PNG images in base64 without adata:prefix. To show one in a web page, putdata:image/png;base64,in front of it.backis left out for one-sided cards.- If the picture is not ready yet you get HTTP 200 with
"preview_available": falseand"pending": ["generating"]. Wait a few seconds and ask again.
Update a card
PATCH/organizations/{organization_id}/cards/{card_id}
Changes a card's values: a draft after previewing it, or a finalized card, for example to change an expiry date.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
card[ | string (JSON array) | yes | The card's complete data array, as a string, in the same shape as when you created it. |
curl -s -X PATCH "$IC_API/organizations/$IC_ORG/cards/CARD_ID" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "card[data]@card-data.json" (card-data.json holds the card's complete data array, changed values included. The response has the same shape as Create a card.)
An update replaces the whole array
An update replaces the whole data array. Any field you leave out is removed from the card. Fetch the card first, change the values you need, and send every field back.
- Start from Fetch a card, not the list or search: those replace each photo with the word
image, and sending that back would replace the photo. - If your organization sends data-collection emails, changing a finalized card can send one.
Errors
| Status | Body | Meaning |
|---|---|---|
| 404 | {"error":"Card not found"} | No such card in your organization. |
Finalize a card
PATCH/organizations/{organization_id}/cards/{card_id}/finalize
Marks a draft as ready to print. Finalize every card before you add it to a print job.
curl -s -X PATCH "$IC_API/organizations/$IC_ORG/cards/CARD_ID/finalize" -H "Authorization: Bearer $IC_TOKEN" The response is the card, in the same shape as Create a card.
Good to know
- The API does not stop you adding a draft to a print job, but only finalized cards are meant to be printed, and drafts do not show up anywhere else.
- If your organization sends data-collection emails, finalizing can send one.
Errors
| Status | Body | Meaning |
|---|---|---|
| 400 | {"error":"Card is already finalized"} | Nothing to do; the card was finalized before. |
Fetch a card
GET/organizations/{organization_id}/cards/{card_id}
One card with all of its values, photos included.
curl -s "$IC_API/organizations/$IC_ORG/cards/CARD_ID" -H "Authorization: Bearer $IC_TOKEN" The response is the card, in the same shape as Create a card.
List cards
GET/organizations/{organization_id}/cards
Your organization's finalized cards, a page at a time. Photos are replaced with the word image. Use Preview to see them.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | no | Which page, from 1. Default 1. |
page_size | integer | no | How many per page. Default 50. |
curl -s "$IC_API/organizations/$IC_ORG/cards" --get \
--data "page=1" --data "page_size=50" \
-H "Authorization: Bearer $IC_TOKEN" Response (shortened): a list of cards in the same shape as Create a card, with each photo value shown as "image".
Drafts are not listed. Keep the id from Create a card until you finalize it.
Search cards
GET/organizations/{organization_id}/cards/search
Finds finalized cards by the words on them, such as a name or an id number.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
term | string | yes | What to look for. |
page, page_size | integer | no | Paging, as in List cards. |
curl -s "$IC_API/organizations/$IC_ORG/cards/search" --get \
--data-urlencode "term=Alex Example" \
--data "page=1" --data "page_size=50" \
-H "Authorization: Bearer $IC_TOKEN" The response is a list of cards, as in List cards. No match, and any problem with the search itself, returns an empty list [], not an error.
Delete a card
DELETE/organizations/{organization_id}/cards/{card_id}
Removes a card, draft or finalized.
curl -s -X DELETE "$IC_API/organizations/$IC_ORG/cards/CARD_ID" -H "Authorization: Bearer $IC_TOKEN" { "result": "Success" } Remove the card from any print job you have not submitted yet first. A job that still holds a deleted card fails to submit.
Card print history
GET/organizations/{organization_id}/cards/{card_id}/print_history
Each time the card was ordered, with its status and when it was processed.
curl -s "$IC_API/organizations/$IC_ORG/cards/CARD_ID/print_history" -H "Authorization: Bearer $IC_TOKEN" [ { "status": 1, "processed_at": "2026-09-20T14:42:12.921-04:00" } ] - Here
statusis 0 for waiting to print and 1 for printed. It is not a print job status. Those have their own codes, listed under List print jobs. processed_atis when it was printed, or, while it is still waiting, when it was ordered.
Print jobs
A print job is an order: some finalized cards, how many copies of each, where to send them and how. You can change it until you submit it.
Create a print job
POST/organizations/{organization_id}/print_jobs
Starts an order. Creating a job does not print anything. Nothing happens until you submit it.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
print_job[ | string (JSON array) | no | The cards, as a string holding a JSON array: [264214] for one card, [264214,264201] for two. You can also add cards later. |
print_job[ | integer | no | Copies of each card. Default 1. |
print_job[ | integer | needed before submit | How to ship it, from Shipping methods. Send it now, or later with Update a print job. |
print_job[ | integer | no | Ship to a saved address, from Addresses. Do not send it together with a one-off address. |
print_job[ | string | with a one-off address | One-off address: who it is for. |
print_job[ | string | some shipping methods | One-off address: a phone number. Required by some shipping methods; see Shipping methods. |
print_job[ | string | no | One-off address: company or school name. |
print_job[ | string | with a one-off address | One-off address: first line. |
print_job[ | string | no | One-off address: second line. |
print_job[ | string | usually | Required, unless we have made city and ZIP optional for your organization and the address is outside the United States and Canada. |
print_job[ | string | usually | Required everywhere except Germany and Austria. |
print_job[ | string | usually | Required, unless we have made city and ZIP optional for your organization and the address is outside the United States and Canada. Send it as text, so leading zeros survive. |
print_job[ | string | no | A two-letter country code, such as US. |
curl -s -X POST "$IC_API/organizations/$IC_ORG/print_jobs" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "print_job[card_ids]=[CARD_ID]" \
--data-urlencode "print_job[number_of_copies]=1" \
--data-urlencode "print_job[shipping_provider_id]=SHIPPING_PROVIDER_ID" \
--data-urlencode "print_job[address][contact][full_name]=Alex Example" \
--data-urlencode "print_job[address][contact][phone_number]=555-555-0100" \
--data-urlencode "print_job[address][address1]=100 Main St" \
--data-urlencode "print_job[address][city]=Springfield" \
--data-urlencode "print_job[address][state]=PA" \
--data-urlencode "print_job[address][zip_code]=19000" \
--data-urlencode "print_job[address][country]=US" The same shape is returned by every print-job call.
{
"id": 346291,
"status": "Created",
"address_id": null,
"address": {
"address1": "100 Main St",
"city": "Springfield",
"state": "PA",
"zip_code": "19000",
"country": "US",
"contact": { "full_name": "Alex Example", "phone_number": "555-555-0100" }
},
"shipping_provider_id": 1,
"number_of_copies": 1,
"organization": { "id": 20001234, "name": "Example Organization" },
"created_at": "2026-09-25T10:15:00.000-04:00",
"updated_at": "2026-09-25T10:16:30.000-04:00"
} Send card ids as a JSON string
print_job[card_ids] must be a string holding a JSON array. Sent as a form array (print_job[card_ids][]=...), it is silently ignored and the job is created empty.
- With neither a saved address nor a one-off address, the job ships to your organization's own address.
- A one-off address is used for this job only and is not saved. It cannot carry an email address.
- Responses below
?v=2.1also include alist_userslist. You can ignore it.
Errors
| Status | Body | Meaning |
|---|---|---|
| 404 | {"error":"Card not found"} | One of the card ids is not a card in your organization. |
| 404 | Invalid address... | A saved address_id and a one-off address were both sent. |
| 404 | Address not found | The saved address_id is not an address of your organization. |
| 404 | Shipping Provider not found | The shipping_provider_id is not a shipping method. Use an id from Shipping methods. |
| 404 | Missing address required parameter... | A one-off address is missing a required field (a validation error, despite the 404). |
| 400 | {"error":"Missing parameter 'print_job'"} | No print_job[...] field was sent at all. |
Update a print job
PATCH/organizations/{organization_id}/print_jobs/{job_id}
Changes the copies, shipping method or address of a job you have not submitted. It takes the same address fields as Create a print job.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
print_job[ | integer | no | Copies of each card. Send the shipping method with it (see below). |
print_job[ | integer | no | How to ship it. |
curl -s -X PATCH "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "print_job[number_of_copies]=2" \
--data-urlencode "print_job[shipping_provider_id]=SHIPPING_PROVIDER_ID" Changing copies clears the shipping method
Changing number_of_copies clears the shipping method. Always send print_job[shipping_provider_id] in the same request, or the job will fail to submit.
Use address1 and address2
The one-off address fields are address1 and address2, with no underscore. address_1 is ignored, and the address is then refused for having no first line.
Errors
| Status | Body | Meaning |
|---|---|---|
| 401 | Print job already processed | The job was submitted, so it cannot change. |
| 404 | Missing address required parameter... | A one-off address is missing a required field (a validation error, despite the 404). |
Add cards to a print job
POST/organizations/{organization_id}/print_jobs/{job_id}/add_cards
Adds finalized cards to a job you have not submitted. Each is printed as many times as the job's number_of_copies.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
print_job[ | string (JSON array) | yes | The cards to add, as a string holding a JSON array. |
curl -s -X POST "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/add_cards" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "print_job[card_ids]=[CARD_ID]" The response is the print job, in the same shape as Create a print job.
Errors
| Status | Body | Meaning |
|---|---|---|
| 401 | Print job already processed | The job was submitted. |
| 404 | {"error":"Card not found"} | A card id is not in your organization. |
Cards in a print job
GET/organizations/{organization_id}/print_jobs/{job_id}/cards
The cards a job holds, all of them or a page at a time. The cards are paged only when you send both page and page_size; otherwise you get them all.
curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/cards" -H "Authorization: Bearer $IC_TOKEN" Remove a card from a print job
DELETE/organizations/{organization_id}/print_jobs/{job_id}/remove_cards/{card_id}
Takes one card out of a job you have not submitted. Call it once per card.
curl -s -X DELETE "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/remove_cards/CARD_ID" \
-H "Authorization: Bearer $IC_TOKEN" Response: true. It answers true even if the card was not in the job.
Errors
| Status | Body | Meaning |
|---|---|---|
| 401 | false | The job was already submitted. |
| 404 | false | No such print job. |
Charge details (quote)
GET/organizations/{organization_id}/print_jobs/{job_id}/charge_details
What the job costs, line by line, and whether your balance covers it. Before you submit it is a quote. Afterwards it is what you were charged.
curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/charge_details" -H "Authorization: Bearer $IC_TOKEN" {
"has_balance": true,
"job_total_cost": "$29.50",
"shipping_cost": "$0.50",
"items": [
{ "name": "Shipping provider: USPS First Class Mail", "number_of_items": 1, "unit_price": "$0.50", "total": "$0.50" },
{ "name": "Card type: White PVC", "number_of_items": 4, "unit_price": "$7.25", "total": "$29.00" }
]
} Ask only once the job has at least one card. An empty job answers with a server error.
Check the balance for a print job
GET/organizations/{organization_id}/print_jobs/{job_id}/check_balance
true if your balance covers the job, false if not.
curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/check_balance" -H "Authorization: Bearer $IC_TOKEN" Response: true
Submit does not check your balance
This check is for you. Submit does not check your balance, and a job submitted without enough funds takes your balance below zero. If that must not happen, check first and stop when it says false.
- With
?v=2.1the answer is an object:{"has_balance": false, "charge_details": {...}}.
Submit a print job
POST/organizations/{organization_id}/print_jobs/{job_id}/print
Places the order: the job is paid for from your balance and sent to print. This is the step that spends money.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
email | string | no | Where the order confirmation goes, for a login that has order confirmation emails turned on. Defaults to the signed-in login's email. |
curl -s -X POST "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID/print" -H "Authorization: Bearer $IC_TOKEN" { "id": 346291, "status": "Scheduled", "number_of_copies": 1, "shipping_provider_id": 1 } Good to know
- Check the job first: cards, copies, address and shipping method. A job submitted by 4 p.m. Eastern Time is normally printed the same day.
- Submit does not check your balance. See Check the balance.
- If your organization approves orders before they print, the job goes to
Pending_Approval, and is paid for when it is submitted, not when it is approved. - If your account pays by card at checkout rather than from a balance, talk to us before you submit through the API. The job needs payment details, and card numbers must not pass through your server.
- If the request times out, fetch the job before you try again.
Errors
| Status | Body | Meaning |
|---|---|---|
| 400 | Print job already processed | It was already submitted. |
| 400 | Invalid print job | No such job in your organization. |
| 400 | Phone Number required for <shipping method> | Add print_job[address][contact][phone_number]. |
| 400 | Invalid data. Review the cards in the cart or empty card and start over. | The job has no shipping method, holds a deleted card, or was sent payment details your account does not take. |
| 400 | Unable to finalize the checkout without credit card information. | Your account pays by card at checkout. Talk to us. |
Fetch a print job
GET/organizations/{organization_id}/print_jobs/{job_id}
One job and its status. Use it to check a job before you submit it, or to see whether a submit went through.
curl -s "$IC_API/organizations/$IC_ORG/print_jobs/JOB_ID" -H "Authorization: Bearer $IC_TOKEN" The response is the print job, in the same shape as Create a print job.
List print jobs
GET/organizations/{organization_id}/print_jobs
Your print jobs, a page at a time, optionally only those with one status.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
page, page_size | integer | no | Paging, as in List cards. |
status | integer | no | One status code from the table below. |
curl -s "$IC_API/organizations/$IC_ORG/print_jobs" --get --data "status=0" -H "Authorization: Bearer $IC_TOKEN" Jobs come back oldest first. To find recent ones, keep paging, or keep the ids you create.
The status codes. Only a Created (0) job can still be changed. A job you submit becomes Scheduled (1), or Pending_Approval (11) if your organization approves orders first.
| status | Name |
|---|---|
| 0 | Created |
| 1 | Scheduled |
| 2 | In_Progress |
| 3 | Finished |
| 4 | Failed |
| 5 | No_Balance |
| 6 | Duplicated |
| 7 | Not_Printed |
| 8 | Deleted |
| 9 | On_Hold |
| 10 | Completed |
| 11 | Pending_Approval |
| 12 | Rejected |
Canceling a submitted job. Cards can print within minutes, so call 888-980-6179 right away. After hours, email [email protected] with URGENT in the subject and the job's id. A job that has not started printing can usually be canceled and refunded. A printed order cannot be changed.
Your account
Organization details
GET/organizations/{organization_id}
Your organization's name and how many cards and templates it has.
curl -s "$IC_API/organizations/$IC_ORG" -H "Authorization: Bearer $IC_TOKEN" {
"id": 20001234,
"name": "Example Organization",
"total_cards": 137,
"total_templates": 2,
"settings": { "public_settings": {} }
} Balance
GET/organizations/{organization_id}/balance
Your current balance, as text. Below zero it is in parentheses, such as "($5.50)".
curl -s "$IC_API/organizations/$IC_ORG/balance" -H "Authorization: Bearer $IC_TOKEN" { "balance": "$1,204.50" } This reference does not cover adding funds. Use Replenish Account in the customer portal's Account menu.
Shipping methods
GET/organizations/{organization_id}/shipping_providers
The shipping methods open to your organization. Use an id as shipping_provider_id on a print job.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
v | string | no | Send 2.1 to learn which methods need a phone number. |
curl -s "$IC_API/organizations/$IC_ORG/shipping_providers" --get --data "v=2.1" -H "Authorization: Bearer $IC_TOKEN" [
{ "id": 1, "name": "USPS First Class Mail", "settings": { "phone_number_required": false } },
{ "id": 2, "name": "FedEx Overnight", "settings": { "phone_number_required": true } }
] - The list is different for each organization and changes over time. Fetch it. Do not copy ids from an example.
- When
phone_number_requiredis true, a print job using that method needsprint_job[address][contact][phone_number].
Transactions
GET/organizations/{organization_id}/financial_transactions
The credits and debits on your balance, with what each order was charged for.
curl -s "$IC_API/organizations/$IC_ORG/financial_transactions" -H "Authorization: Bearer $IC_TOKEN" [
{
"id": 303626,
"type": "Debit",
"sub_type": "Print Job",
"description": "Print job: 4 cards",
"credit": "0.00",
"debit": "29.50",
"balance": "$1,204.50",
"receipt": false,
"created_at": "2026-09-25T11:15:13.817-04:00",
"transaction_items": {
"job_total_cost": "$29.50",
"shipping_cost": "$0.50",
"items": [
{ "name": "Card type: White PVC", "number_of_items": 4, "unit_price": "$7.25", "total": "$29.00" }
]
}
}
] credit and debit are plain amounts as text ("29.50"), but balance is formatted money ("$1,204.50"). With ?v=2.3 all three are formatted money.
Addresses
Saved shipping addresses. Each one has a contact, the person it goes to, which you can create along with the address.
List addresses
GET/organizations/{organization_id}/addresses
Lists saved shipping addresses.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
primary | boolean | no | true or false to list only primary or only other addresses. |
page, page_size | integer | no | Addresses are paged only when you send both. |
curl -s "$IC_API/organizations/$IC_ORG/addresses" -H "Authorization: Bearer $IC_TOKEN" [
{
"id": 12757,
"contact_id": 12631,
"contact": { "id": 12631, "full_name": "Alex Example", "email": "[email protected]", "phone_number": "555-555-0100" },
"organization_id": 20001234,
"label": "Front office",
"primary": false,
"address1": "100 Main St",
"address2": null,
"city": "Springfield",
"state": "PA",
"zip_code": "19000",
"country": "United States"
}
] Responses give the country's name, such as "United States", not the two-letter code you sent.
Create an address
POST/organizations/{organization_id}/addresses
Saves a shipping address. Give it an existing contact, or a new contact's name and email.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
address[ | string | yes | First line. |
address[ | string | no | Second line. |
address[ | string | usually | City. Required for US and Canada addresses, unless we have made city and ZIP optional for your organization. |
address[ | string | usually | State or province. Required for US and Canada addresses, and for every other country except Germany and Austria. |
address[ | string | usually | ZIP or postal code, as text. Required for US and Canada addresses, unless we have made city and ZIP optional for your organization. |
address[ | string | yes | A two-letter country code, such as US. |
address[ | string | no | Company or school name on the label. |
address[ | string | no | Your name for it, such as "Front office". |
address[ | boolean | no | true to make it your primary address. |
address[ | integer | one of these | An existing contact. Send this, or the new contact's name and email. |
address[ | string | one of these | A new contact's name. |
address[ | string | one of these | A new contact's email. |
address[ | string | no | A new contact's phone number. Some shipping methods need one. |
curl -s -X POST "$IC_API/organizations/$IC_ORG/addresses" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "address[label]=Front office" \
--data-urlencode "address[address1]=100 Main St" \
--data-urlencode "address[city]=Springfield" \
--data-urlencode "address[state]=PA" \
--data-urlencode "address[zip_code]=19000" \
--data-urlencode "address[country]=US" \
--data-urlencode "address[contact][full_name]=Alex Example" \
--data-urlencode "address[contact][email][email protected]" \
--data-urlencode "address[contact][phone_number]=555-555-0100" The response is the saved address, in the same shape as List addresses. Use two-letter country codes (US, CA). With ?v=2.2, anything else is refused with Invalid Country.
Fetch, update and delete an address
GET/organizations/{organization_id}/addresses/{address_id}
Returns one saved address and its contact.
curl -s "$IC_API/organizations/$IC_ORG/addresses/ADDRESS_ID" -H "Authorization: Bearer $IC_TOKEN" PATCH/organizations/{organization_id}/addresses/{address_id}
Updates a saved address. Send only the fields that change, with the same names as when you created it. Your return address cannot be changed through the API; that answers 405.
curl -s -X PATCH "$IC_API/organizations/$IC_ORG/addresses/ADDRESS_ID" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "address[address2]=Suite 200" DELETE/organizations/{organization_id}/addresses/{address_id}
Deletes a saved address. Answers {"result":"Success"}.
curl -s -X DELETE "$IC_API/organizations/$IC_ORG/addresses/ADDRESS_ID" -H "Authorization: Bearer $IC_TOKEN" Contacts
The people your addresses belong to.
List contacts
GET/organizations/{organization_id}/contacts
Lists the people your addresses belong to, paged with page and page_size.
curl -s "$IC_API/organizations/$IC_ORG/contacts" -H "Authorization: Bearer $IC_TOKEN" [
{
"id": 12629,
"organization_id": 20001234,
"full_name": "Alex Example",
"email": "[email protected]",
"alt_email": null,
"phone_number": "555-555-0100",
"alt_phone_number": null,
"addresses": []
}
] Create a contact
POST/organizations/{organization_id}/contacts
Saves a contact.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
contact[ | string | yes | Their name. |
contact[ | string | yes | Their email. |
contact[ | string | no | Their phone number. |
contact[ | string | no | Another email. |
contact[ | string | no | Another phone number. |
curl -s -X POST "$IC_API/organizations/$IC_ORG/contacts" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "contact[full_name]=Alex Example" \
--data-urlencode "contact[email][email protected]" \
--data-urlencode "contact[phone_number]=555-555-0100" The response is the contact, in the same shape as List contacts.
Fetch, update and delete a contact
GET/organizations/{organization_id}/contacts/{contact_id}
Returns one contact and its addresses.
curl -s "$IC_API/organizations/$IC_ORG/contacts/CONTACT_ID" -H "Authorization: Bearer $IC_TOKEN" PATCH/organizations/{organization_id}/contacts/{contact_id}
Updates a contact. Send only the fields that change, for example contact[phone_number]=555-555-0199.
curl -s -X PATCH "$IC_API/organizations/$IC_ORG/contacts/CONTACT_ID" \
-H "Authorization: Bearer $IC_TOKEN" \
--data-urlencode "contact[phone_number]=555-555-0199" DELETE/organizations/{organization_id}/contacts/{contact_id}
Removes a contact that no address uses. If an address still uses it, you get 400 Contact is associated with an addresses: change or delete the address first.
curl -s -X DELETE "$IC_API/organizations/$IC_ORG/contacts/CONTACT_ID" -H "Authorization: Bearer $IC_TOKEN" Troubleshooting
Errors you will meet
Check for a top-level error field on every response, whatever the HTTP status. Errors you are most likely to meet:
| Status | Response | What it means |
|---|---|---|
| 200 | {"error":"Not Authenticated"} | Your token is missing, mistyped or expired. Sign in again. |
| 401 | {"error":"Invalid credentials"} | At sign-in: a wrong email or password, or a login that is not an owner or admin with a single role. |
| 401 | Print job already processed | The job was already submitted, so it cannot be changed. |
| 404 | Organization not found | The organization id in the address is not yours. Use the one from Your profile. |
| 404 | Card Template not found | The template is not approved, or not shared with your organization. |
| 400 | Data <Label> field can't be blank | A required field of the template has no value. |
| 400 | Phone Number required for <shipping method> | That shipping method needs print_job[address][contact][phone_number]. |
| 400 | Invalid data. Review the cards in the cart or empty card and start over. | At submit: the job has no shipping method, holds a deleted card, or was sent payment details it does not take. |
Common problems
| Symptom | Likely cause and fix |
|---|---|
| Creating a card fails with a server error (500) | card[data] was sent as a real array. Send a string that holds the JSON array. |
| A print job comes back with no cards | print_job[card_ids] was sent as a form array. Send a string such as [264214]. |
| A card update seems to do nothing, or removes fields | card[data] was not a string, or it left fields out. An update replaces the whole array, so send every field. |
| A photo prints as text | The value was a link. Send the image as data:image/jpeg;base64,.... |
| A photo looks stretched | Photos are stretched to fit the frame, not cropped. Crop to the field's dimensions first. |
| A submit fails with "Phone Number required" | Add print_job[address][contact][phone_number]. Shipping methods with phone_number_required: true need it. |
| The job will not submit after you changed the copies | Changing number_of_copies clears the shipping method. Send print_job[shipping_provider_id] in the same request. |
| An address is refused for having no first line | You sent address_1. Use address1 and address2. |
| The balance went below zero | Submit does not check the balance. Call Check the balance first and stop when it says false. |
| A submit timed out | Fetch the job and read its status before you try again. The first attempt may have gone through. |
Support
Email [email protected]. We can help with:
- A login used only by an unattended integration.
- A call that is not here.
- Canceling an order. Call 888-980-6179 right away, or email with URGENT in the subject and the print job id.
Not a developer? See the ICO order forms guide and the Zapier guide, or all the ways to order.
