Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

How to create COD order?

shoppartnerm86
Tourist
5 0 2

My order create is successful but order is waiting for payment processing in the shopify admin console

 

Of course, since it is a COD order, payment processing is never going to complete. But since the shopify admin console is waiting for this payment processing to complete, the order is not considered complete

 

As a result, we keep seeing this "Payment is pending" on top of COD orders

 

So in other words, question is: How do we tell Shopify to stop waiting for payment processing in case of COD orders?

 

Screen Shot 2022-03-30 at 1.34.21 PM.png

Replies 5 (5)

Skye
Shopify Staff
1070 96 191

Hi, @shoppartnerm86.

 

Thanks for posting today! I hope you're well. As the payment is technically still pending, and the order itself is technically unfulfilled, this is expected behavior.

 

The recommended steps for handling this situation would depend on what method you are using for COD. Are you using a COD service or are you delivering the order yourself? Depending on the situation, the best process would be to mark the order as Fulfilled once it has been shipped/sent for delivery. Once the cash exchanges hands you can head back to Shopify and mark the order as paid by selecting More Actions > Mark as Paid. For your convenience, here is our guide for Fulfilling Orders.

 

In the meantime, I would love to hear more about your store. Is this your first ecommerce business? If so, I recommend checking out the Launch Checklist to make sure you have all your bases covered.

Skye | Social Care @ 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 the Shopify Help Center or the Shopify Blog
shoppartnerm86
Tourist
5 0 2

Hello,

Thank you so much for responding. We have been stuck for days without a solution, and very grateful for your response

 

My client runs a shopify plus store which is storehealthdev.myshopify.com, and I'm trying to develop an app for it which can create an order when we receive a message through whatsapp

 

I can create simple (prepaid) orders where payment is made through Razorpay/Stripe (In India)

 

However, when I try to create a COD order, even after specifying the transactions[0].gateway as a custom payment gateway that I have created in my store, when I create the order, the response shows that processing_method is "" OR blank (instead of "manual")

 

I believe it is this issue that leads the Shopify admin console to show me a popup saying that the payment is processing and not to ship until payment is received

 

The request I am making looks like the following and I can confirm that I do have a manual payment option setup in the store payments page which is Cash on Delivery (COD):

 

{
    "order": {
        "customer": {
            "first_name": "emm",
            "last_name": "kay",
            "id": "6133275590826",
            "phone": "+914244590110",
            "tags": "mobile_customer"
        },
        "test": true,
        "financial_status": "pending",
        "transactions": [
            {
                "kind": "sale",
                "status": "pending",
                "amount": 848,
                "gateway": "Cash on Delivery (COD)",
                "processing_method": "manual"
            }
        ],
        "line_items": [
            {
                "quantity": 1,
                "variant_id": "41891714629802"
            },
            {
                "quantity": 1,
                "variant_id": "41891714990250"
            }
        ],
        "phone": "+914244568890",
        "source_name": "MOBILE_APP",
        "tags": "COD, ORDERED_FROM_APP",
        "shipping_address": {
            "address1": "dsdsds",
            "address2": "jamshedpur",
            "city": "East Singhbhum",
            "company": null,
            "country": "India",
            "firstName": "Jane shipping",
            "lastName": "this test order",
            "latitude": 22.7740354,
            "name": "name in shipping address",
            "phone": "+911234567890",
            "province": "Jharkhand",
            "zip": "831006"
        },
        "billing_address": {
            "address1": "dsdsds",
            "address2": "jamshedpur",
            "city": "East Singhbhum",
            "company": null,
            "country": "India",
            "firstName": "billing address",
            "lastName": "this test order",
            "latitude": 22.7740354,
            "longitude": 86.1828047,
            "phone": "+911234567890",
            "province": "Jharkhand",
            "zip": "831006"
        }
    }
}

 

shoppartnerm86
Tourist
5 0 2

In short, how do I create an order using the Admin REST API so that in the response I get "processing_method": "manual"

odap-985
Tourist
3 0 0

hey mate, hope u find a solution by now,I am too trying to create an order using shopify admi api,it should be simple post request but it's not working for me, can u show me how ur doing it pls?

Skye
Shopify Staff
1070 96 191

Hi, @shoppartnerm86.

 

I apologize for the delayed response! Currently, providing API support over forums is outside our scope of support. However, it appears you posted in the Technical Q&A forum. I recommend re-posting to the API forum where it has a better chance of being resolved. I will move this post to the correct board as well, however re-posting will move it to the top.

Skye | Social Care @ 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 the Shopify Help Center or the Shopify Blog