Transfers API

RosalieL
Shopify Partner
11 0 67

Both developers and clients have been asking for this for ages. Any chance of a trabsfers API being done soon?

It is really exasperating that there is no app for exporting or extracting transfer data. There is even an API that I can use in a browser to see the data in JSON format. /admin/transfers.json WHY is there no support for getting this data? It is really frustrating.

I undertstand that this admin endpoint is not part of the official API but how long would it take to expose transfers officially. There are heaps of threads on both the developer forums (the latest said it was promised to be coming at a conference) and there are also threads in the normal shopify forums to be able to export transfers. There are no apps to do this because there is no supported API.
Being able to export transfers would enable the building of a simple Purchase order. 

 

Replies 14 (14)
GhostApps
Shopify Partner
145 1 15

Hi, my app Simple Purchase Orders https://apps.shopify.com/simple-po has people on a weekly basis ask if we integrate with the Transfer API. The app allows you to set up suppliers and import products and their cost prices. You can then automatically generate purchase orders to reorder stock and transfer it into your Shopify inventory when it arrives.

Its pretty much got all the functionality of the Transfer API with the ability to make POs. Please check it out and let me know if you have any questions.

itsgookit
Excursionist
12 0 3

+1 same here

LeanderrJ
New Member
1 0 1

I'd also like to add to this request. It has been requested in other threads and this seems like a basic feature for every Shopify store with any other system on the backend.

 

Without this API released the feature is basically useless for many merchants

n_amann
New Member
2 0 4

Same here. Please make this available. This basic feature would be incredibly useful.

andylai_owl
Tourist
4 0 2

Looking forward to this API.

Beacon
Tourist
3 0 1

I find it odd that even a basic task like just printing a transfer isn't supported within Shopify. 

den232
Shopify Partner
96 1 25

It's been 2.4 years since you posted this ... the browser link works ... any luck on the API, perhaps from graphQL?   Thanks!  jb

KisukaKiza
Shopify Partner
38 0 31

I also need a transfer API or graphQL endpoint. Kinda confused why this functionality doesn't exist yet. Even the functionality to 'import' or 'export' transfers would be helpful.

Thomas_Lang1
Shopify Partner
213 6 43

the way I do this is a bit hacky, but for me it works, so I'd like to share it in the hopes that it will help someone else. (at least untill shopify gives us a way to do this through an official endpoint.) only issue currently is that the destination location is missing (only source location is available, but if you dont have too many transfers between more than 2 locations it will work for you

or you can use the query parameter to look for a certain locations transfers: admin/transfers.json?query=location_name if the source is the same as the location name you know it was not to this location, and you could skip it, this way you would only get transfers to this location (I haven't used this part, and I know it's not ideal, but better than nothing)

I use nodejs to fetch the transfers json.

if you are in the shopify admin, open up transfers, add .json after the url and press enter:

Thomas_Lang1_0-1624821143177.png

open the google chrome webinspector, and find the get request to the transfers.json endpoint, then copy it as nodejs fetch:

 

Thomas_Lang1_1-1624821221976.png

 

paste it into an editor like webstorm, add the node-fetch module and you will be able to fetch the json (the cookies are valid for about 24 hours, so if you need to fetch again you will need to do above steps again.

 

your code should look something like this (i removed my cookie data and sessionids ofcourse):

 

 

 

const fetch = require('node-fetch');

async function getTransfers() {
    let res = await fetch("https://xx.myshopify.com/admin/transfers.json", {
        "headers": {
            "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
            "accept-language": "en-US,en;q=0.9,nl;q=0.8",
            "cache-control": "no-cache",
            "pragma": "no-cache",
            "sec-ch-ua": "\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"",
            "sec-ch-ua-mobile": "?0",
            "sec-fetch-dest": "document",
            "sec-fetch-mode": "navigate",
            "sec-fetch-site": "none",
            "sec-fetch-user": "?1",
            "upgrade-insecure-requests": "1",
            "cookie": "_master_udr=verylongstring; new_admin=1; _secure_admin_session_id=session_id; _secure_admin_session_id_csrf=csrf; koa.sid=sid; koa.sid.sig=sid.sig; _ab=1; __ssid=sig; secure_customer_sig=; _shopify_m=session; _tracking_consent=%D; identity-state=xx; _s=xx _shopify_y=xx; _shopify_s=xx; _orig_referrer=; _landing_page=%2Fadmin%2Ftransfers; _shopify_evids="
        },
        "referrerPolicy": "strict-origin-when-cross-origin",
        "body": null,
        "method": "GET",
        "mode": "cors"
    });

    let jsonResult = await res.json();
   console.log("transfer json result:", jsonResult);
}

getTransfers();

 

 

 

 

there is also another endpoint available which will give you a single transfer by id (although the other endpoint has all the data, maybe it's useful for you) 

/admin/transfers/(yourtransferid).json

 

 

 

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Product Inventory Information | Geolocation, Store Pickup & More

Order Related Documents | Link Documents to Products Or Countries
CossetDataWiz
Excursionist
14 1 2

Bump?

Revzo
New Member
1 0 1

I don't understand why it's so hard to write 4 endpoints..I think it's very important in development to pay attention to the needs of the customers ... after all this time and finally ... 🙂

salhi
New Member
1 0 2

Yes. Please make this available. 

NiklasJul
Tourist
3 0 2

Any news on this? could be really nice with the transfer api

jason3w
Shopify Partner
15 1 8

Also need this, please Shopify.