Retrieve details of a Physical Card Order
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valox.co/api/v1/order/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.valox.co/api/v1/order/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valox.co/api/v1/order/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.valox.co/api/v1/order/{orderId}"
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.valox.co/api/v1/order/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valox.co/api/v1/order/{orderId}")
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": "123e4567-e89b-12d3-a456-426614174000",
"userId": "<string>",
"status": "PENDINGTRANSACTION",
"personalizationSource": "KYC",
"createdAt": "2023-01-09T13:45:30Z",
"transactionHash": "0x123abc...",
"embossedName": "John Doe",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"state": "<string>",
"country": "<string>",
"couponCode": "DISCOUNT2023",
"totalAmountEUR": 20.99,
"totalDiscountEur": 1.99
}{
"message": "<string>"
}{
"message": "Card order not found."
}{
"message": "An unexpected error occurred."
}Physical Card Order
Retrieve details of a Physical Card Order
This endpoint retrieves details of a card order by its orderId.
GET
/
api
/
v1
/
order
/
{orderId}
Retrieve details of a Physical Card Order
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valox.co/api/v1/order/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.valox.co/api/v1/order/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valox.co/api/v1/order/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.valox.co/api/v1/order/{orderId}"
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.valox.co/api/v1/order/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valox.co/api/v1/order/{orderId}")
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": "123e4567-e89b-12d3-a456-426614174000",
"userId": "<string>",
"status": "PENDINGTRANSACTION",
"personalizationSource": "KYC",
"createdAt": "2023-01-09T13:45:30Z",
"transactionHash": "0x123abc...",
"embossedName": "John Doe",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"state": "<string>",
"country": "<string>",
"couponCode": "DISCOUNT2023",
"totalAmountEUR": 20.99,
"totalDiscountEur": 1.99
}{
"message": "<string>"
}{
"message": "Card order not found."
}{
"message": "An unexpected error occurred."
}Authorizations
Response
Successfully retrieved card order details.

