curl --request GET \
--url https://api.ongoody.com/v1/order_batches/{id}/orders \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "45cc590e-f3a1-4159-bf3a-75b5069014dd",
"status": "created",
"individual_gift_link": "https://gifts.ongoody.com/gift/FDDAQEY7N0O6WY9Z5PPXU4IY",
"recipient_first_name": "Alena",
"recipient_last_name": "Kenter",
"recipient_email": "[email protected]",
"card_id": "74b67d4d-ec46-4f3e-b682-9f1e0dfa3617",
"message": "Test Message",
"thank_you_note": null,
"view_count_recipient": 0,
"is_swapped": false,
"order_batch_id": "74b152ce-189a-4c76-8933-ee5446fbccbb",
"expires_at": null,
"cart": {
"id": "4325520a-692c-42c3-a9cb-6efd53acace2",
"items": [
{
"id": "53d648c1-f04f-4cf5-b4b2-7b12cae5b22f",
"quantity": 1,
"product": {
"id": "eaf264ab-c962-4371-9f61-5201d329d597",
"name": "Cookies",
"brand": {
"id": "3d3f2041-1af8-4288-9100-59b97059b1ee",
"name": "Cookie Company"
}
}
}
]
},
"shipments": [],
"amounts": {
"amount_product": 2000,
"amount_shipping": 500,
"amount_processing_fee": 0,
"amount_pre_tax_total": 2500,
"amount_tax": null,
"amount_total": null,
"amount_global_relay_cost": null
},
"sender": {
"first_name": "Test",
"last_name": "User",
"email": "[email protected]"
},
"workspace_id": "3f23b0ae-a9f7-4a2b-8994-78d32bd66bda",
"workspace_name": "Test Team",
"original_cart": null,
"original_amounts": null,
"reference_id": "F55TTQD5CBI37KPC1ZI7S9EY",
"payment_link": null
},
{
"id": "fa525bd8-9883-435a-a80c-0ef812b8ff80",
"status": "created",
"individual_gift_link": "https://gifts.ongoody.com/gift/6OH2ICRYLPNDD8BBBDWDKVAA",
"recipient_first_name": "Michael",
"recipient_last_name": "Franci",
"recipient_email": "[email protected]",
"card_id": "74b67d4d-ec46-4f3e-b682-9f1e0dfa3617",
"message": "Test Message",
"thank_you_note": null,
"view_count_recipient": 0,
"is_swapped": false,
"order_batch_id": "74b152ce-189a-4c76-8933-ee5446fbccbb",
"expires_at": null,
"cart": {
"id": "4325520a-692c-42c3-a9cb-6efd53acace2",
"items": [
{
"id": "53d648c1-f04f-4cf5-b4b2-7b12cae5b22f",
"quantity": 1,
"product": {
"id": "eaf264ab-c962-4371-9f61-5201d329d597",
"name": "Cookies",
"brand": {
"id": "3d3f2041-1af8-4288-9100-59b97059b1ee",
"name": "Cookie Company"
}
}
}
]
},
"shipments": [],
"amounts": {
"amount_product": 2000,
"amount_shipping": 500,
"amount_processing_fee": 0,
"amount_pre_tax_total": 2500,
"amount_tax": null,
"amount_total": null,
"amount_global_relay_cost": null
},
"sender": {
"first_name": "Test",
"last_name": "User",
"email": "[email protected]"
},
"workspace_id": "3f23b0ae-a9f7-4a2b-8994-78d32bd66bda",
"workspace_name": "Test Team",
"original_cart": null,
"original_amounts": null,
"reference_id": "RGAGBWX8WWYNP0W1MMRJJTQO",
"payment_link": null
}
],
"list_meta": {
"total_count": 2
}
}Your Goody API key.
Order batch ID
Page for pagination, starting at 1
x >= 1Items per page for pagination
1 <= x <= 100Orders retrieved with pagination
Show child attributes
created, notified, opened, accepted, pending_payment, paid, ordered, shipped, delivered, failed, canceled This gift link can be sent to the recipient or shared with the sender. For privacy reasons, this gift link does not display tracking information. A separate link, the recipient link, is sent directly to the recipient after they accept their gift, which does contain tracking information.
The cart currently on this order. If the order is a gift that was swapped, cart displays the most recent products selected (i.e. post-swap).
Show child attributes
Show child attributes
Show child attributes
A list of the shipments for the order.
Show child attributes
pending, tracking, shipped, delivered, delivered_override, failed, failed_unset_tracking, failed_with_reship The name of the brand that this shipment is from.
The carrier for this shipment, e.g. UPS.
Only for approved distribution partners.
Only for approved distribution partners.
ISO 8601
ISO 8601
The estimated delivery time of this shipment.
Costs in USD cents (i.e. $1.00 = 100). If the order was swapped, amounts displays the most recent amounts (i.e. post-swap).
Show child attributes
Total cost of the products in this order.
Total cost of shipping for this order.
Total cost of the products, shipping, and processing fees in this order.
Total cost of processing fees for this order.
Total amount of credit applied to this order.
Total tax for this order.
Total cost of the products, shipping, processing fees, tax, and global shipping costs in this order.
Total cost of global shipping for this order through the Global Relay service.
The reference ID displayed on receipts and other locations as the ID for this order.
Product variant selections for each cart product. Only for commerce app orders.
Show child attributes
The cart item ID this selection belongs to. Match this with cart.items[].id.
The index of this selection within multiple quantities of the same product. If a given cart product has multiple quantities, this will be 0 for the first unit, 1 for the second unit, etc.
The selected variants for this product selection and quantity index.
Organizations are sub-divided into workspaces. Orders are contained in workspaces, identified by this ID.
For gifts, the date and time the gift is set to expire.
The digital greeting card on this gift.
The message in this gift, provided by the sender.
A thank you note sent by the recipient.
The number of times the recipient viewed the gift.
If this gift was swapped by the recipient. Swapping allows a recipient to select another product or products, which replaces the cart. The original products are saved to original_cart.
On Goody for Business, all orders are attached to a order batch, which is a collection of one or more orders.
Only provided when calling the /orders/:id endpoint.
Show child attributes
ISO 8601
When the recipient was notified of the order.
For gifts, when the recipient opened the order.
For gifts, when the recipient accepted the order.
When the order entered pending payment status.
When the order was paid for.
When the order was first shipped. If there are multiple shipments, this is when the first shipment shipped.
When the order was delivered. If there are multiple shipments, this is when all shipments were delivered.
If this order is a gift that was swapped, this displays the original cart that was sent to the recipient.
Show child attributes
Show child attributes
Show child attributes
If this order is a gift that was swapped, this displays the original amounts of the cart that was sent to the recipient.
For commerce apps using Hosted Payment, the payment link for the gift with the credit card entry form. Available when the gift is in pending_payment status (after it has been accepted).
curl --request GET \
--url https://api.ongoody.com/v1/order_batches/{id}/orders \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "45cc590e-f3a1-4159-bf3a-75b5069014dd",
"status": "created",
"individual_gift_link": "https://gifts.ongoody.com/gift/FDDAQEY7N0O6WY9Z5PPXU4IY",
"recipient_first_name": "Alena",
"recipient_last_name": "Kenter",
"recipient_email": "[email protected]",
"card_id": "74b67d4d-ec46-4f3e-b682-9f1e0dfa3617",
"message": "Test Message",
"thank_you_note": null,
"view_count_recipient": 0,
"is_swapped": false,
"order_batch_id": "74b152ce-189a-4c76-8933-ee5446fbccbb",
"expires_at": null,
"cart": {
"id": "4325520a-692c-42c3-a9cb-6efd53acace2",
"items": [
{
"id": "53d648c1-f04f-4cf5-b4b2-7b12cae5b22f",
"quantity": 1,
"product": {
"id": "eaf264ab-c962-4371-9f61-5201d329d597",
"name": "Cookies",
"brand": {
"id": "3d3f2041-1af8-4288-9100-59b97059b1ee",
"name": "Cookie Company"
}
}
}
]
},
"shipments": [],
"amounts": {
"amount_product": 2000,
"amount_shipping": 500,
"amount_processing_fee": 0,
"amount_pre_tax_total": 2500,
"amount_tax": null,
"amount_total": null,
"amount_global_relay_cost": null
},
"sender": {
"first_name": "Test",
"last_name": "User",
"email": "[email protected]"
},
"workspace_id": "3f23b0ae-a9f7-4a2b-8994-78d32bd66bda",
"workspace_name": "Test Team",
"original_cart": null,
"original_amounts": null,
"reference_id": "F55TTQD5CBI37KPC1ZI7S9EY",
"payment_link": null
},
{
"id": "fa525bd8-9883-435a-a80c-0ef812b8ff80",
"status": "created",
"individual_gift_link": "https://gifts.ongoody.com/gift/6OH2ICRYLPNDD8BBBDWDKVAA",
"recipient_first_name": "Michael",
"recipient_last_name": "Franci",
"recipient_email": "[email protected]",
"card_id": "74b67d4d-ec46-4f3e-b682-9f1e0dfa3617",
"message": "Test Message",
"thank_you_note": null,
"view_count_recipient": 0,
"is_swapped": false,
"order_batch_id": "74b152ce-189a-4c76-8933-ee5446fbccbb",
"expires_at": null,
"cart": {
"id": "4325520a-692c-42c3-a9cb-6efd53acace2",
"items": [
{
"id": "53d648c1-f04f-4cf5-b4b2-7b12cae5b22f",
"quantity": 1,
"product": {
"id": "eaf264ab-c962-4371-9f61-5201d329d597",
"name": "Cookies",
"brand": {
"id": "3d3f2041-1af8-4288-9100-59b97059b1ee",
"name": "Cookie Company"
}
}
}
]
},
"shipments": [],
"amounts": {
"amount_product": 2000,
"amount_shipping": 500,
"amount_processing_fee": 0,
"amount_pre_tax_total": 2500,
"amount_tax": null,
"amount_total": null,
"amount_global_relay_cost": null
},
"sender": {
"first_name": "Test",
"last_name": "User",
"email": "[email protected]"
},
"workspace_id": "3f23b0ae-a9f7-4a2b-8994-78d32bd66bda",
"workspace_name": "Test Team",
"original_cart": null,
"original_amounts": null,
"reference_id": "RGAGBWX8WWYNP0W1MMRJJTQO",
"payment_link": null
}
],
"list_meta": {
"total_count": 2
}
}