enable cod on custom shipping method selected using draft order API and other API?

saurabh20394
New Member
2 0 0

How can I enable COD payment option on custom shipping method selected using draft order API and other API?

Reply 1 (1)
csam
Shopify Staff
Shopify Staff
267 40 43

Hi @saurabh20394 

As long as you have COD enabled in the shop (under Settings > Payments) it will appear as an option at checkout when the customer is sent the invoice for the order. If you're not planning to send the invoice to the customer, you can complete the order and mark it as pending, in order to collect payment from the customer at a later time. 

You can read more and see an example here: 

https://shopify.dev/api/admin/rest/reference/orders/draftorder#complete-unstable

 

The following flows are supported:

 

  • Create a draft order that calculates taxes and totals but accept payment from the customer outside of Shopify.
  • Create a draft order and send an invoice to the customer.

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog