Why the site Mtimpex.com does not returns the shipping method {"data": { "method": "cash_on_deliver

JMango360JMango360 Member Posts: 3

Hi LightSpeed,

We have a customer names Mtimpex.com. The shop ID is 15250. We provide the app solutions for the customer and currently the app is having a block issue with the shipping method COD (Standard Zahlen an der Tur/.../Payer à la porte).

Let me explain why that happens:

- We support the shipping method 'Cash_on_delivery' and by checking the response from LightSpeed api. If the response includes the below information, we know that is COD:

{{"data": { "method": "cash_on_delivery",}}

And then, LightSpeed API will return us the payment method also COD.

Here is an example on our test site and it is also the expectation data:

"shipment_method": {
    "id": "core|642232|2200356",
    "tax_rate": 0,
    "price_excl": 0,
    "price_incl": 0,
    "base_price_incl": 0,
    "base_price_excl": 0,
    "title": "Cash on delivery",
    "data": {
      "method": "cash_on_delivery",
      "shipment_id": 642232,
      "shipping_value_id": 2200356
    },
    "discount": false,
    "is_service_point": false
  },

But, when we tried to GET the checkout object from our site, the response does not include the method value:

[GET] https://api.webshopapp.com/nl/checkouts/273301331.json?&checkout_id=273301331

  "shipment_method": {
    "id": "paazl|delivery|0|UPS_STANDARD_COD",
    "tax_rate": 0.21,
    "price_excl": 8.22,
    "price_incl": 9.95,
    "base_price_incl": 9.95,
    "base_price_excl": 8.22,
    "title": "Standard Zahlen an der Tür/ Betalen aan deur/ Payment at door/ Payer à la porte",
    "data": [],
    "discount": false,
    "is_service_point": false
  },


Please your support in this case.

Thanks,

Answers

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 406 moderator

    Hi @JMango360,

    Thank you for contacting us.

    So what you're saying is that you want to use the "cash_on_delivery" method in shop 15250? If so, I've checked the shipping settings in the back office and these methods are hidden, so that is why you can't choose it when you're getting the shipment methods via API.

    So the merchant needs to activate these methods first.

    I hope this helps.

  • JMango360JMango360 Member Posts: 3

    Hi Lucien,

    Thank you. Let me ask the merchant.

Sign In or Register to comment.