d
Topic
Posts:
5
9 months ago

"paid by customer" field in shopify's order dashboard - how can I modify it though the API ? This post is outdated

Hello, I'm using the Shopify Rest API to browse store items and send orders to my dashboard. Everything is working fine. The only thing I can't find is how can I modify the "paid by customer" field in the order details. When I send an order it all appears as it should (amounts, taxes, shipping, products, customer) but I can't make the "paid by customer" field be different than 0.00 even though I'm sending that the financial_status is "paid". Any ideas ?

 

R.

i
Replies
Posts:
3745
9 months ago

Maybe that field is meant to reflect how much the customer paid when they used a Gateway and actually spent money? 

When you make up orders with the API, no money transacts so it kinda makes sense to leave this amount as zero in the sense that there really was no customer? 

If all the numbers do in fact add up for you, why does this particular field matter? 

I just examined an order in details too, and there is no paid_by_customer attribute. What part of an order has that in your case?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Posts:
5
9 months ago

So a customer wants to sync another sales channel with his shopify dashboard, because all of his warehouse/shipping and accounting softwares work with shopify. 

Since I'm trying to add a new channel, I'm making the transaction through stripe, so there's no transaction passing though shopify. 

This particular field matters because of the accounting software.  

I'm uploading an image just to clarify a bit more.

Screen shot 2016 09 23 at 3.25.55 pm thumb
Posts:
5
9 months ago

So a customer wants to sync another sales channel with his shopify dashboard, because all of his warehouse/shipping and accounting softwares work with shopify. 

Since I'm trying to add a new channel, I'm making the transaction through stripe, so there's no transaction passing though shopify. 

This particular field matters because of the accounting software.  

I'm uploading an image just to clarify a bit more.

Screen shot 2016 09 23 at 3.25.55 pm thumb
Posts:
3745
9 months ago

Cool. The thing is, that image is the Shopify Admin. It shows you the internal Shopify view of the universe. There is no paid_by_customer field in an API order... if you tack on .json to the order there, and check, you'll see everything. Find the zero value of concern from that. Maybe there is a way to change that value then.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Posts:
5
9 months ago

I'll give it a shot and tel you know. Thank you (:

Posts:
26
7 months ago

Did you ever figure out how to change this state?

I am also trying to, after order creation, change financial_status via the API from 'pending' to 'paid' and it is not storing the value in shopify.

Posts:
5
7 months ago

Yes, you need to create a transaction for the order. (:

Posts:
2
6 months ago

I have the same problem, however, when I try this:

 

{
  "transaction": {
    "amount": "15.00",
    "kind": "authorization"
  }
}

I get this:

 

{

"errors": 

{

"kind": [

  "authorization is not a valid transaction"

],

}

}

Posts:
26
5 months ago

Hi Alejandro,

On researching this I found that I needed to pass a transaction at the same time I created the order via the API.  If I created the order first, then tried to send a transaction, I would get the error you show.

See this thread for my findings and workaround:

https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/change-status-of-order-351685

I think this is an error on how the transaction object is initialized (or not) on original order creation and I wish Shopify Devs would look into it and fix it (or tell me what I am doing wrong), but for now the workaround has let me get past this.

 

Posts:
3745
5 months ago

Be nice to have a succint, concise round-up of what works and the steps to take to make nice Orders. Adam... there is gold in there. As you know well, there are many many gotchas in playing with Orders in the API, and you're slowly revealing some of them, to great value for the whole community!

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com