Get products by your unique ID
AuthorizationBasic <token>
Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an Authorization header that contains the word Basic followed by a space and a base64-encoded string username:password.Example: Authorization: Basic ZGVtbzpwQDU1dzByZA==
In: header
Path Parameters
referencestring
Your unique ID of the object
Response Body
curl -X GET "https://staging1.abillify.dev/api/products/byReference/string"fetch("https://staging1.abillify.dev/api/products/byReference/string")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://staging1.abillify.dev/api/products/byReference/string"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://staging1.abillify.dev/api/products/byReference/string"
response = requests.request("GET", url)
print(response.text){
"client": "123456789",
"committed": "2022-07-29 17:23:47",
"created": "2022-07-29 17:23:47",
"id": "123456789",
"modified": "2022-07-29 17:23:47",
"reference": "abcdefg",
"meta": {},
"active": false,
"billing_interval_align": "start",
"billing_interval_partial": "full",
"billing_start_alignment": "abcdefg",
"billling_interval": "month",
"description_long_localized": {
"de": "Beschreibung auf Deutsch",
"en": "Description in English"
},
"description_short_localized": {
"de": "Beschreibung auf Deutsch",
"en": "Description in English"
},
"filter": "{}",
"kind": "item",
"label": "abcdefg",
"parent": "123456789",
"plan_interval": "day",
"plan_interval_amount": 12,
"plan_interval_minimum": 3,
"subsequent_product": "123456789",
"title_localized": {
"de": "Produktname",
"en": "Product name"
},
"unit": "abcdefg",
"validfrom": "2022-07-29 17:23:47",
"validto": "2022-07-29 17:23:47"
}{
"code": 400,
"details": [
{
"error": "Value for field 'debtor' is of wrong type, expected bigint.",
"fields": [
"debtor"
],
"hint": "Value must be a number or a string containing only a number."
}
],
"message": "InvalidValue, see error details",
"name": "ClientError",
"type": "ERR_INVALID_VALUE"
}{
"code": 400,
"details": [
{
"error": "Value for field 'debtor' is of wrong type, expected bigint.",
"fields": [
"debtor"
],
"hint": "Value must be a number or a string containing only a number."
}
],
"message": "InvalidValue, see error details",
"name": "ClientError",
"type": "ERR_INVALID_VALUE"
}