Customers
List customer orders
Retrieves a list of orders made by a specific customer. Includes information such as order status, amount, and product details.
Usage: Use this endpoint to manage customer relationships and analyze buying patterns.
GET
/
customers
/
{id}
/
orders
List customer orders
curl --request GET \
--url https://api.blink.store/v1/customers/{id}/ordersimport requests
url = "https://api.blink.store/v1/customers/{id}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.blink.store/v1/customers/{id}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blink.store/v1/customers/{id}/orders",
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://api.blink.store/v1/customers/{id}/orders"
req, _ := http.NewRequest("GET", url, nil)
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.blink.store/v1/customers/{id}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/customers/{id}/orders")
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{
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"has_more": true
},
"data": [
{
"id": "<string>",
"status": "<string>",
"amount": 123,
"net_amount": 123,
"tax_amount": 123,
"product_id": "<string>",
"variant_id": "<string>",
"customer_country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"product": {
"id": "<string>",
"name": "<string>"
},
"bump_id": "<string>",
"bump": {
"id": "<string>",
"title": "<string>",
"price": 123,
"badge_title": "<string>",
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"metadata": {}
}
]
}
}
]
}Previous
List customer subscriptionsRetrieves all active subscriptions for a given customer. Useful for determining current and past engagements with customers.
Next
āI
List customer orders
curl --request GET \
--url https://api.blink.store/v1/customers/{id}/ordersimport requests
url = "https://api.blink.store/v1/customers/{id}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.blink.store/v1/customers/{id}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blink.store/v1/customers/{id}/orders",
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://api.blink.store/v1/customers/{id}/orders"
req, _ := http.NewRequest("GET", url, nil)
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.blink.store/v1/customers/{id}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/customers/{id}/orders")
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{
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"has_more": true
},
"data": [
{
"id": "<string>",
"status": "<string>",
"amount": 123,
"net_amount": 123,
"tax_amount": 123,
"product_id": "<string>",
"variant_id": "<string>",
"customer_country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"product": {
"id": "<string>",
"name": "<string>"
},
"bump_id": "<string>",
"bump": {
"id": "<string>",
"title": "<string>",
"price": 123,
"badge_title": "<string>",
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"metadata": {}
}
]
}
}
]
}