Skip to main content
GET
/
api
/
external
/
v2
/
subscription-customers
/
sync-info
/
{customerId}
Sync customer subscription details from Shopify
curl --request GET \
  --url https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}
import requests

url = "https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}';
const options = {method: 'GET'};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
require 'uri'
require 'net/http'

url = URI("https://subscription-admin.appstle.com/api/external/v2/subscription-customers/sync-info/{customerId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "detail": "Customer ID must be a valid positive integer",
  "status": 400,
  "title": "Invalid request",
  "type": "https://example.com/errors/bad-request"
}
{
"detail": "Valid X-API-Key header is required",
"status": 401,
"title": "Authentication required",
"type": "https://example.com/errors/unauthorized"
}
{
"detail": "Customer does not belong to your shop or API key lacks required permissions",
"status": 403,
"title": "Insufficient permissions",
"type": "https://example.com/errors/forbidden"
}
{
"detail": "No customer found with ID 12345 in Shopify",
"status": 404,
"title": "Customer not found",
"type": "https://example.com/errors/not-found"
}
{
"detail": "Shopify API rate limit exceeded. Please retry after 60 seconds.",
"retryAfter": 60,
"status": 429,
"title": "Rate limit exceeded",
"type": "https://example.com/errors/rate-limit"
}
{
"detail": "Failed to connect to Shopify API. Please try again later.",
"status": 502,
"title": "Shopify API error",
"type": "https://example.com/errors/bad-gateway"
}
{
"detail": "Sync operation timed out. Customer may have too many subscriptions. Please contact support for manual sync.",
"status": 504,
"title": "Sync timeout",
"type": "https://example.com/errors/timeout"
}

Headers

X-API-Key
string

Path Parameters

customerId
integer<int64>
required

Customer Id

Query Parameters

api_key
string

API Key (Deprecated - Use Header X-API-Key instead)

Response

Customer subscription data successfully synchronized from Shopify. No response body returned. Check activity logs to verify sync completion and review changes made.