The TerminalHardwareOrder objectPreview feature

Attributes

  • idstring

    Unique identifier for the object.

  • amountinteger

    A positive integer in the smallest currency unit. Represents the total cost for the order.

  • currencyenum

    Three-letter ISO currency code, in lowercase. Must be a supported currency.

  • hardware_order_itemsarray of objects

    An array of line items ordered.

  • metadatanullable object

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

  • payment_typeenum

    One of monthly_invoice, payment_intent, or none.

  • shippingobject

    Shipping address for the order.

  • shipping_methodstring

    The Shipping Method for the order.

  • statusenum

    The status of the terminal hardware order.

    Possible enum values
    canceled

    Order was canceled. Please create a new order to receive these items.

    delivered

    Order has been delivered!

    pending

    Order has been received and can still be canceled.

    ready_to_ship

    Order has been confirmed and is pending shipment. It cannot be canceled.

    shipped

    Order has been shipped, and can no longer be canceled.

    undeliverable

    One or more of the order’s items could not be delivered.

More attributes

  • objectstring

  • createdtimestamp

  • livemodeboolean

  • po_numbernullable string

  • shipment_trackingarray of objects

  • taxinteger

  • total_tax_amountsarray of objects

  • updatednullable timestamp

The TerminalHardwareOrder object
{
"id": "thor_1Nj6mu2eZvKYlo2CRG74vB9n",
"object": "terminal.hardware_order",
"amount": 13602,
"created": 1692995962,
"currency": "usd",
"hardware_order_items": [
{
"amount": 11800,
"currency": "usd",
"quantity": 2,
"terminal_hardware_sku": {
"id": "thsku_L5fys7HZ5o02Nc",
"amount": 450,
"country": "AT",
"currency": "eur",
"product": "thpr_MJfof7SLvdkG6T"
}
}
],
"livemode": true,
"metadata": {},
"payment_type": "monthly_invoice",
"po_number": null,
"shipment_tracking": [],
"shipping": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"amount": 800,
"company": "Rocket Rides",
"currency": "usd",
"email": "test@example.com",
"name": "Jenny Rosen",
"phone": "15555555555"
},
"shipping_method": "standard",
"status": "pending",
"tax": 1002,
"total_tax_amounts": [
{
"amount": 1002,
"inclusive": false,
"rate": {
"display_name": "Sales Tax",
"jurisdiction": "LOS ANGELES",
"percentage": 8.25
}
}
],
"updated": null
}

Create a Terminal Hardware OrderPreview feature

Creates a new TerminalHardwareOrder object.

Parameters

  • hardware_order_itemsarray of objectsRequired

    An array of line items to order.

  • payment_typeenumRequired

    The method of payment for this order.

  • shippingobjectRequired

    Shipping address for the order.

  • shipping_methodstringRequired

    The Shipping Method for the order.

  • metadataobject

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

More parameters

  • po_numberstring

Returns

Returns a TerminalHardwareOrder object if creation succeeds.

POST /v1/terminal/hardware_orders
cURL
curl https://api.stripe.com/v1/terminal/hardware_orders \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d "hardware_order_items[0][terminal_hardware_sku]"=thsku_L5fys7HZ5o02Nc \
-d "hardware_order_items[0][quantity]"=2 \
-d payment_type=monthly_invoice \
-d "shipping[address][line1]"="1234 Main St." \
-d "shipping[address][city]"="San Francisco" \
-d "shipping[address][state]"=CA \
-d "shipping[address][zip]"=94111 \
-d "shipping[address][country]"=US \
-d "shipping[phone]"=15555555555 \
--data-urlencode "shipping[email]"="test@example.com" \
-d "shipping[name]"="Jenny Rosen"
Response
{
"id": "thor_1Nj6mu2eZvKYlo2CRG74vB9n",
"object": "terminal.hardware_order",
"amount": 13602,
"created": 1692995962,
"currency": "usd",
"hardware_order_items": [
{
"amount": 11800,
"currency": "usd",
"quantity": 2,
"terminal_hardware_sku": {
"id": "thsku_L5fys7HZ5o02Nc",
"amount": 450,
"country": "AT",
"currency": "eur",
"product": "thpr_MJfof7SLvdkG6T"
}
}
],
"livemode": true,
"metadata": {},
"payment_type": "monthly_invoice",
"po_number": null,
"shipment_tracking": [],
"shipping": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"amount": 800,
"company": "Rocket Rides",
"currency": "usd",
"email": "test@example.com",
"name": "Jenny Rosen",
"phone": "15555555555"
},
"shipping_method": "standard",
"status": "pending",
"tax": 1002,
"total_tax_amounts": [
{
"amount": 1002,
"inclusive": false,
"rate": {
"display_name": "Sales Tax",
"jurisdiction": "LOS ANGELES",
"percentage": 8.25
}
}
],
"updated": null
}

Retrieve a Terminal Hardware OrderPreview feature

Retrieves a TerminalHardwareOrder object.

Parameters

No parameters.

Returns

Returns a TerminalHardwareOrder object if a valid identifier was provided.

