Update billing address
curl --request PUT \
--url https://uat-api.clinkbill.com/agent/platform/billing-address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
'HttpResponse<String> response = Unirest.put("https://uat-api.clinkbill.com/agent/platform/billing-address")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"US\",\n \"region\": \"CA\",\n \"city\": \"San Francisco\",\n \"line1\": \"1 Market Street\",\n \"line2\": \"Suite 100\",\n \"postal_code\": \"94105\"\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/billing-address"
payload = {
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: 'US',
region: 'CA',
city: 'San Francisco',
line1: '1 Market Street',
line2: 'Suite 100',
postal_code: '94105'
})
};
fetch('https://uat-api.clinkbill.com/agent/platform/billing-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Account
Update billing address
Replaces the user’s billing address. Requires portal:write.
PUT
/
agent
/
platform
/
billing-address
Update billing address
curl --request PUT \
--url https://uat-api.clinkbill.com/agent/platform/billing-address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
'HttpResponse<String> response = Unirest.put("https://uat-api.clinkbill.com/agent/platform/billing-address")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"US\",\n \"region\": \"CA\",\n \"city\": \"San Francisco\",\n \"line1\": \"1 Market Street\",\n \"line2\": \"Suite 100\",\n \"postal_code\": \"94105\"\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/billing-address"
payload = {
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: 'US',
region: 'CA',
city: 'San Francisco',
line1: '1 Market Street',
line2: 'Suite 100',
postal_code: '94105'
})
};
fetch('https://uat-api.clinkbill.com/agent/platform/billing-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"country": "US",
"region": "CA",
"city": "San Francisco",
"line1": "1 Market Street",
"line2": "Suite 100",
"postal_code": "94105"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}The PUT response returns the updated address. Clink validates the required fields and reuses the existing wallet billing-address rules (including the configured country list and city/line1 requirements for those countries). A
portal:read-only token receives 403 on PUT.Authorizations
Body
application/json