Shopify returns value 2 pence lower than it should be - shopify

I'm trying to do some reconciliation between our APIs pulls for Refunds and what is shown within Shopify analytics.
Looking at this example (below) it show the return value of £30.83 but it should show £30.85 (37.50 - 6.65 = 30.85). The data from our pull calculates to £30.85. But why is shopify showing 2pence less.
Does anyone know why this is?
Thank you.
https://i.stack.imgur.com/bvXVV.png

Related

Using Shopify API to create new product/variant

Hi I need to use Shopify's API in order to perform the following procedure but have no clue where to start. I have tried looking online at tutorials but find them very confusing. Does anyone know where I can start, or who I could pay to complete this task please.
Shopify is limited to 100 variants and I am trying to sell a product by the linear metre. I would like for the API to generate on request a new (temporary) variant dependnig on what size the customer enters.
1 - Customer enters size in linear metres on the product page
2 - Customer clicks ADD TO CART
3 - API creates a new variant of the selected product, calculates it's price based on the selected product multiplied by the number of metres they have entered
4 - The new variant is added to the cart
5 - After an hour, the new variant must be deleted
Does anyone know where I can start with this please? I have played around with Postman and can generate a new variant using that, but have no idea where to put the code etc.
Thanks
Jon

GA4: total revenue is 0 and Monetization screen not showing data

I'm trying to integrate ecommerce tracking to a website. The problem is the events are captured and I'm sending all the data.
This is the data I'm sending
{"event":"purchase","currency":"EUR","value":21.85,"items":[{"item_id":"3cd937-debc-416d-955f-8ccc84a751","item_name":"anuy-namer","affiliation":"","coupon":"","currency":"EUR","discount":0,"index":1,"item_brand":"Fontastic","item_category":"THeadset / Lautsprecher","item_category2":"Unterhaltungk - Körer","item_category3":"","item_category4":"","item_category5":"","item_list_id":"31baa491-4c6f-8671-c808f0cb2100","item_list_name":"Fontastic BT In-Ear Headset S1 blau Bluetooth-Kopfhörer","item_variant":"Mit Begleiterliche Musikfans.","location_id":"","price":14.95,"quantity":1}],"transaction_id":"9826314a-46af-4304-a057-dc77f4a799b0","affiliation":"446c6345-9193-4841-9f4a-e06e8cf7220e","tax":"3.4917","shipping":"6.9000","coupon":"","gtm.uniqueEventId":12}
tbh I'm not sure if the data is wrong but the monetization reports only show number of purchasers and not anything else. It's all zeros. in the conversion screen the total revenue is not calculated.
Check if you have been given permission to see revenue. When someone gives you access, there are several options including one to hide revenue.
It turned out that the setup wasn't correct. I needed to add custom trigger to the events so It can be captured.
I also found some problem with the structure of the object, (currency,value , items) needed to be added inside ecommerce object.

ebay finding api finditemsbykeywords pagination problem

I tried the following calls:
https://svcs.ebay.com/services/search/FindingService/v1?X-EBAY-SOA-OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.13.0&keywords=waschbecken&RESPONSE-DATA-FORMAT=JSON&GLOBAL-ID=EBAY-DE&outputSelector(0)=ItemSpecifics&paginationInput.entriesPerPage=100&paginationInput.pageNumber=2
then on the ebay API explorer for the post request body,
<findItemsByKeywordsRequest xmlns="http://www.ebay.com/marketplace/search/v1/services">
<keywords>waschbecken</keywords>
<paginationInput>
<entriesPerPage>100</entriesPerPage>
<pageNumber>2</pageNumber>
</paginationInput>
</findItemsByKeywordsRequest>
but I do not get 100 searchResult count per page, in Postman I get 32 searchResult and in API explorer 56; furthermore 2nd page forward I do not get any searchResult count, I am trying to understand is there something wrong that I am writing in the call or there is some another problem or any parameter I am missing.
Thanks for the help.
I am also running into this problem. I am guessing that the pagination results are for the entire store, but not for the search by keywords....Seems like they dropped the ball on this.
Sorry, I did not update on the question, I forgot about it.
The problem was not with the pagination, the problem is the variants.
Simply explained, the output of the query doesn't count for the variants listed on the Ebay search by the same seller. If you have from a same seller the same product with the different variant, the query does not show the variants from those product from the same seller just different variant, as it would if you do an ebay search.
The mechanism of the query is different as that of the product search on Ebay.

