GET
/
v1
/
order_batches
/
{id}
{
  "id": "28ec3d08-418e-426f-b0ba-6f002eebbd81",
  "send_status": "complete",
  "from_name": "Renaldo",
  "message": null,
  "orders_count": 2,
  "orders_preview": [
    {
      "id": "ad3be7f6-c57c-476b-8ec0-40d5acfcb441",
      "status": "created",
      "individual_gift_link": "https://gifts.ongoody.com/gift/XMDNZVMFBCE3GEJWQHET7XJH",
      "recipient_first_name": "Alena",
      "recipient_last_name": "Kenter",
      "recipient_email": "alena@ongoody.com",
      "card_id": "ade15bdb-6178-4a8a-b622-71ac7f9b8352",
      "message": "Test Message",
      "thank_you_note": null,
      "view_count_recipient": 0,
      "is_swapped": false,
      "order_batch_id": "28ec3d08-418e-426f-b0ba-6f002eebbd81",
      "expires_at": null,
      "cart": {
        "id": "6037c147-0c5b-4c0b-ae1b-eb628e95f37e",
        "items": [
          {
            "id": "674ce4c6-a9f8-4f7d-a076-6b26edf65336",
            "quantity": 1,
            "product": {
              "id": "448c5682-d3c4-414b-92be-54007df5b858",
              "name": "Cookies",
              "brand": {
                "id": "22e6d950-5c96-49fa-b1d6-2a15c7e7b89f",
                "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": "15552366242@test.ongoody.com"
      },
      "workspace_id": "7429e8d7-4e3b-4a86-aca9-4aac54389396",
      "workspace_name": "Test Team",
      "original_cart": null,
      "original_amounts": null,
      "reference_id": "KLLVXWG95HQ5ATQVINBIOWYJ",
      "payment_link": null
    },
    {
      "id": "83a27bb0-0dd3-4ac1-bc57-44f5ef93c4bb",
      "status": "created",
      "individual_gift_link": "https://gifts.ongoody.com/gift/WTESN2EVALM9JKJMEAEQDZSM",
      "recipient_first_name": "Michael",
      "recipient_last_name": "Franci",
      "recipient_email": "michael@ongoody.com",
      "card_id": "ade15bdb-6178-4a8a-b622-71ac7f9b8352",
      "message": "Test Message",
      "thank_you_note": null,
      "view_count_recipient": 0,
      "is_swapped": false,
      "order_batch_id": "28ec3d08-418e-426f-b0ba-6f002eebbd81",
      "expires_at": null,
      "cart": {
        "id": "6037c147-0c5b-4c0b-ae1b-eb628e95f37e",
        "items": [
          {
            "id": "674ce4c6-a9f8-4f7d-a076-6b26edf65336",
            "quantity": 1,
            "product": {
              "id": "448c5682-d3c4-414b-92be-54007df5b858",
              "name": "Cookies",
              "brand": {
                "id": "22e6d950-5c96-49fa-b1d6-2a15c7e7b89f",
                "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": "15552366242@test.ongoody.com"
      },
      "workspace_id": "7429e8d7-4e3b-4a86-aca9-4aac54389396",
      "workspace_name": "Test Team",
      "original_cart": null,
      "original_amounts": null,
      "reference_id": "3HJ3PQIPTNERXTVZRTHUJQGJ",
      "payment_link": null
    }
  ],
  "recipients_count": 2,
  "recipients_preview": [
    {
      "first_name": "Alena",
      "last_name": "Kenter",
      "email": "alena@ongoody.com"
    },
    {
      "first_name": "Michael",
      "last_name": "Franci",
      "email": "michael@ongoody.com"
    }
  ],
  "cart": {
    "id": "6037c147-0c5b-4c0b-ae1b-eb628e95f37e",
    "items": [
      {
        "id": "674ce4c6-a9f8-4f7d-a076-6b26edf65336",
        "quantity": 1,
        "product": {
          "id": "448c5682-d3c4-414b-92be-54007df5b858",
          "name": "Cookies",
          "brand": {
            "id": "22e6d950-5c96-49fa-b1d6-2a15c7e7b89f",
            "name": "Cookie Company"
          }
        }
      }
    ]
  },
  "is_scheduled_send": false,
  "scheduled_send_on": null,
  "expires_at": null,
  "send_method": null,
  "batch_name": "Thank You from Bartell Inc",
  "card_id": "ade15bdb-6178-4a8a-b622-71ac7f9b8352",
  "sender": {
    "first_name": "Test",
    "last_name": "User",
    "email": "15552366242@test.ongoody.com"
  },
  "workspace_id": "7429e8d7-4e3b-4a86-aca9-4aac54389396",
  "workspace_name": "Test Team",
  "reference_id": "BBGPEJANDYUUOTV5ZWKDTHCU"
}

Authorizations

Authorization
string
headerrequired

Your Goody API key.

Path Parameters

id
string
required

Order batch ID

Response

200 - application/json
id
string
required
send_status
enum<string>
required

The pending status indicates that an order batch is being prepared to be sent out. If it is not scheduled, it is being sent asynchronously. If it is scheduled, it will stay in pending state until the scheduled time is reached, at which point it will be processed and moved to complete. When it is in pending status, no orders are created yet. When the order batch is in complete status, all orders are created and available.

Available options:
pending,
complete,
failed,
canceled
from_name
string
required

The name of the sender. This is displayed on the order and notifications.

message
string | null

The message in this order batch, provided by the sender.

orders_count
integer
required

The total number of orders in this order batch. This might be blank if the order batch is scheduled for the future, or it could be fewer than the recipient count if the order batch is in the process of being sent.

orders_preview
object[]
required

A preview of the first 10 orders in this order batch. To paginate through all of the orders, use the /order_batches/:id/orders endpoint with ?page&per_page. If your use case never sends more than 10 orders in a single batch, you can use this field instead of calling /order_batches/:id/orders. For order batches with more than 10 recipients, this array will be empty while the orders are asynchronously created in the background.

recipients_count
integer
required

The total number of recipients in this order batch.

recipients_preview
object[]
required

A preview of the first 10 recipients in this order batch. To see all of the recipients, use /order_batches/:id/recipients. Recipients contain the original contact information provided for each recipient when the order batch was created.

cart
object
required

The cart that was sent for this order batch. This is the original cart that was created for this order batch. If individual orders were swapped, this still remains the same, whereas orders' cart would change if they were swapped.

is_scheduled_send
boolean

Whether this order batch was set up as a scheduled send. This stays as true after the scheduled send is complete. To determine if the order batch is scheduled to be sent for the future, check if status is pending and scheduled_send_on is in the future. When a order batch is scheduled, orders are only created on the scheduled send date.

scheduled_send_on
string | null

The date and time the order batch is scheduled to be sent. This will be null if the order batch is not a scheduled send. This field remains after the scheduled send completes. ISO 8601, UTC.

expires_at
string | null

The date and time the order batch is set to expire. ISO 8601, UTC.

send_method
enum<string> | null

The method for sending a order batch. email_and_link sends a gift email to the recipient (specify email for each recipient). link_multiple_custom_list generates a gift link without an automatic email. direct_send ships the product directly to the recipient (specify mailing_address for each recipient). For more information, see Send Methods.

Available options:
email_and_link,
link_multiple_custom_list,
direct_send
batch_name
string | null

An internal name for the order batch, falling back to an auto-generated batch name. Not displayed to recipients.

card_id
string | null

The digital greeting card on this order batch.

sender
object
required

The sender of the order batch.

workspace_id
string | null

Organizations are sub-divided into workspaces. Order batches are contained in workspaces, identified by this ID.

workspace_name
string | null
reference_id
string
required

The reference ID displayed on receipts and other locations as the ID for this order batch.