Skip to content

Instantly share code, notes, and snippets.

@parekhreena
Last active September 21, 2020 11:16
Add items to Guest Cart
REQUEST TYPE: POST
REQUEST URL: {{baseUrl}}/{{storecode}}/V1/guest-carts/{{cartId}}/items
REQUEST HEADERS: Content-Type : application/json
REQUEST BODY:
{
"cartItem": {
"sku": "test-sku",
"qty": 1,
"quote_id": "{{cartId}}"
}
}
SAMPLE RESPONSE:
{
"item_id": {{item-id}},
"sku": "test-sku",
"qty": 1,
"name": "test-item-1",
"price": 314,
"product_type": "simple",
"quote_id": "{{quote-id}}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment