cURL
curl --request GET \
--url https://api.pricenow.dev/api/clients/current \
--header 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>'import requests
url = "https://api.pricenow.dev/api/clients/current"
headers = {
"accept-language": "<accept-language>",
"pratiq-channel-uuid": "<pratiq-channel-uuid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'accept-language': '<accept-language>',
'pratiq-channel-uuid': '<pratiq-channel-uuid>'
}
};
fetch('https://api.pricenow.dev/api/clients/current', 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.pricenow.dev/api/clients/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept-language: <accept-language>",
"pratiq-channel-uuid: <pratiq-channel-uuid>"
],
]);
$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.pricenow.dev/api/clients/current"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept-language", "<accept-language>")
req.Header.Add("pratiq-channel-uuid", "<pratiq-channel-uuid>")
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.pricenow.dev/api/clients/current")
.header("accept-language", "<accept-language>")
.header("pratiq-channel-uuid", "<pratiq-channel-uuid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pricenow.dev/api/clients/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept-language"] = '<accept-language>'
request["pratiq-channel-uuid"] = '<pratiq-channel-uuid>'
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"name": "<string>",
"supportEmail": "<string>",
"supportPhone": "<string>",
"currency": "<string>",
"logoUrl": "<string>",
"applicationUrl": "<string>",
"contentManagementUrl": "<string>",
"localization": {
"default": {
"id": 123
},
"additional": [
{
"id": 123
}
]
},
"payment": {
"enableMarketplaceSplits": true,
"supportedPaymentMethods": [],
"supportedVoucherSystem": "INCERT",
"merchantId": "<string>",
"googlePayMerchantId": "<string>",
"enableGooglePay": true,
"enableApplePay": true
},
"preferredCountrySuggestions": [
"<string>"
],
"personFieldsDefinition": {},
"loginProviders": [],
"keycards": [
{
"id": "<string>",
"maxInstancesPerUser": 123,
"title": {
"en": "<string>",
"de": "<string>",
"fr": "<string>",
"it": "<string>"
},
"registrationHelperText": {
"en": "<string>",
"de": "<string>",
"fr": "<string>",
"it": "<string>"
},
"logoSrc": "<string>",
"thumbnailSrc": "<string>"
}
],
"causeWeCare": null
}
}clients
Get apiclientscurrent
Get the current client
GET
/
api
/
clients
/
current
cURL
curl --request GET \
--url https://api.pricenow.dev/api/clients/current \
--header 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>'import requests
url = "https://api.pricenow.dev/api/clients/current"
headers = {
"accept-language": "<accept-language>",
"pratiq-channel-uuid": "<pratiq-channel-uuid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'accept-language': '<accept-language>',
'pratiq-channel-uuid': '<pratiq-channel-uuid>'
}
};
fetch('https://api.pricenow.dev/api/clients/current', 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.pricenow.dev/api/clients/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept-language: <accept-language>",
"pratiq-channel-uuid: <pratiq-channel-uuid>"
],
]);
$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.pricenow.dev/api/clients/current"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept-language", "<accept-language>")
req.Header.Add("pratiq-channel-uuid", "<pratiq-channel-uuid>")
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.pricenow.dev/api/clients/current")
.header("accept-language", "<accept-language>")
.header("pratiq-channel-uuid", "<pratiq-channel-uuid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pricenow.dev/api/clients/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept-language"] = '<accept-language>'
request["pratiq-channel-uuid"] = '<pratiq-channel-uuid>'
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"name": "<string>",
"supportEmail": "<string>",
"supportPhone": "<string>",
"currency": "<string>",
"logoUrl": "<string>",
"applicationUrl": "<string>",
"contentManagementUrl": "<string>",
"localization": {
"default": {
"id": 123
},
"additional": [
{
"id": 123
}
]
},
"payment": {
"enableMarketplaceSplits": true,
"supportedPaymentMethods": [],
"supportedVoucherSystem": "INCERT",
"merchantId": "<string>",
"googlePayMerchantId": "<string>",
"enableGooglePay": true,
"enableApplePay": true
},
"preferredCountrySuggestions": [
"<string>"
],
"personFieldsDefinition": {},
"loginProviders": [],
"keycards": [
{
"id": "<string>",
"maxInstancesPerUser": 123,
"title": {
"en": "<string>",
"de": "<string>",
"fr": "<string>",
"it": "<string>"
},
"registrationHelperText": {
"en": "<string>",
"de": "<string>",
"fr": "<string>",
"it": "<string>"
},
"logoSrc": "<string>",
"thumbnailSrc": "<string>"
}
],
"causeWeCare": null
}
}⌘I

