Products
List products/services for charge selection (bare array)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| search | query | string | |
| type | query | string |
Example request
curl "https://YOUR-HOST/api/v1/products" \
-H "Authorization: Bearer $TOKEN"
import requests
response = requests.get(
"https://YOUR-HOST/api/v1/products",
headers={"Authorization": f"Bearer {TOKEN}"},
)
print(response.json())
const response = await fetch("https://YOUR-HOST/api/v1/products", {
method: "GET",
headers: { "Authorization": `Bearer ${TOKEN}` },
});
const data = await response.json();
$ch = curl_init("https://YOUR-HOST/api/v1/products");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => ["Authorization: Bearer $token"],
]);
$data = json_decode(curl_exec($ch), true);
Responses
200Products
| Field | Type | Description |
|---|---|---|
| []id | integer | |
| []name | string | |
| []type | string | |
| []description | string | |
| []price | number | |
| []currency | string | |
| []code | string |
Example response
json
[
{
"id": 1,
"name": "string",
"type": "string",
"description": "string",
"price": 1.5,
"currency": "string",
"code": "string"
}
]