Reference
Input Objects

Input Objects

WARNING

GetPaid GraphQL API is in alpha build and is subject to change without warning. While the overall schemas will not vary much, the fields could undergo major revision. (see GraphQL Best Practices for Versioning (opens in a new tab))

About Inputs

This section gives a quick example on how to form a GraphQL inputs, as well as a quick example on how to call data from regular HTTP.

Specification

BankAccountInput

INPUT FIELDS

NameDescription
accountName ( string! )
accountNumber ( string! )
bankName ( string! )

CreateCompanyInput

INPUT FIELDS

NameDescription
accessWagePercentage ( float! )
country ( CompanyCountryEnum )
name ( string! )
payCycleConfiguration ( CreatePayCycleConfigurationInput! )
serviceFeeFlatRate ( float )
serviceFeePercentage ( float! )
status ( CompanyStatusEnum )
withdrawalLimit ( float )

CreateEmployeesInput

INPUT FIELDS

NameDescription
companyId ( id! )
employees ( [EmployeeInput!] )

CreatePayCycleConfigurationInput

INPUT FIELDS

NameDescription
monthly ( PayCycleMonthlyInput! )
semiMonthly ( PayCycleSemimonthlyInput )
variation ( PayCycleVariationEnum! )

CreateTransactionInput

INPUT FIELDS

NameDescription
amount ( float! )
companyId ( id! )
employeeId ( id! )

EmployeeInput

INPUT FIELDS

NameDescription
bankAccount ( BankAccountInput! )
department ( string )
email ( string! )
mobile ( string )
name ( string! )
reference ( string )
wage ( float! )

PayCycleMonthlyInput

INPUT FIELDS

NameDescription
bufferIncludesWeekends ( boolean )
endOfPayCycleRule ( PayCycleRule! )
startOfBufferRule ( BufferRule! )

PayCycleSemimonthlyInput

INPUT FIELDS

NameDescription
bufferIncludesWeekends ( boolean )
endOfPayCycleRule ( string! )
startOfBufferRule ( string! )

SortInput

INPUT FIELDS

NameDescription
createdAt ( SortInputEnum )
name ( SortInputEnum )
updatedAt ( SortInputEnum )

TransactionSortInput

INPUT FIELDS

NameDescription
createdAt ( SortInputEnum )
updatedAt ( SortInputEnum )

UpdateCompanyInput

INPUT FIELDS

NameDescription
accessWagePercentage ( float )
country ( CompanyCountryEnum )
createPayCycleConfiguration ( UpdatePayCycleConfigurationInput )Create a new PayCycleConfiguration version, superceding the current Pay Cycle Configuration setup.
id ( id! )
name ( string )
serviceFeeFlatRate ( float )
serviceFeePercentage ( float )
status ( CompanyStatusEnum )
withdrawalLimit ( float )

UpdateEmployeeInput

INPUT FIELDS

NameDescription
companyId ( id! )
createBankAccountVersion ( BankAccountInput )Create a new bank account record for this employee, superceding the previous Bank Account version.
department ( string )
email ( string )
id ( id! )
mobile ( string )
name ( string )
reference ( string )
wage ( float )

UpdatePayCycleConfigurationInput

INPUT FIELDS

NameDescription
monthly ( PayCycleMonthlyInput )
semiMonthly ( PayCycleSemimonthlyInput )
variation ( PayCycleVariationEnum )