How to identify COD orders?(Orders API)

Solved
Highlighted
New Member
3 0 0

I want to figure out whether a particular order is of COD type. As of now I am checking whether the gateway field in the order data contains the value "Cash on Delivery (COD)". But for some stores, the value changes.(like cash_on_delivery). Any  suggestions on how to do this?

0 Likes

Success.

Community Manager
Community Manager
561 34 65

Hi @sanjeev_,

 

Those are two different payment gateways. The "Cash on Deliver (COD)" gateway is the default cash on delivery option that exists in all shops. The "cash_on_delivery" gateway is from "Advanced Cash on Delivery" app, available to Indian merchants. Check it out here: https://help.shopify.com/en/manual/apps/apps-by-shopify/advanced-cash-on-delivery/.

 

Depending on what you're looking at, you may need to watch out for both.

 

Cheers,

1 Like