Customers represent the person or company contracted to receive products or services
- Check if site exists
Elevate Customer and Sites API (1.41)
- Customer - the primary entity within Elevate to represent the person or company who is contracted with a Contract Owner for the provision of products or services
- Site - within each Customer, there are one or more Sites to represent the physical locations of the Customer
Products and services are associated to the Sites as inventory items. Sites can be setup to receive invoices individually or to consolidate invoices to a particular site or sites
Results to return per page
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Comma-delimited list of the field(s) to return if only a subset is required
Filter by site reference
Filter by created date/time
Filter by updated date/time
Filter by mandate status
Filter by mandate created date
Filter by mandate updated date
- https://rest.elevatebilling.com/v1/sites
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v1/sites?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&customerId=0&siteName=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&siteReference=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&createdDate=yyyy-MM-ddTHH%3Amm%3AssZ+%2C+lt%3Ayyyy-MM-ddTHH%3Amm%3AssZ+%2C+gt%3Ayyyy-MM-ddTHH%3Amm%3AssZ&updatedDate=yyyy-MM-ddTHH%3Amm%3AssZ+%2C+lt%3Ayyyy-MM-ddTHH%3Amm%3AssZ+%2C+gt%3Ayyyy-MM-ddTHH%3Amm%3AssZ&mandateStatus=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&mandateCreatedDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&mandateUpdatedDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&mandateReference=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Customer identifier - set to 0 when creating a new customer
Site name
Site reference
Business name
Address line 1
Address line 2
Address line 3
Town
County
Identifier of another site that receives the invoices if no invoice details provided for this site
Contact name
Contact telephone number
Contact alternative telephone number
Email address
Contact Role
Receive invoice by email, post or both? Required when contactNameToAppearOnInvoice is set to true
Receive invoice summary by email, post or both?
Only 1 contact per site can be set to true. If unspecified, this will be defaulted to the 1st contact. If specified for a different contact, it will be set to false for the previous one
Repayment plan period amount in major currency (e.g pounds/dollars/euros)
repayment plan remaining periods (typically in months)
[ { "id": 1, "customerId": 0, "siteName": "string", "siteReference": "string", "startDate": "2019-08-24", "endDate": "2019-08-24", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "siteAddress": { … }, "siteInvoiceDetails": { … }, "siteIdReceivingInvoice": 1, "siteContacts": [ … ], "repaymentPlanAmount": 1, "repaymentPlanRemainingPeriods": 0, "assignedCustomFields": [ … ] } ]
New site
Customer identifier - set to 0 when creating a new customer
Site name
Site reference
Business name
Address line 1
Address line 2
Address line 3
Town
County
Identifier of another site that receives the invoices if no invoice details provided for this site
Contact name
Contact telephone number
Contact alternative telephone number
Email address
Contact Role
Receive invoice by email, post or both? Required when contactNameToAppearOnInvoice is set to true
Receive invoice summary by email, post or both?
Only 1 contact per site can be set to true. If unspecified, this will be defaulted to the 1st contact. If specified for a different contact, it will be set to false for the previous one
Repayment plan period amount in major currency (e.g pounds/dollars/euros)
repayment plan remaining periods (typically in months)
- https://rest.elevatebilling.com/v1/sites
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v1/sites \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"customerId": 0,
"siteName": "string",
"siteReference": "string",
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"siteAddress": {
"businessName": "string",
"address1": "string",
"address2": "string",
"address3": "string",
"town": "string",
"county": "string",
"postcode": "string",
"country": "GB"
},
"siteInvoiceDetails": {
"invoiceSummaryTemplateId": 0,
"invoiceTemplateId": 0,
"electronicSummaryTemplateIds": [
123
],
"invoiceSummaryTemplateComponents": [
{}
],
"invoiceAddress": {
"businessName": "string",
"address1": "string",
"address2": "string",
"address3": "string",
"town": "string",
"county": "string",
"postcode": "string",
"country": "GB"
},
"accountPackageReference": "string",
"paymentTermsInDays": 400,
"preferredPaymentDay": 1,
"paymentMethod": "CHEQUE",
"mandateReference": "string",
"thirdPartyCustomerReference": "string",
"directDebitReference": "string",
"accountName": "string",
"accountNumber": "stringst",
"sortCode": "string",
"purchaseOrderNumber": "string",
"invoiceNotes": "string",
"taxExempt": false,
"taxRegistrationNumber": "string"
},
"siteIdReceivingInvoice": 1,
"siteContacts": [
{
"contactName": "string",
"contactTelephoneNumber": "string",
"contactAlternativeTelephoneNumber": "string",
"contactEmailAddress": "string",
"contactRole": "ACCOUNTS",
"receiveInvoiceBy": "EMAIL",
"receiveInvoiceSummaryBy": "EMAIL",
"receiveElectronicSummaryReports": true,
"emailSuspended": false,
"contactNameToAppearOnInvoice": false,
"receiveEmailFraudAlert": false,
"receiveSmsFraudAlert": false
}
],
"repaymentPlanAmount": 1,
"repaymentPlanRemainingPeriods": 0,
"assignedCustomFields": [
{
"customFieldDefinitionId": 102,
"label": "Customer Tier",
"value": "Gold"
}
]
}'OK
Customer identifier - set to 0 when creating a new customer
Site name
Site reference
Business name
Address line 1
Address line 2
Address line 3
Town
County
Identifier of another site that receives the invoices if no invoice details provided for this site
Contact name
Contact telephone number
Contact alternative telephone number
Email address
Contact Role
Receive invoice by email, post or both? Required when contactNameToAppearOnInvoice is set to true
Receive invoice summary by email, post or both?
Only 1 contact per site can be set to true. If unspecified, this will be defaulted to the 1st contact. If specified for a different contact, it will be set to false for the previous one
Repayment plan period amount in major currency (e.g pounds/dollars/euros)
repayment plan remaining periods (typically in months)
{ "id": 1, "customerId": 0, "siteName": "string", "siteReference": "string", "startDate": "2019-08-24", "endDate": "2019-08-24", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "siteAddress": { "id": 1, "businessName": "string", "address1": "string", "address2": "string", "address3": "string", "town": "string", "county": "string", "postcode": "string", "country": "GB" }, "siteInvoiceDetails": { "invoiceSummaryTemplateId": 0, "invoiceTemplateId": 0, "electronicSummaryTemplateIds": [ … ], "invoiceSummaryTemplateComponents": [ … ], "invoiceAddress": { … }, "accountPackageReference": "string", "paymentTermsInDays": 400, "preferredPaymentDay": 1, "paymentMethod": "CHEQUE", "mandateStatus": "string", "mandateCreatedDate": "2019-08-24T14:15:22Z", "mandateUpdatedDate": "2019-08-24T14:15:22Z", "mandateReference": "string", "thirdPartyCustomerReference": "string", "directDebitReference": "string", "accountName": "string", "accountNumber": "stringst", "sortCode": "string", "purchaseOrderNumber": "string", "invoiceNotes": "string", "taxExempt": false, "taxRegistrationNumber": "string" }, "siteIdReceivingInvoice": 1, "siteContacts": [ { … } ], "repaymentPlanAmount": 1, "repaymentPlanRemainingPeriods": 0, "assignedCustomFields": [ { … } ] }
Filter by site reference
Filter to exclude sites that are ended (end date is before today). The value is either true or false
Filter by contract owner sub brand identifier
- https://rest.elevatebilling.com/v1/sites
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X HEAD \
'https://rest.elevatebilling.com/v1/sites?customerId=0&invoiceTemplateId=0&billingCycleId=0&siteName=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&siteReference=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&activeSites=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&contractOwnerSubBrandId=0&adhocBillRunId=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- https://rest.elevatebilling.com/v1/sites/{site_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v1/sites/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Site found
Customer identifier - set to 0 when creating a new customer
Site name
Site reference
Business name
Address line 1
Address line 2
Address line 3
Town
County
Identifier of another site that receives the invoices if no invoice details provided for this site
Contact name
Contact telephone number
Contact alternative telephone number
Email address
Contact Role
Receive invoice by email, post or both? Required when contactNameToAppearOnInvoice is set to true
Receive invoice summary by email, post or both?
Only 1 contact per site can be set to true. If unspecified, this will be defaulted to the 1st contact. If specified for a different contact, it will be set to false for the previous one
Repayment plan period amount in major currency (e.g pounds/dollars/euros)
repayment plan remaining periods (typically in months)
{ "id": 1, "customerId": 0, "siteName": "string", "siteReference": "string", "startDate": "2019-08-24", "endDate": "2019-08-24", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "siteAddress": { "id": 1, "businessName": "string", "address1": "string", "address2": "string", "address3": "string", "town": "string", "county": "string", "postcode": "string", "country": "GB" }, "siteInvoiceDetails": { "invoiceSummaryTemplateId": 0, "invoiceTemplateId": 0, "electronicSummaryTemplateIds": [ … ], "invoiceSummaryTemplateComponents": [ … ], "invoiceAddress": { … }, "accountPackageReference": "string", "paymentTermsInDays": 400, "preferredPaymentDay": 1, "paymentMethod": "CHEQUE", "mandateStatus": "string", "mandateCreatedDate": "2019-08-24T14:15:22Z", "mandateUpdatedDate": "2019-08-24T14:15:22Z", "mandateReference": "string", "thirdPartyCustomerReference": "string", "directDebitReference": "string", "accountName": "string", "accountNumber": "stringst", "sortCode": "string", "purchaseOrderNumber": "string", "invoiceNotes": "string", "taxExempt": false, "taxRegistrationNumber": "string" }, "siteIdReceivingInvoice": 1, "siteContacts": [ { … } ], "repaymentPlanAmount": 1, "repaymentPlanRemainingPeriods": 0, "assignedCustomFields": [ { … } ] }
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
- https://rest.elevatebilling.com/v1/sites/{site_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v1/sites/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-H 'cascade_end_date: true | false' \
-d '[
{
"op": "replace",
"path": "/name",
"value": "Head Office"
}
]'Success
Customer identifier - set to 0 when creating a new customer
Site name
Site reference
Business name
Address line 1
Address line 2
Address line 3
Town
County
Identifier of another site that receives the invoices if no invoice details provided for this site
Contact name
Contact telephone number
Contact alternative telephone number
Email address
Contact Role
Receive invoice by email, post or both? Required when contactNameToAppearOnInvoice is set to true
Receive invoice summary by email, post or both?
Only 1 contact per site can be set to true. If unspecified, this will be defaulted to the 1st contact. If specified for a different contact, it will be set to false for the previous one
Repayment plan period amount in major currency (e.g pounds/dollars/euros)
repayment plan remaining periods (typically in months)
{ "id": 1, "customerId": 0, "siteName": "string", "siteReference": "string", "startDate": "2019-08-24", "endDate": "2019-08-24", "createdDate": "2019-08-24T14:15:22Z", "updatedDate": "2019-08-24T14:15:22Z", "siteAddress": { "id": 1, "businessName": "string", "address1": "string", "address2": "string", "address3": "string", "town": "string", "county": "string", "postcode": "string", "country": "GB" }, "siteInvoiceDetails": { "invoiceSummaryTemplateId": 0, "invoiceTemplateId": 0, "electronicSummaryTemplateIds": [ … ], "invoiceSummaryTemplateComponents": [ … ], "invoiceAddress": { … }, "accountPackageReference": "string", "paymentTermsInDays": 400, "preferredPaymentDay": 1, "paymentMethod": "CHEQUE", "mandateStatus": "string", "mandateCreatedDate": "2019-08-24T14:15:22Z", "mandateUpdatedDate": "2019-08-24T14:15:22Z", "mandateReference": "string", "thirdPartyCustomerReference": "string", "directDebitReference": "string", "accountName": "string", "accountNumber": "stringst", "sortCode": "string", "purchaseOrderNumber": "string", "invoiceNotes": "string", "taxExempt": false, "taxRegistrationNumber": "string" }, "siteIdReceivingInvoice": 1, "siteContacts": [ { … } ], "repaymentPlanAmount": 1, "repaymentPlanRemainingPeriods": 0, "assignedCustomFields": [ { … } ] }