Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://magento-host/index.php/rest/V1/integration/customer/token?
- username=aditya.shah@test.com&password=test@123
- http://magento-host/rest/V1/carts/mine
- http://magento-host/index.php/rest/default/V1/carts/mine/items
- {
- "cartItem": {
- "sku": "HKrh15hc", <product SKU>
- "qty": 5,
- "quote_id": "75", <Quote ID - Cart ID [see. step 2]>
- "product_option": {
- "extension_attributes": {
- "configurable_item_options": [
- {
- "option_id": "93",
- "option_value": 49
- },
- {
- "option_id": "141",
- "option_value": 168
- }
- ]
- }
- },
- "extension_attributes": {}
- }
- }
- http://magento-host/index.php/rest/V1/carts/mine/shipping-information
- {
- "addressInformation": {
- "shippingAddress": {
- "region": "MH",
- "region_id": 0,
- "country_id": "IN",
- "street": [
- "221,Baker-street (e)"
- ],
- "company": "Lumos",
- "telephone": "12345678",
- "postcode": "400001",
- "city": "Mumbai",
- "firstname": "Aditya",
- "lastname": "Shah",
- "email": "Aditya@Shah.com",
- "prefix": "address_",
- "region_code": "MH",
- "sameAsBilling": 1
- },
- "billingAddress": {
- "region": "MH",
- "region_id": 0,
- "country_id": "IN",
- "street": [
- "221,Baker-street (e)"
- ],
- "company": "Lumos",
- "telephone": "12345678",
- "postcode": "4000001",
- "city": "Mumbai",
- "firstname": "Aditya",
- "lastname": "Shah",
- "email": "Aditya@Shah.com",
- "prefix": "address_",
- "region_code": "MH"
- },
- "shipping_method_code": "flatrate",
- "shipping_carrier_code": "flatrate"
- }
- }
- http://magento-host/index.php/rest/V1/carts/75/payment-methods
- http://magento-host/index.php/rest/V1/carts/mine/order
- {
- "paymentMethod": {
- "method": "checkmo"
- }
- }
Add Comment
Please, Sign In to add comment