Issue with page_info and products.json

I'm a developer working on a private app to manage the database and the inventory of a Shopify Online Store with Symfony and I'm looking for getting all products or inventory of the store.
I tried with the url https://{{api_key}}:{{password}}#{{shopify_domain}}/admin/products.json , but it gets only 50 to 250 products and there's more than 200 000 products on this online Store. I also tried with /admin/inventory_items, but it returns missing or invalid parameter.
Recently, I checked the documentation of cursor-based pagination and I saw that there's a parameter call page_info but I didn't know how to get it. So after many researches, I learned that I had to find the parameter on the last product displayed to go to the next product which will be on the next page. I also seen that there was a parameter on GraphQL which is called storefrontId, it looked like page_info so I tried to add it to the URL but it didn't worked. I noticed that there were a = to the end of the URL, so I tried it with =0 =1 =2 and =3, also with =rel=next =next and =page=2 but it returns the same error : { "errors": { "page_info": "Invalid value." } }
For people who will find me a solution with downloading data and uploading it daily, this is not relevant because on this online store there is more than 200 000 products and the employee aren't developer.
If there is a possibility to update and display the database in real-time, without uploading a file, it would be perfect !
If you know how to help me, I'm open to suggestions !
Thanks,
Karim HADJ-ABDELKADER
The parameter page_info should be unique ID and not just number, look at this docoment about the pagination paramenters
https://shopify.dev/docs/api/usage/pagination-rest#parameters
for example :
https://{shop}.myshopify.com/admin/api/2019-07/products.json?page_info=hijgklmn&limit=3

ebay Trading API Call "GetItemTransactions" results mismatch

I have got a small question. It would be very kind of anyone who can answer this.
Ok, when I go to the Purchase History page of a ebay product via the website. Say for eg:-
http://offer.ebay.com/ws/eBayISAPI.dll?ViewBidsLogin&_trksid=p2047675.l2564&rt=nc&item=160907756849
I can clearly see that it shows that total 365 items have been sold and the list shows the last 100 transactions which is great.
Ebay Trading API call "GetItemTransactions" Link is
http://developer.ebay.com/devzone/xml/docs/Reference/ebay/GetItemTransactions.html
However, when I make the ebay trading api call "GetItemTransactions" to get the same, I just get back 50 transactions and not the last 100 like the website. I am getting the total items sold number 365 correctly. I am only sending the required fields
<?xml version='1.0' encoding='utf-8'?>
<GetItemTransactionsRequest xmlns='urn:ebay:apis:eBLBaseComponents'>
<RequesterCredentials>
<eBayAuthToken>My Ebay Auth Token...</eBayAuthToken>
</RequesterCredentials>
<ItemID>160907756849</ItemID>
<DetailLevel>ReturnAll</DetailLevel>
</GetItemTransactionsRequest>
and getting back this
<PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
<TotalNumberOfEntries>50</TotalNumberOfEntries>
</PaginationResult>
<HasMoreTransactions>false</HasMoreTransactions>
<TransactionsPerPage>100</TransactionsPerPage>
<PageNumber>1</PageNumber>
<ReturnedTransactionCountActual>50</ReturnedTransactionCountActual>
As the Result shows I only get 50 transaction objects in the element "TransactionArray" as "ReturnedTransactionCountActual" is showing 50 and the "HasMoreTransactions" shows as false, meaning there are no more transactions beyond this i.e 50 clearly indicating a mismatch between the api results and the website results.
Why doesnt the api give back the last "100" transactions like the website and only giving back "50". Am I missing something or is this a bug??
Any help is greatly appreciated.
My two cents says that some of these order happened more then 30 days ago. Look at ModTimeFrom. (Just looked at link, You Date Range is from Jun-21-13 09:59:20 PDT to Apr-17-13 19:25:26 PDT. Clearly more then 30 days)
If you don't specify a ModTimeFrom/ModTimeTo filter, the NumberOfDays
time filter is used and it defaults to 30 (days).
You have not set either, NumberOfDays or ModTimeFrom/ModTimeTo. Thus the call defaults to 30 days. I'm guessing that on the Ebay Site the date filter is much larger / not applied.