Magento 2 API Add Shipping Information To Cart For Guest Customer
ENDPOINT : /rest/V1/guest-carts/{cartId}/shipping-information
e.g : http://localhost.magento.com/rest/V1/guest-carts/DnsT4UjkMPPdID4K53h4ToaXMSElc8pI/shipping-information
METHOD : POST
HEADERS : Content-Type application/json
Authorization : Bearer
PAYLOAD:
{ "addressInformation": {
"shipping_address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "35004",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"email": "jdoe@example.com",
"telephone": "512-555-1111"
},
"billing_address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "35004",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"email": "jdoe@example.com",
"telephone": "512-555-1111"
},
"shipping_carrier_code": "freeshipping",
"shipping_method_code": "freeshipping"
}
}
// We are passing shipping and billing address with shipping code. You can change the address as well as shipping method of your choice
Response :
{
"payment_methods": [
{
"code": "cashondelivery",
"title": "Cash On Delivery"
},
{
"code": "banktransfer",
"title": "Bank Transfer Payment"
},
{
"code": "checkmo",
"title": "Check / Money order"
}
],
"totals": {
"grand_total": 27,
"base_grand_total": 27,
"subtotal": 32,
"base_subtotal": 32,
"discount_amount": -5,
"base_discount_amount": -5,
"subtotal_with_discount": 27,
"base_subtotal_with_discount": 27,
"shipping_amount": 0,
"base_shipping_amount": 0,
"shipping_discount_amount": 0,
"base_shipping_discount_amount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"weee_tax_applied_amount": null,
"shipping_tax_amount": 0,
"base_shipping_tax_amount": 0,
"subtotal_incl_tax": 32,
"shipping_incl_tax": 0,
"base_shipping_incl_tax": 0,
"base_currency_code": "USD",
"quote_currency_code": "USD",
"items_qty": 1,
"items": [
{
"item_id": 26,
"price": 32,
"base_price": 32,
"qty": 1,
"row_total": 32,
"base_row_total": 32,
"row_total_with_discount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"tax_percent": 0,
"discount_amount": 0,
"base_discount_amount": 0,
"discount_percent": 0,
"price_incl_tax": 32,
"base_price_incl_tax": 32,
"row_total_incl_tax": 32,
"base_row_total_incl_tax": 32,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Strive Shoulder Pack"
}
],
"total_segments": [
{
"code": "subtotal",
"title": "Subtotal",
"value": 32
},
{
"code": "discount",
"title": "Discount (You Save)",
"value": -5
},
{
"code": "shipping",
"title": "Shipping & Handling (Free Shipping - Free)",
"value": 0
},
{
"code": "tax",
"title": "Tax",
"value": 0,
"extension_attributes": {
"tax_grandtotal_details": []
}
},
{
"code": "testdiscount",
"title": "Discount (You Save)",
"value": -5
},
{
"code": "grand_total",
"title": "Grand Total",
"value": 27,
"area": "footer"
}
]
}
} // return all the available payment methods with cart information
Those days of purchasing costly genuine carbide inserts have faded within the wind and that is why Dijet Inserts our high-end products best carbide inserts become more popular.You will notice that we aim in the direction of offering perfect client satisfaction, Drilling Carbide Inserts examining all of marvelous best cutting tool .
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.batara303 slot
Elevate your eye care experience in Verona with our trusted ophthalmologist. With a focus on improving your quality of life through enhanced vision, we provide comprehensive services tailored to your needs.oculista a verona
Searching for a realistic fake diploma? Look to diplomasmarket.com for a seamless experience. Our experienced team meticulously recreates certificates, ensuring every detail matches the originals. With high-quality materials and thorough proofing, our diplomas are virtually indistinguishable from real ones. Order now for worldwide delivery with reliable shipping options.fake bachelor's degree certificate
Looking for a free and easy way to watch movies online? Visit Soap2day at TheSoapGate.com for a vast collection of films to enjoy, all without signing up! soap2day.to
Share your love with BirthdayWishesText.com! Our heartfelt messages convey your warmest wishes with sincerity and affection, making birthdays truly special for your loved ones.BirthdayWishesText
Get inspired by Tang Jiahong's perseverance and passion as he makes Taiwan proud on the Olympic stage. 巴黎奧運中華隊選手
Download the 4K OTT app and enjoy a seamless streaming experience with premium picture quality.4k ott iptv
Serve, volley, and smash your way to victory with the right pickleball paddle in hand. Our guide helps you make the winning choice.pickleball paddle weight guide
Uncover the winning formula with Jason Rowley, CEO of the Phoenix Suns and Mercury, whose Navy tenure instills resilience and determination in every aspect of sports management. Experience the fusion of military ethos and basketball brilliance.Jason Rowley
I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information.주소위키
Start your journey to jackpot riches with Jackpot Slot Community's trusted recommendations. With our top-ranked slot sites, you'll enjoy fair gameplay, lucrative bonuses, and unparalleled excitement with every spin.온라인슬롯머신
Elevate your coffee game with specialty grade beans, meticulously graded to ensure a consistently exceptional brew.specialty grade coffee
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community.mgm 카지노
Simplify your weight loss journey with our convenient options. Purchase Ozempic for weight loss online effortlessly, and let us guide you towards a healthier lifestyle.saxenda prescription online
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site