A customer changed: creates or updates the Organization with the same reference.
const url = 'https://example.com/api/v1/provision/admin/billing-events/account-changed';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"externalReference":"example","changeType":"Created","name":"example","email":"example","webUrl":"example","phoneNumber":"example","address":"example","city":"example","country":"example","companyInfo":"example","isDeleted":true,"legalName":"example","addressLine2":"example","postalCode":"example","stateOrProvince":"example","vatNumber":"example","taxIdScheme":"example","taxId":"example","billingDetailsOnly":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/provision/admin/billing-events/account-changed \ --header 'Content-Type: application/json' \ --data '{ "externalReference": "example", "changeType": "Created", "name": "example", "email": "example", "webUrl": "example", "phoneNumber": "example", "address": "example", "city": "example", "country": "example", "companyInfo": "example", "isDeleted": true, "legalName": "example", "addressLine2": "example", "postalCode": "example", "stateOrProvince": "example", "vatNumber": "example", "taxIdScheme": "example", "taxId": "example", "billingDetailsOnly": true }'Request Bodyrequired
Section titled “Request Bodyrequired”A customer as your billing system sees it, applied to the Organization with the same reference.
object
The customer, e.g. chargebee:customer:16BQ....
The billing address’s first line.
Your system owns only the invoice details: an existing Organization keeps its name, contact fields and existence, and none is created for a reference no Organization carries.
A customer as your billing system sees it, applied to the Organization with the same reference.
object
The customer, e.g. chargebee:customer:16BQ....
The billing address’s first line.
Your system owns only the invoice details: an existing Organization keeps its name, contact fields and existence, and none is created for a reference no Organization carries.
A customer as your billing system sees it, applied to the Organization with the same reference.
object
The customer, e.g. chargebee:customer:16BQ....
The billing address’s first line.
Your system owns only the invoice details: an existing Organization keeps its name, contact fields and existence, and none is created for a reference no Organization carries.
Responses
Section titled “Responses”Accepted
The event was accepted and published; its consumer applies it shortly after.
object
The event was accepted and published; its consumer applies it shortly after.
object
Examplegenerated
{ "eventId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}The event was accepted and published; its consumer applies it shortly after.
object
Examplegenerated
{ "eventId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Bad Request
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Unauthorized
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}