Get public pricing plans
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/public/pricing?locale=en"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/public/pricing?locale=en';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.feitpay.com/v1/public/pricing?locale=en'Plan names, feature lines and the disclaimer are returned in locale (else the best supported language of Accept-Language, else English). A line without a translation is returned in English.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Language of reference text (plan names and features, network caveats, disclaimers). Without it the best supported language of Accept-Language is used, else English. Codes, ids and amounts are never translated.
Responses
Section titled “Responses”Public plans from the fee-schedule registry (indicative).
object
object
Decimal string. Never a float.
Decimal string. Never a float.
Decimal string. Never a float.
Example
{ "object": "pricing", "locale": "en", "plans": [ { "fixed_fee": "59.90", "monthly_fee": "59.90", "minimum_monthly_fee": "59.90", "availability": "available" } ]}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}