| Required role: | Business |
| PUT | /business/add_or_update_billing |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BusinessId | body | long | No | |
| EmailForBillingNotification | body | string | No | |
| CustomReference | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Entity | form | BillingEntity | No | |
| ContactPerson | form | BillingContact | No | |
| EmailForBillingNotifications | form | string | No | |
| CustomReference | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | Yes | |
| OrganizationNumber | form | string | Yes | |
| PostalAddress | form | string | Yes | |
| PostalCode | form | string | Yes | |
| City | form | string | Yes | |
| CountryCode | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Person | form | string | Yes | |
| Phone | form | string | No | |
| form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /business/add_or_update_billing HTTP/1.1
Host: business-api.brovs.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
businessId: 0,
emailForBillingNotification: String,
customReference: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
entity:
{
name: String,
organizationNumber: String,
postalAddress: String,
postalCode: String,
city: String,
countryCode: String
},
contactPerson:
{
person: String,
phone: String,
email: String
},
emailForBillingNotifications: String,
customReference: String
}