PAYMENT RECIVED TIMESTAMP WITH DATE

PAYMENT RECIVED TIMESTAMP WITH DATE

yashrastogi2020
Shopify Partner
26 0 1

Please suggest how to retrieve the payment receive date with timestamp against the order, For example, Order was created yesterday with CASH on DELIVERY & payment was received for the order  on next day from a Credit card or any other mode So we want the get the actual payment receive date from a customer in API, Please suggest in which API we can get the timestamp details for  an particular order 

Replies 3 (3)

RalfatGadget
Shopify Partner
11 1 2

For Orders, see the Orders API: https://shopify.dev/api/admin-rest/2022-01/resources/order#top


For Transactions (exchange of money), see the Order Transaction API: https://shopify.dev/api/admin-rest/2022-01/resources/transaction#top

Note that an Order can have several Transactions, and that you need to look at the correct kind of transaction for your payment method. As an example, for credit card transactions: look for kind 'sale' or 'capture' in the Transactions API since that constitutes the transfer of funds (a transaction of kind 'auth' does not)

Former Payments product manager @ Shopify, now at making Shopify app development easier for everyone @ Gadget.dev
yashrastogi2020
Shopify Partner
26 0 1

Hi Ralfat,

Thanks for the suggestion.

But please read the problem statement again carefully, and then evaluate the reply that you gave.
The query is altogether different to what you are trying to say.

 

Regards,

Yash

RalfatGadget
Shopify Partner
11 1 2

The problem statement?

Your post title is "Payment received timestamp with date".
Your post description says: "Please suggest how to retrieve the payment receive date with timestamp against the order, ... So we want the get the actual payment receive date from a customer in API, Please suggest in which API we can get the timestamp details for  an particular order "

I interpret this as you wanting to get the date you received the payment for a particular order. The Transaction API has the date you received payments for any particular order, provided you look at a transaction that represent a transfer of money (such as kind 'sale' and 'capture' for credit cards)

Former Payments product manager @ Shopify, now at making Shopify app development easier for everyone @ Gadget.dev