Categories
CMS Magento Mastering Development

How to pass the card details for the Magento API [POST]: V1/carts/mine/payment-information for the payment method stripe_payments_checkout_card

I have an iOS native app which communicates through Magento Rest APIs with my Magento Store, I would like to know how to pass the card details (Token, CVV, Exp Year, Exp Month, Last 4) in JSON format for the payment method "method":"stripe_payments_checkout_card" in the Magento API: [POST] V1/carts/mine/payment-information Note: I use the Stripe Official […]

Categories
CMS Magento Mastering Development

Magento 2 API invoice items showing as double

For some reason on a invoice more QTY is returned than what exists in the items array. It seems to only do this on configurable products however how should one handle this from the API? Full example: https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-invoice.html Short part in question: { "base_discount_tax_compensation_amount": 0, "base_price": 52, "base_price_incl_tax": 52, "base_row_total": 52, "base_row_total_incl_tax": 52, "base_tax_amount": 0, […]

Categories
CMS Magento Mastering Development

How to modifiy order response Rest API magento 2

How i can modify order response only needed fields Request url http://localhost/magento2/index.php/rest/V1/orders?searchCriteria[currentPage]=1&searchCriteria[pageSize]=1 Reponse: { "items": [ { "adjustment_negative": 0, "adjustment_positive": 0, "base_adjustment_negative": 0, "base_adjustment_positive": 0, "base_currency_code": "USD", "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_grand_total": 78.61, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_shipping_amount": 5, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 5, "base_shipping_invoiced": 5, "base_shipping_refunded": 5, "base_shipping_tax_amount": 0, […]