cancel
Showing results for 
Search instead for 
Did you mean: 

REST API For Payment Methods

REST API For Payment Methods

Hi All,

 

I am sending request to get all the available payment methods to

 

https://yourdomain.com/rest/default/V1/carts/mine/payment-information"

 

I am getting the following response. It is not returning any of payment methods. Its showing null. In my admin settings i enabled Check , Cash on delivery and Wallet systems.

{
    "payment_methods": null,
    "totals": {
        "grand_total": 116324.08,
        "base_grand_total": 134845.07,
        "subtotal": 116119.08,
        "base_subtotal": 116119.08,
        "discount_amount": 0,
        "base_discount_amount": 0,
        "subtotal_with_discount": 116119.08,
        "base_subtotal_with_discount": 116119.08,
        "shipping_amount": 205,
        "base_shipping_amount": 205,
        "shipping_discount_amount": 0,
        "base_shipping_discount_amount": 0,
        "tax_amount": 18520.99,
        "base_tax_amount": 18520.99,
        "weee_tax_applied_amount": null,
        "shipping_tax_amount": 0,
        "base_shipping_tax_amount": 0,
        "subtotal_incl_tax": 134640.07,
        "shipping_incl_tax": 205,
        "base_shipping_incl_tax": 205,
        "base_currency_code": "INR",
        "quote_currency_code": "INR",
        "items_qty": 41,
        "items": [
            {
                "item_id": 188,
                "price": 1318.68,
                "base_price": 1318.68,
                "qty": 1,
                "row_total": 1318.68,
                "base_row_total": 1318.68,
                "row_total_with_discount": 0,
                "tax_amount": 210.33,
                "base_tax_amount": 210.33,
                "tax_percent": 5,
                "discount_amount": 0,
                "base_discount_amount": 0,
                "discount_percent": 0,
                "price_incl_tax": 1529.01,
                "base_price_incl_tax": 1529.01,
                "row_total_incl_tax": 1529.01,
                "base_row_total_incl_tax": 1529.01,
                "options": "[]",
                "weee_tax_applied_amount": null,
                "weee_tax_applied": null,
                "name": "Nayo Pink & Blue Printed Cold-Shoulder Tunic"
            },
            {
                "item_id": 189,
                "price": 1846.68,
                "base_price": 1846.68,
                "qty": 10,
                "row_total": 18466.8,
                "base_row_total": 18466.8,
                "row_total_with_discount": 0,
                "tax_amount": 2945.45,
                "base_tax_amount": 2945.45,
                "tax_percent": 5,
                "discount_amount": 0,
                "base_discount_amount": 0,
                "discount_percent": 0,
                "price_incl_tax": 2141.23,
                "base_price_incl_tax": 2141.23,
                "row_total_incl_tax": 21412.25,
                "base_row_total_incl_tax": 21412.25,
                "options": "[]",
                "weee_tax_applied_amount": null,
                "weee_tax_applied": null,
                "name": "U.S. Polo Assn. Men Blue Polo T-shirt"
            },
            {
                "item_id": 192,
                "price": 1846.68,
                "base_price": 1846.68,
                "qty": 10,
                "row_total": 18466.8,
                "base_row_total": 18466.8,
                "row_total_with_discount": 0,
                "tax_amount": 2945.46,
                "base_tax_amount": 2945.46,
                "tax_percent": 5,
                "discount_amount": 0,
                "base_discount_amount": 0,
                "discount_percent": 0,
                "price_incl_tax": 2141.23,
                "base_price_incl_tax": 2141.23,
                "row_total_incl_tax": 21412.26,
                "base_row_total_incl_tax": 21412.26,
                "options": "[]",
                "weee_tax_applied_amount": null,
                "weee_tax_applied": null,
                "name": "Women's Fancy Cotton Silk Saree ( PINK )"
            },
            {
                "item_id": 195,
                "price": 1846.68,
                "base_price": 1846.68,
                "qty": 10,
                "row_total": 18466.8,
                "base_row_total": 18466.8,
                "row_total_with_discount": 0,
                "tax_amount": 2945.45,
                "base_tax_amount": 2945.45,
                "tax_percent": 5,
                "discount_amount": 0,
                "base_discount_amount": 0,
                "discount_percent": 0,
                "price_incl_tax": 2141.23,
                "base_price_incl_tax": 2141.23,
                "row_total_incl_tax": 21412.25,
                "base_row_total_incl_tax": 21412.25,
                "options": "[]",
                "weee_tax_applied_amount": null,
                "weee_tax_applied": null,
                "name": "U.S. Polo Assn. Men Orange Polo T-shirt"
            },
            {
                "item_id": 196,
                "price": 5940,
                "base_price": 5940,
                "qty": 10,
                "row_total": 59400,
                "base_row_total": 59400,
                "row_total_with_discount": 0,
                "tax_amount": 9474.3,
                "base_tax_amount": 9474.3,
                "tax_percent": 5,
                "discount_amount": 0,
                "base_discount_amount": 0,
                "discount_percent": 0,
                "price_incl_tax": 6887.43,
                "base_price_incl_tax": 6887.43,
                "row_total_incl_tax": 68874.3,
                "base_row_total_incl_tax": 68874.3,
                "options": "[]",
                "weee_tax_applied_amount": null,
                "weee_tax_applied": null,
                "name": "Biba Women Red & Beige Embroidered Kurta with Skirt & Dupatta"
            }
        ],
        "total_segments": [
            {
                "code": "subtotal",
                "title": "Subtotal",
                "value": 116119.08
            },
            {
                "code": "shipping",
                "title": "Shipping & Handling (Flat Rate - Fixed)",
                "value": 205
            },
            {
                "code": "tax",
                "title": "Tax",
                "value": 18520.99,
                "extension_attributes": {
                    "tax_grandtotal_details": [
                        {
                            "amount": 18520.99,
                            "rates": [
                                {
                                    "percent": "2.5",
                                    "title": "GST CESS + SGST5"
                                },
                                {
                                    "percent": "2.5",
                                    "title": "GST CESS + CGST5"
                                }
                            ],
                            "group_id": 1
                        }
                    ]
                }
            },
            {
                "code": "grand_total",
                "title": "Grand Total",
                "value": 134845.07,
                "area": "footer"
            }
        ]
    }
}