curl --request GET \
--url https://api.exowpee.com/v1/customer/customers/{customer}/store-credit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/customer/customers/{customer}/store-credit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/customer/customers/{customer}/store-credit', 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.exowpee.com/v1/customer/customers/{customer}/store-credit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.exowpee.com/v1/customer/customers/{customer}/store-credit"
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.exowpee.com/v1/customer/customers/{customer}/store-credit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/customer/customers/{customer}/store-credit")
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[
{
"id": "<string>",
"customer_id": "<string>",
"currency_code": "<string>",
"currency_exponent": 123,
"balance": 123,
"advance_balance": 123,
"refundable_balance": 123,
"status": "<string>"
}
]See a customer's store credit
Shows the store credit a customer holds, one wallet per currency, with the balance of each kind of credit.
curl --request GET \
--url https://api.exowpee.com/v1/customer/customers/{customer}/store-credit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/customer/customers/{customer}/store-credit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/customer/customers/{customer}/store-credit', 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.exowpee.com/v1/customer/customers/{customer}/store-credit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.exowpee.com/v1/customer/customers/{customer}/store-credit"
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.exowpee.com/v1/customer/customers/{customer}/store-credit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/customer/customers/{customer}/store-credit")
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[
{
"id": "<string>",
"customer_id": "<string>",
"currency_code": "<string>",
"currency_exponent": 123,
"balance": 123,
"advance_balance": 123,
"refundable_balance": 123,
"status": "<string>"
}
]customers.viewwallet
Conditions
- a removed customer can still be looked up here while they hold credit
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the customer (27-character KSUID string).
Query Parameters
Response mode. Default resource; none answers 204 No Content.
resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, customer_id, currency_code, currency_exponent, balance, advance_balance, refundable_balance, status.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: .
Response
Resource.
Identifier of the wallet.
Customer who holds the wallet.
Currency of the wallet. A customer has one wallet per currency.
Number of decimal places of currency_code when the wallet was opened; it is the one used for all the amounts of the wallet.
Everything the customer holds in this currency: advance_balance plus refundable_balance, in main units of currency_code.
Money the customer paid in advance and has not yet used, in main units of currency_code. Nothing in the API adds to it today.
Credit the company owes the customer and can pay back in cash, for example from a cancelled paid sale, in main units of currency_code.
active, or frozen: a frozen wallet cannot be paid out. Nothing in the API freezes a wallet today.