v1.1 Shipment Data

Shipment Data Object

FieldTypeDescription
statusstringOne of unshipped, shipped, or cancelled. The current status of the shipment.
tracking_numberstringIf available, the shipment's tracking number.
sub_cycleintThe shipment's sequence number in a subscription. E.g. 1 for the first shipment in a subscription, 2 for the second shipment, etc.
Note: Ecom orders have a null sub_cycle
adjusted_ordered_atdatetimeThe date used to determine when a shipment should ship for ecom shipments or shipments in ad hoc subscriptions
idintThe unique ID for the shipment
ship_addressresourceRead more here.
fulfillmentsresourceRead more here.
batchresourceAvailable for subscription products that have a standard billing type (e.g. all subs renew on the 15th). Read more here.
cust_cycleintThe shipment's sequence number for a customer across all orders and subscriptions. E.g. 1 for the first shipment for a customer, 2 for the second shipment, etc.

Ship Address Data Object

Each shipment will have a shipping address attached.

FieldTypeDescription
phone_numberstringIf available, the phone number for the recipient.
tostringName of the recipient. Note that for gift purchases, this will be the gift recipient's name, if the purchaser shipped the gift directly to the gift recipient.
statestring
citystring
countrystring
companystring
idintThe unique ID for this shipping address.
unitstring
zip_codestring

Fulfillment Data Object

Each shipment contains at least 1 fulfillment. A fulfillment represents a single product_instance line item in a shipment. Each fulfillment will have associated with it a product_instance and an order.

FieldTypeDescription
fulfillment_datedatetimeThe target fulfillment date.
subscription_idintIf the fulfillment is part of a subscription, the subscription ID.
orderresourceThe order associated with the fulfillment. Read more here.
instanceresourceThe product instance associated with the fulfillment. Read more here.

Batch Data Object

Subscription products that have a standard billing_type (e.g. all subscriptions renew on the 15th, regardless of when they were purchased) have shipping batch associated with the shipment. For more on batches and how they can help you figure out what to ship and when, read more here.

FieldTypeDescription
startdatetimeStart date for the batch. Meaning, all orders for the same product placed after the start date and before the end date will be in this same batch.
enddatetimeEnd date for the batch. The target ship date for a product within a batch should be shipped sometime soon after the batch's end date.
idintUnique ID for the batch.

Order Data Object

Each fulfillment will contain order info for one order. Each order will also contain underneath it the customer data object, a subscription data object if the order is a subscription order, and a order gift data object if the order was a gift.

FieldTypeDescription
is_giftboolWhether the order was purchased as a gift or not. If the order was a gift, the order will have an order_gift_info data object as well. Read more about that here.
is_renewalboolWhether this order was a subscription renewal order or not.
customerresourceInformation about the customer who purchased the order. Read more here.
subscriptionsresourceInformation about the subscription associated with this order, if the order has a subscription associated with it. Read more here.
order_gift_inforesourceInformation about the gift and message, if the order was a gift. Read more here.

Product Instance Data Object

Underneath each product instance will also be a product

FieldTypeDescription
skustringSKU for the product instance; note that if the product has variants, this is the SKU for the unique combination of variants.
giftboolFor Cratejoy sellers on the legacy Gifting 1.0 product, this will tell you if the purchase was a gift purchase. Will always be false for sellers on the updated Gifting 3.0+ feature.
priceintFor ecom products, price of the product in the smallest unit of currency for the store's currency. E.g. 100 in USD is $1.00.
ship_weightintThe product's ship weight.
idintUnique ID for the product_instance
productresourceInformation about the product associated with the product instance. Read more here.
variantsresourceInformation about the variants options for this product_instance, if the product has variants. Read more here.

Customer Data Object

Underneath each order, you'll find information about the customer who purchased the order.

FieldTypeDescription
idintUnique customer ID associated with the person who purchased the order.
namestringName of the customer who purchased the order. Note that if the order is a gift, this is the name of the gift buyer.
emailstringEmail address of the customer who purchased the order. Note that if the order is a gift, this is the email address of the gift buyer.

Subscription Data Object

Underneath each order, you'll find information about the customer. If the subscription has product survey results, they will also be contained here as a sub resource

FieldTypeDescription
statusstringThe subscription's current status. One of active, expired, cancelled, past_due.
idintThe unique ID associated with the subscription.
start_datedatetimeThe start date for the subscription -- the date of the first order for the subscription.
term_idintThe current subscription type term id of the subscription.

Order Gift Info Data Object

If the order is a gift, this will contain the gift message associated with the order.

FieldTypeDescription
gift_messagestringIf available, the gift message left by the purchaser for the gift recipient.
idintUnique ID for the order gift data object.

Subscription Product Survey Results

If a subscription's subscribe flow contains a customer survey, you'll find the results of that survey here.

FieldTypeDescription
survey_namestringName of the survey
idintUnique ID for the survey
answers.answerstringFor each question in a survey, the answer given by the purchaser.
answers.typestringThe format of the answer given, e.g. multiple_choice
answers.questionstringThe question asked in the customer survey.

Product Data Object

FieldTypeDescription
skustringSKU for the product
idintUnique ID for the product
namestringName of the product.

Product Variant Data Object

For each variant type and value, you'll find the following underneath instance.variants

FieldTypeDescription
typestringThe type of variant. E.g. "Size"
idintUnique ID for this variant answer.
valuestringThe value selected for the variant. E.g. "Medium" or "Small"