/guest-cart-items.json Secret
Last active
September 21, 2020 11:16
Add items to Guest Cart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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