Skip to content

Xero: Projects schemas

17 Xero schemas with complete fields and constraints.

← Projects operations · All schemas

Allows you to create a task — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
chargeTypestringRequired within parentCan be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`.
One of: TIME, FIXED, NON_CHARGEABLE
estimateMinutesintegerOptionalAn estimated time to perform the task
namestringRequired within parentName of the task. Max length 100 characters.
Maximum: 100
rateModelRequired within parentExpand Allows you to create a task — request body — body rate

Referenced models: Allows you to create a task — request body — body rate

Allows you to create a task — request body — body rate

FieldTypePresenceDescription and constraints
$objectRoot
currencyModelOptionalExpand Allows you to create a task — request body — body rate currency
valuenumberOptionalFormat: double

Referenced models: Allows you to create a task — request body — body rate currency

Allows you to create a task — request body — body rate currency

FieldTypePresenceDescription and constraints
$stringRoot3 letter alpha code for the ISO-4217 currency code, e.g. USD, AUD.
One of: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SPL, SRD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TVD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZMK, ZWD

Allows you to create a task — response body

FieldTypePresenceDescription and constraints
$objectRoot
amountInvoicedModelOptionalExpand Allows you to create a task — response body — rate
amountToBeInvoicedModelOptionalExpand Allows you to create a task — response body — rate
chargeTypestringOptionalCan be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`.
Known values: TIME, FIXED, NON_CHARGEABLE
estimateMinutesJSONOptional
estimateMinutes (anyOf 1)integerAlternativeAn estimated time to perform the task
estimateMinutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fixedMinutesJSONOptional
fixedMinutes (anyOf 1)integerAlternativeMinutes logged against this task if its charge type is `FIXED`.
fixedMinutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
minutesInvoicedJSONOptional
minutesInvoiced (anyOf 1)integerAlternativeMinutes on this task which have been invoiced.
minutesInvoiced (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
minutesToBeInvoicedJSONOptional
minutesToBeInvoiced (anyOf 1)integerAlternativeMinutes on this task which have not been invoiced.
minutesToBeInvoiced (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringOptionalName of the task.
nonChargeableMinutesJSONOptional
nonChargeableMinutes (anyOf 1)integerAlternativeMinutes logged against this task if its charge type is `NON_CHARGEABLE`.
nonChargeableMinutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
projectIdstringOptionalIdentifier of the project task belongs to.
Format: uuid
rateModelOptionalExpand Allows you to create a task — response body — rate
statusstringOptionalStatus of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified.
Known values: ACTIVE, INVOICED, LOCKED
taskIdstringOptionalIdentifier of the task.
Format: uuid
totalAmountModelOptionalExpand Allows you to create a task — response body — rate
totalMinutesJSONOptional
totalMinutes (anyOf 1)integerAlternativeTotal minutes which have been logged against the task. Logged by assigning a time entry to a task
totalMinutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Allows you to create a task — response body — rate

Allows you to create a task — response body — rate

FieldTypePresenceDescription and constraints
$objectRoot
currencyModelOptionalExpand Retrieves a single project — response body — currency Code
valueJSONOptional
value (anyOf 1)numberAlternativeFormat: double
value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Retrieves a single project — response body — currency Code

Creates a time entry for a specific project — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
dateUtcstringRequired within parentDate time entry is logged on. UTC Date Time in ISO-8601 format.
Format: date-time
descriptionstringOptionalAn optional description of the time entry, will be set to null if not provided during update.
durationintegerRequired within parentNumber of minutes to be logged. Duration is between 1 and 59940 inclusively.
taskIdstringRequired within parentIdentifier of the task that time entry is logged against.
Format: uuid
userIdstringRequired within parentThe xero user identifier of the person logging the time.
Format: uuid

Creates a time entry for a specific project — response body

FieldTypePresenceDescription and constraints
$objectRoot
dateEnteredUtcstringOptionalThe date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.
Format: date-time
dateUtcstringOptionalThe date time that time entry is logged on. UTC Date Time in ISO-8601 format.
Format: date-time
descriptionstringOptionalA description of the time entry.
durationJSONOptional
duration (anyOf 1)integerAlternativeThe duration of logged minutes.
duration (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
projectIdstringOptionalIdentifier of the project, that the task (which the time entry is logged against) belongs to.
Format: uuid
statusstringOptionalStatus of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.
Known values: ACTIVE, LOCKED, INVOICED
taskIdstringOptionalIdentifier of the task that time entry is logged against.
Format: uuid
timeEntryIdstringOptionalIdentifier of the time entry.
Format: uuid
userIdstringOptionalThe xero user identifier of the person who logged time.
Format: uuid

Retrieves a list of all project users — response body

FieldTypePresenceDescription and constraints
$objectRoot
itemsarrayOptional
items[]ModelEach itemExpand Retrieves a list of all project users — response body — items item
paginationModelOptionalExpand Retrieves all projects — response body — pagination

Referenced models: Retrieves a list of all project users — response body — items item, Retrieves all projects — response body — pagination

Retrieves a list of all project users — response body — items item

FieldTypePresenceDescription and constraints
$objectRoot
emailstringOptionalEmail address of the user.
namestringOptionalFull name of the user.
userIdstringOptionalIdentifier of the user of the project.
Format: uuid

Retrieves a single project — response body

FieldTypePresenceDescription and constraints
$objectRoot
contactIdstringOptionalIdentifier of the contact this project was created for.
Format: uuid
creditNoteAmountModelOptionalExpand Allows you to create a task — response body — rate
currencyCodeModelOptionalExpand Retrieves a single project — response body — currency Code
deadlineUtcstringOptionalDeadline for the project. UTC Date Time in ISO-8601 format.
Format: date-time
depositModelOptionalExpand Allows you to create a task — response body — rate
depositAppliedModelOptionalExpand Allows you to create a task — response body — rate
estimateModelOptionalExpand Allows you to create a task — response body — rate
estimateAmountModelOptionalExpand Allows you to create a task — response body — rate
expenseAmountInvoicedModelOptionalExpand Allows you to create a task — response body — rate
expenseAmountToBeInvoicedModelOptionalExpand Allows you to create a task — response body — rate
minutesLoggedJSONOptional
minutesLogged (anyOf 1)integerAlternativeA total of minutes logged against all tasks on the Project.
minutesLogged (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
minutesToBeInvoicedJSONOptional
minutesToBeInvoiced (anyOf 1)integerAlternativeMinutes which have not been invoiced across all chargeable tasks in the project.
minutesToBeInvoiced (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentName of the project.
projectAmountInvoicedModelOptionalExpand Allows you to create a task — response body — rate
projectIdstringOptionalIdentifier of the project.
Format: uuid
statusstringOptionalStatus for project
Known values: INPROGRESS, CLOSED
taskAmountInvoicedModelOptionalExpand Allows you to create a task — response body — rate
taskAmountToBeInvoicedModelOptionalExpand Allows you to create a task — response body — rate
totalExpenseAmountModelOptionalExpand Allows you to create a task — response body — rate
totalInvoicedModelOptionalExpand Allows you to create a task — response body — rate
totalTaskAmountModelOptionalExpand Allows you to create a task — response body — rate
totalToBeInvoicedModelOptionalExpand Allows you to create a task — response body — rate

Referenced models: Allows you to create a task — response body — rate, Retrieves a single project — response body — currency Code

Retrieves a single project — response body — currency Code

FieldTypePresenceDescription and constraints
$stringRoot3 letter alpha code for the ISO-4217 currency code, e.g. USD, AUD.
Known values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SPL, SRD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TVD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZMK, ZWD

Retrieves all project tasks — response body

FieldTypePresenceDescription and constraints
$objectRoot
itemsarrayOptional
items[]ModelEach itemExpand Allows you to create a task — response body
paginationModelOptionalExpand Retrieves all projects — response body — pagination

Referenced models: Retrieves all projects — response body — pagination, Allows you to create a task — response body

Retrieves all projects — response body

FieldTypePresenceDescription and constraints
$objectRoot
itemsarrayOptional
items[]ModelEach itemExpand Retrieves a single project — response body
paginationModelOptionalExpand Retrieves all projects — response body — pagination

Referenced models: Retrieves a single project — response body, Retrieves all projects — response body — pagination

Retrieves all projects — response body — pagination

FieldTypePresenceDescription and constraints
$JSONRoot
itemCountJSONOptional
itemCount (anyOf 1)integerAlternativeNumber of items returned
itemCount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageJSONOptional
page (anyOf 1)integerAlternativeSet to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageCountJSONOptional
pageCount (anyOf 1)integerAlternativeNumber of pages available
pageCount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageSizeJSONOptional
pageSize (anyOf 1)integerAlternativeOptional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
pageSize (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Retrieves all time entries associated with a specific project — response body

FieldTypePresenceDescription and constraints
$objectRoot
itemsarrayOptional
items[]ModelEach itemExpand Creates a time entry for a specific project — response body
paginationModelOptionalExpand Retrieves all projects — response body — pagination

Referenced models: Retrieves all projects — response body — pagination, Creates a time entry for a specific project — response body

Updates a specific project — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
contactIdstringOptionalIdentifier of the contact this project was created for.
Format: uuid
deadlineUtcstringOptionalDeadline for the project. UTC Date Time in ISO-8601 format.
Format: date-time
estimateAmountnumberOptionalFormat: double
namestringRequired within parentName of the project.

creates a project for the specified contact — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
statusstringRequired within parentStatus for project
One of: INPROGRESS, CLOSED

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.