Update account billing settings
1 min
POST
https://app.amberflo.io/payments/settings
Body Parameters
- bodypayment.pricing.AccountPricingSettings.inDescription
- planDefaultStartUnitpayment.pricing.PlanDefaultStartUnit.inDescription
Responses
200
- payment.pricing.AccountPricingSettings.outDescription
- planDefaultStartUnitpayment.pricing.PlanDefaultStartUnit.inDescription
400
401
403
404
500
curl
curl --request POST \
--url https://app.amberflo.io/payments/settings \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://app.amberflo.io/payments/settings", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://app.amberflo.io/payments/settings")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://app.amberflo.io/payments/settings"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successfully updated account billing settings and returns the new configuration
{
"planDefaultStartUnit": ""
}400
// Invalid settings format or unsupported configuration values
401
// Authentication required or invalid API key provided
403
// Insufficient permissions to modify account billing settings
404
// Account not found or billing configuration not accessible
500
// Internal server error occurred while updating billing settings