Get Service Contracts
Request
- Base URLhttps://dc-region.zuperpro.com/api
- URLhttps://dc-region.zuperpro.com/api/service_contract
- AuthAPI key in header x-api-key
Query parameters
Page number to fetch
Number of contracts in the page
Sort order
Sort type
Keyword search based on Service Contracts name,number,ref_no,customer address,billing address and email
Filter by active contracts
Filter by deleted contracts
Filter by contract's custom field
Filter by organization uid
Filter by contract updated date from
Filter by contract updated date to
Filter by contract's expire status
Filter by approval status
Filter by contract total amount
Filter by contract total amount
Filter by approver
Filter by customer uids
Filter by contract end from
Filter by Contract end to
Filter by asset uids
Filter by contract updated date
Filter by contract uids
Filter by expiring from date
Filter by expiring to date
Filter by property uids
Response
200
Example response
{
"type": "success",
"data": [
{
"contract_uid": "32bc6a40-6f11-11ee-ab23-f576be9f85df",
"customer": {
"customer_uid": "bcf539f0-b75e-11ed-8a0f-090f81fad31e",
"customer_first_name": "velmurugan",
"customer_last_name": "k",
"customer_email": "velmurugan.k@zuper.co",
"is_active": true,
"customer_contact_no": {
"mobile": "+91303030303030"
}
},
"organization": {
"organization_address": {
"city": "Chennai ",
"state": "Tamil Nadu ",
"street": "Turyaa Chennai, Old Mahabalipuram Road, Elango Nagar, Perungudi",
"country": "India",
"zip_code": "600041",
"geo_cordinates": [
12.9733389
],
"first_name": "Org",
"last_name": "SC",
"phone_number": "8220131280",
"email": "orgsc@abc.com"
},
"organization_name": "Ascendas",
"organization_logo": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/acb9ba40-8211-11eb-ab1f-1ddf213d24b4.jpg",
"organization_email": "zupertest23@gmail.com",
"organization_uid": "11d86a70-8212-11eb-ab1f-1ddf213d24b4",
"no_of_customers": 58
},
"ref_no": "SC01",
"contract_name": "CFM Basic",
"start_date": "2023-10-23T04:30:00.000Z",
"end_date": "2024-10-22T18:29:00.000Z",
"term_months": 12,
"activation_date": "2024-01-01T04:30:00.000Z",
"approval_status": "AWAIT_CUSTOMER_APPROVAL",
"custom_fields": [
{
"label": "Dealer",
"value": "Test",
"type": "SINGLE_LINE",
"_id": "65321ce7e9dc3086d6c8140e"
}
],
"invoice_settings": {
"billing_period": {
"billing_period_uid": "e675db30-02ae-11ea-af45-bd1d48d9fadb",
"billing_period_name": "Quarterly",
"billing_period_type": "MONTHS",
"billing_period_value": 3,
"is_active": true
},
"generate_invoice_days": 2,
"payment_term": {
"payment_term_name": "ten day term",
"no_of_days": 10,
"payment_term_uid": "75afa880-db9f-11e9-a35c-3301ecc1dbf7"
},
"invoice_template": "5d83217cd32c2f2e7d78bab3"
},
"contract_subtotal": 306,
"contract_total": 306,
"created_by": {
"user_uid": "c425fe39-2309-4d2b-87b8-5b4b65546ccb",
"first_name": "Velmurugan",
"last_name": "K",
"email": "velmurugan.k@zuper.co",
"designation": "Admin",
"emp_code": "Z111",
"profile_picture": "https://s3.ap-south-1.amazonaws.com/prod.app.zuperpro/assets/profile_picture.jpg",
"hourly_labor_charge": 120,
"is_active": true,
"created_at": "2022-11-02T10:35:52.000Z",
"updated_at": "2023-01-23T09:20:16.000Z"
},
"is_active": true,
"created_at": "2023-10-20T06:23:35.623Z",
"updated_at": "2023-10-20T07:02:41.950Z",
"contract_number": 868,
"id": "undefined"
}
],
"total_records": 397,
"current_page": 1,
"total_pages": 40
}Changes
No recorded changes to this operation across all 2 revisions of this API.