Website Building » Shopify » How Do I Add a Client to Shopify API?

How Do I Add a Client to Shopify API?

Last updated on January 13, 2023 @ 2:12 pm

Adding a Client to Shopify API is Easy!

If you’re a developer working with the Shopify API, you may occasionally need to add a new client to your application. This can be done easily using the Admin API. Simply make a POST request to the /admin/clients.json endpoint, passing in the required parameters.

Required Parameters

  • client[name]: The name of the client.
  • client[redirect_uri]: The redirect URI for the client.

Optional Parameters

PRO TIP: If you are not a developer, do not attempt to add a client to Shopify API. This is a complex task that should only be performed by someone with the necessary skills and knowledge. Attempting to do this without the proper expertise could result in serious errors and damage to your store.
  • client[contact_email]: The contact email for the client.

Example Request

curl -X POST \  
"https://[SHOP_NAME].myShopify.com/admin/clients.json" \  
-H 'Content-Type: application/json' \  
-H 'X-Shopify-Access-Token: [ACCESS_TOKEN]' \  
--data '{"client": {"name": "My Client","redirect_uri": "https://example.com/auth/callback"}}'  

Example Response

{"client": { "id": 101,

    "name": "My Client",  

    "redirect_uri": "https://example.com/auth/callback",    

    "contact_email": null,      

    "created_at": "2018-01-01T12:00:00+00:00",      

    "updated_at": "2018-01-01T12:00:00+00:00",      

    "owner_url": null  }}  
Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.