carts/{cartId}

carts/{cartId}

get/V1/carts/{cartId}

Enables an administrative user to return information for a specified cart.

Request
path Parameters
cartId
required
integer
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

Response samples
{
  • "id": 0,
  • "created_at": "string",
  • "updated_at": "string",
  • "converted_at": "string",
  • "is_active": true,
  • "is_virtual": true,
  • "items": [
    ],
  • "items_count": 0,
  • "items_qty": 0,
  • "customer": {
    },
  • "billing_address": {
    },
  • "reserved_order_id": "string",
  • "orig_order_id": 0,
  • "currency": {
    },
  • "customer_is_guest": true,
  • "customer_note": "string",
  • "customer_note_notify": true,
  • "customer_tax_class_id": 0,
  • "store_id": 0,
  • "extension_attributes": {
    }
}

carts/{cartId}

put/V1/carts/{cartId}

Assigns a specified customer to a specified shopping cart.

Request
path Parameters
cartId
required
integer

The cart ID.

Request Body schema:
customerId
required
integer

The customer ID.

storeId
required
integer
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Request samples
{
  • "customerId": 0,
  • "storeId": 0
}
Response samples
true