GET /v1/terminal/hardware_orders/:id
cURL
curl https://api.stripe.com/v1/terminal/hardware_orders/thor_1Nj6mu2eZvKYlo2CRG74vB9n \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "thor_1Nj6mu2eZvKYlo2CRG74vB9n",
"object": "terminal.hardware_order",
"amount": 13602,
"created": 1692995962,
"currency": "usd",
"hardware_order_items": [
{
"amount": 11800,
"currency": "usd",
"quantity": 2,
"terminal_hardware_sku": {
"id": "thsku_L5fys7HZ5o02Nc",
"amount": 450,
"country": "AT",
"currency": "eur",
"product": "thpr_MJfof7SLvdkG6T"
}
}
],
"livemode": true,
"metadata": {},
"payment_type": "monthly_invoice",
"po_number": null,
"shipment_tracking": [],
"shipping": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"amount": 800,
"company": "Rocket Rides",
"currency": "usd",
"email": "test@example.com",
"name": "Jenny Rosen",
"phone": "15555555555"
},
"shipping_method": "standard",
"status": "pending",
"tax": 1002,
"total_tax_amounts": [
{
"amount": 1002,
"inclusive": false,
"rate": {
"display_name": "Sales Tax",
"jurisdiction": "LOS ANGELES",
"percentage": 8.25
}
}
],
"updated": null
}

List all Terminal Hardware OrdersPreview feature

List all TerminalHardwareOrder objects.

Parameters

  • statusenum

    Only return orders that have the given status.

    Possible enum values
    canceled

    Order was canceled. Please create a new order to receive these items.

    delivered

    Order has been delivered!

    pending

    Order has been received and can still be canceled.

    ready_to_ship

    Order has been confirmed and is pending shipment. It cannot be canceled.

    shipped

    Order has been shipped, and can no longer be canceled.

    undeliverable

    One or more of the order’s items could not be delivered.

More parameters

  • ending_beforestring

  • limitinteger

  • starting_afterstring

Returns

A dictionary with a data property that contains an array of terminal hardware orders. Each entry in the array is a separate order object.

GET /v1/terminal/hardware_orders
cURL
curl -G https://api.stripe.com/v1/terminal/hardware_orders \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d limit=3
Response
{
"object": "list",
"url": "/v1/terminal/hardware_orders",
"has_more": false,
"data": [
{
"id": "thor_1Nj6mu2eZvKYlo2CRG74vB9n",
"object": "terminal.hardware_order",
"amount": 13602,
"created": 1692995962,
"currency": "usd",
"hardware_order_items": [
{
"amount": 11800,
"currency": "usd",
"quantity": 2,
"terminal_hardware_sku": {
"id": "thsku_L5fys7HZ5o02Nc",
"amount": 450,
"country": "AT",
"currency": "eur",
"product": "thpr_MJfof7SLvdkG6T"
}
}
],
"livemode": true,
"metadata": {},
"payment_type": "monthly_invoice",
"po_number": null,
"shipment_tracking": [],
"shipping": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"amount": 800,
"company": "Rocket Rides",
"currency": "usd",
"email": "test@example.com",
"name": "Jenny Rosen",
"phone": "15555555555"
},
"shipping_method": "standard",
"status": "pending",
"tax": 1002,
"total_tax_amounts": [
{
"amount": 1002,
"inclusive": false,
"rate": {
"display_name": "Sales Tax",
"jurisdiction": "LOS ANGELES",
"percentage": 8.25
}
}
],
"updated": null
}
{...}
{...}
],
}

Cancel a Terminal Hardware OrderPreview feature

Sets the status of a terminal hardware order from pending to canceled.

Parameters

No parameters.

Returns

Returns the TerminalHardwareOrder object.

POST /v1/terminal/hardware_orders/:id/cancel
cURL
curl -X POST https://api.stripe.com/v1/terminal/hardware_orders/thor_1Nj6mu2eZvKYlo2CRG74vB9n/cancel \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "thor_1Nj6mu2eZvKYlo2CRG74vB9n",
"object": "terminal.hardware_order",
"amount": 13602,
"created": 1692995962,
"currency": "usd",
"hardware_order_items": [
{
"amount": 11800,
"currency": "usd",
"quantity": 2,
"terminal_hardware_sku": {
"id": "thsku_L5fys7HZ5o02Nc",
"amount": 450,
"country": "AT",
"currency": "eur",
"product": "thpr_MJfof7SLvdkG6T"
}
}
],
"livemode": true,
"metadata": {},
"payment_type": "monthly_invoice",
"po_number": null,
"shipment_tracking": [],
"shipping": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Main Street",
"line2": "",
"postal_code": "94111",
"state": "CA"
},
"amount": 800,
"company": "Rocket Rides",
"currency": "usd",
"email": "test@example.com",
"name": "Jenny Rosen",
"phone": "15555555555"
},
"shipping_method": "standard",
"status": "canceled",
"tax": 1002,
"total_tax_amounts": [
{
"amount": 1002,
"inclusive": false,
"rate": {
"display_name": "Sales Tax",
"jurisdiction": "LOS ANGELES",
"percentage": 8.25
}
}
],
"updated": null
}
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g., )
The Stripe Shell is best experienced on desktop.
$