Retrieve a product
curl --request GET \
--url https://merchant.zahlo.eu/api/v1/products/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://merchant.zahlo.eu/api/v1/products/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://merchant.zahlo.eu/api/v1/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "prod_demo_1001",
"name": "Example plan",
"active": true
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}Catalog
Retrieve a product
Retrieve a product. Use the response status and request ID to decide whether to retry, reconcile, or ask the customer for action.
GET
/
api
/
v1
/
products
/
{id}
Retrieve a product
curl --request GET \
--url https://merchant.zahlo.eu/api/v1/products/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://merchant.zahlo.eu/api/v1/products/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://merchant.zahlo.eu/api/v1/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "prod_demo_1001",
"name": "Example plan",
"active": true
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}Authorizations
Server-side merchant API key. Never expose it in browser code.
Path Parameters
The resource identifier returned by the merchant API.