Skip to main content

List

Sales Contract List

HTTP Request

[GET] /api/v6/sale_contracts

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
contract_codestringContract code
contract_namestringContract name
expiration_day_remainintegerRemaining contract days
number_of_contractintegerNumber of contracts
contract_statusintegerContract status
contract_status_labelstringContract status label
new_contract_labelstringContract type label
contract_typeintegerContract type
effective_datestringEffective date
expiration_datestringExpiration date
vendor_account_idintegerCustomer identifier
vendor_account_namestringCustomer name
vendor_account_addressstringCustomer address
vendor_account_phonestringCustomer phone number
vendor_account_faxstringCustomer fax number
vendor_account_managerintegerCustomer manager
vendor_account_manager_namestringCustomer manager name
vendor_contact_namestringRepresentative name (Party A)
vendor_contact_titlestringCustomer contact title
vendor_contact_idintegerRepresentative identifier (Party A)
vendor_positionsstringRepresentative position (Party A)
vendor_bank_addressstringBank address (Party A)
vendor_bank_account_numberstringBank account number (Party A)
vendor_sic_codestringCustomer tax code
buyers_account_idintegerCompany identifier
buyers_account_namestringCompany name
buyers_account_addressstringCompany address
buyers_account_phonestringCompany phone number
buyers_account_faxstringCompany fax number
buyers_contact_namestringRepresentative name (Party B)
buyers_contact_idintegerRepresentative identifier (Party B)
buyers_positionsstringRepresentative position (Party B)
buyers_bank_addressstringBank address (Party B)
buyers_bank_account_numberstringBank account number (Party B)
buyers_sic_codestringCompany tax code
after_vatintegerApply discount after tax?
discountfloatDiscount (%)
discount_amountfloatDiscount amount ($)
vatfloatVat (%)
vat_amountfloatVat amount ($)
contract_termsarrayList of terms
quote_idintegerQuote identifier
quote_codestringQuote code
payment_methodsintegerContract payment method
payment_methods_namestringContract payment method name
start_actual_timestringActual contract effective date
end_actual_timestringActual contract expiration date
actual_valuefloatActual value
project_namestringProject
project_addressstringProject location
performedstringPerformed
contract_parent_idintegerRelated contract identifier
contract_parentintegerRelated contract
contract_childrenarrayList of child contracts
total_paymentfloatRevenue
total_sale_order_real_amountfloatTotal sales order revenue
total_sale_order_remain_amountfloatTotal remaining sales order amount (unpaid)
total_sale_order_f_amountfloatTotal paid sales order amount
performedstringPerformed
number_performedfloatAmount performed (numeric)
custom_fieldsobjectData definition

Filtering

FieldsSupportTypeDescription
ideq,inintegerIdentifier
valideqintegerValid contract
expiration_yeareqintegerContract end year
expiration_montheqintegerContract end month
expiration_dayeqintegerContract end day

Sort

Sort (field)Direction
idasc,desc

Limit & Offset

TypeDescription
LimitintegerNumber of records to retrieve
OffsetintegerNumber of records to skip

Example

HTTP Request

GET api/v6/sale_contracts?fields=contract_code&limit=1&offset=1&filtering[id]=1 HTTP/1.1
Host: example.getflycrm.com
Authorization: Bearer token

Status

200 OK

Response

{
"data": [
{
"id": 1,
"contract_code": "CONTRACT CODE"
}
],
"has_more": false,
"offset": 1,
"limited": 1
}

Purchase Contract List

HTTP Request

[GET] /api/v6/purchase_contracts

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
contract_codestringContract code
contract_namestringContract name
expiration_day_remainintegerRemaining contract days
number_of_contractintegerNumber of contracts
contract_statusintegerContract status
contract_status_labelstringContract status label
new_contract_labelstringContract type label
contract_typeintegerContract type
effective_datestringEffective date
expiration_datestringExpiration date
vendor_account_idintegerCustomer identifier
vendor_account_namestringCustomer name
vendor_account_addressstringCustomer address
vendor_account_phonestringCustomer phone number
vendor_account_faxstringCustomer fax number
vendor_account_managerintegerCustomer manager
vendor_account_manager_namestringCustomer manager name
vendor_contact_namestringRepresentative name (Party A)
vendor_contact_titlestringCustomer contact title
vendor_contact_idintegerRepresentative identifier (Party A)
vendor_positionsstringRepresentative position (Party A)
vendor_bank_addressstringBank address (Party A)
vendor_bank_account_numberstringBank account number (Party A)
vendor_sic_codestringCustomer tax code
buyers_account_idintegerCompany identifier
buyers_account_namestringCompany name
buyers_account_addressstringCompany address
buyers_account_phonestringCompany phone number
buyers_account_faxstringCompany fax number
buyers_contact_namestringRepresentative name (Party B)
buyers_contact_idintegerRepresentative identifier (Party B)
buyers_positionsstringRepresentative position (Party B)
buyers_bank_addressstringBank address (Party B)
buyers_bank_account_numberstringBank account number (Party B)
buyers_sic_codestringCompany tax code
after_vatintegerApply discount after tax?
discountfloatDiscount (%)
discount_amountfloatDiscount amount ($)
vatfloatVat (%)
vat_amountfloatVat amount ($)
contract_termsarrayList of terms
quote_idintegerQuote identifier
quote_codestringQuote code
payment_methodsintegerContract payment method
payment_methods_namestringContract payment method name
start_actual_timestringActual contract effective date
end_actual_timestringActual contract expiration date
contract_usedintegerContract usage code
contract_used_labelstringContract usage type
actual_valuefloatActual value
project_namestringProject
project_addressstringProject location
contract_origin_codestringOriginal contract code
payment_periodsarrayList of payment periods
contract_datestringCreation date
create_userintegerContract creator identifier
create_user_display_namestringContract creator name
approved_byintegerContract approver identifier
approved_atstringApproval time
approved_by_display_namestringContract approver name
contract_parent_idintegerRelated contract identifier
contract_parentintegerRelated contract
contract_childrenarrayList of child contracts
total_paymentfloatRevenue
total_purchase_order_real_amountfloatTotal purchase order revenue
total_purchase_order_remain_amountfloatTotal remaining purchase order amount (unpaid)
total_purchase_order_f_amountfloatTotal paid purchase order amount
performedstringPerformed
number_performedfloatAmount performed (numeric)
custom_fieldsobjectData definition

Filtering

FieldsSupportTypeDescription
ideq,inintegerIdentifier
valideqintegerValid contract
expiration_yeareqintegerContract end year
expiration_montheqintegerContract end month
expiration_dayeqintegerContract end day

Sort

Sort (field)Direction
idasc,desc

Limit & Offset

TypeDescription
LimitintegerNumber of records to retrieve
OffsetintegerNumber of records to skip

Example

HTTP Request

GET api/v6/purchase_contracts?fields=contract_code&limit=1&offset=1&filtering[id]=1 HTTP/1.1
Host: example.getflycrm.com
Authorization: Bearer token

Status

200 OK

Response

{
"data": [
{
"id": 1,
"contract_code": "CONTRACT CODE"
}
],
"has_more": false,
"offset": 1,
"limited": 1
}