Skip to main content
GET
/
v0
/
fees
/
{id}
/
price
/
{subscriptionId}
Get Fee Price
curl --request GET \
  --url https://api.paygentic.io/v0/fees/{id}/price/{subscriptionId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.paygentic.io/v0/fees/{id}/price/{subscriptionId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.paygentic.io/v0/fees/{id}/price/{subscriptionId}', 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.paygentic.io/v0/fees/{id}/price/{subscriptionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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.paygentic.io/v0/fees/{id}/price/{subscriptionId}"

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.paygentic.io/v0/fees/{id}/price/{subscriptionId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.paygentic.io/v0/fees/{id}/price/{subscriptionId}")

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": "price_abc123",
  "feeId": "fee_w9x0y1z2a3b4c5d6",
  "model": "standard",
  "paymentTerm": "in_advance",
  "invoiceDisplayName": "Setup Fee",
  "properties": {
    "unitPrice": "10.00"
  },
  "taxRate": 10
}
{
"message": "The requested resource was not found",
"error": "not_found"
}
{
"message": "The requested resource was not found",
"error": "not_found"
}
{
"message": "The requested resource was not found",
"error": "not_found"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the fee.

Pattern: ^fee_[a-zA-Z0-9]+$
subscriptionId
string
required

The unique identifier of the subscription.

Pattern: ^sub_[a-zA-Z0-9]+$

Response

Fee price details

The price configuration for a fee within a subscription context.

id
string
required

The unique identifier of the price.

Pattern: ^price_[a-zA-Z0-9]+$
feeId
string
required

The unique identifier of the fee.

Pattern: ^fee_[a-zA-Z0-9]+$
model
enum<string>
required

The pricing model. Fees only support standard pricing.

Available options:
standard
paymentTerm
enum<string>
required

When the fee is charged relative to the billing period.

Available options:
in_advance,
in_arrears
invoiceDisplayName
string
required

The name to display on invoices for this fee.

properties
object
required
quantity
integer
required

Quantity for invoice line items. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.

Required range: x >= 0
taxRate
number

The tax rate as a percentage (e.g., 10 for 10%).