Accounting

Retrieves prepayments

Changed on
get/Prepayments

Request

  • Base URL
    https://api.xero.com/api.xro/2.0
  • URL
    https://api.xero.com/api.xro/2.0/Prepayments
  • Auth
    OAuth 2
    Authorization code: https://login.xero.com/identity/connect/authorize
    Token URL: https://identity.xero.com/connect/token scopes: accounting.transactions, accounting.transactions.read

Query parameters

wherestring

Filter by an any element

orderstring

Order by an any element

pageinteger

e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment

unitdpinteger

e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

pageSizeinteger

Number of records to retrieve per page

InvoiceNumbersstring[]

Filter by a comma-separated list of InvoiceNumbers

Referencesstring[]

Filter by a comma-separated list of References

Headers

If-Modified-Sincestring date-time

Only records created or modified since this timestamp will be returned

Response

Success - return response of type Prepayments array for all Prepayment

Changes