Organizations
Update billing profile for settings page
PATCH
/
v1
/
settings
/
billing
/
profile
Update billing profile for settings page
curl --request PATCH \
--url https://api.wazapin.com/v1/settings/billing/profile \
--header 'Content-Type: application/json' \
--data '
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"country_code": "<string>",
"legal_name": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address_line_1: '<string>',
address_line_2: '<string>',
billing_email: '<string>',
billing_phone: '<string>',
city: '<string>',
country_code: '<string>',
legal_name: '<string>',
postal_code: '<string>',
state_or_province: '<string>',
tax_id: '<string>',
tax_name: '<string>'
})
};
fetch('https://api.wazapin.com/v1/settings/billing/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/settings/billing/profile"
payload = {
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"country_code": "<string>",
"legal_name": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"complete": true,
"completeness": {
"is_complete": true,
"missing_fields": [
"<string>"
]
},
"country_code": "<string>",
"legal_name": "<string>",
"missing_fields": [
"<string>"
],
"organization_id": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>",
"created_at": "<string>",
"last_updated_at": "<string>",
"last_updated_by": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
OK
Show child attributes
Show child attributes
⌘I
Update billing profile for settings page
curl --request PATCH \
--url https://api.wazapin.com/v1/settings/billing/profile \
--header 'Content-Type: application/json' \
--data '
{
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"country_code": "<string>",
"legal_name": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address_line_1: '<string>',
address_line_2: '<string>',
billing_email: '<string>',
billing_phone: '<string>',
city: '<string>',
country_code: '<string>',
legal_name: '<string>',
postal_code: '<string>',
state_or_province: '<string>',
tax_id: '<string>',
tax_name: '<string>'
})
};
fetch('https://api.wazapin.com/v1/settings/billing/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/settings/billing/profile"
payload = {
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"country_code": "<string>",
"legal_name": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"address_line_1": "<string>",
"address_line_2": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"city": "<string>",
"complete": true,
"completeness": {
"is_complete": true,
"missing_fields": [
"<string>"
]
},
"country_code": "<string>",
"legal_name": "<string>",
"missing_fields": [
"<string>"
],
"organization_id": "<string>",
"postal_code": "<string>",
"state_or_province": "<string>",
"tax_id": "<string>",
"tax_name": "<string>",
"created_at": "<string>",
"last_updated_at": "<string>",
"last_updated_by": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}