Node.js
import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.cartRecovery.cart("CART_ID");
<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->cartRecovery->cart('CART_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.cartRecovery.cart("CART_ID")
curl --request GET \
--url https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "be860a5c-29b9-481a-806a-0036f9d9cae1",
"email": "noor@example.com",
"total": 9.99,
"currency": "USD",
"what": "Northwind Pro",
"leftAt": "2026-10-22T15:55:19Z",
"state": "waiting",
"note": "First email in 35 min",
"clickedAt": null,
"emailedAt": null,
"secondEmailAt": null,
"couponCode": null,
"recoveredOrderId": null,
"recoveredAt": null
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Cart Recovery
Get a cart
One cart as “List carts” has it, whatever its period. What the cart. webhooks send.
Needs the recovery.read permission (Read Cart Recovery).
GET
/
stores
/
{storeId}
/
cart-recovery
/
carts
/
{cartId}
Node.js
import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.cartRecovery.cart("CART_ID");
<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->cartRecovery->cart('CART_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.cartRecovery.cart("CART_ID")
curl --request GET \
--url https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/cart-recovery/carts/{cartId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "be860a5c-29b9-481a-806a-0036f9d9cae1",
"email": "noor@example.com",
"total": 9.99,
"currency": "USD",
"what": "Northwind Pro",
"leftAt": "2026-10-22T15:55:19Z",
"state": "waiting",
"note": "First email in 35 min",
"clickedAt": null,
"emailedAt": null,
"secondEmailAt": null,
"couponCode": null,
"recoveredOrderId": null,
"recoveredAt": null
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The cart, by its checkout's order ID.

