CoworkerInvoiceLine API Resource


Base URL

https://spaces.nexudus.com/api/billing/coworkerinvoicelines

GET a list of CoworkerInvoiceLines

Calling this API method requires your App to be assinged one of the following roles:

  • CoworkerInvoiceLine-List

GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines
Request Url: billing/coworkerinvoicelines
Request Method: GET
Request Params: {}

Response Status Code: 200
Response Body:
{

    "Records": [{
        "CoworkerInvoiceId": 123456
        "Description": "BillToName"
        "TaxCategoryName": "Joe"
        "Quantity": 1
        "SubTotal": 25.75
        "CoworkerContractUniqueId": 
        "BookingUniqueId": 
        "CoworkerExtraServiceUniqueId": 
        "CoworkerTimePassUniqueId": 
        "CoworkerChargeUniqueId": 
        "CoworkerProductUniqueId": 
        "EventAttendeeUniqueId": 
        "Refunded": false
        "RefundedOn": null
        "SaleDate": null
        "CoworkerExtraServiceName": "Abc123456"
        "CoworkerTimePassName": "Abc123456"
        "CoworkerProductName": "Abc123456"
        "EventAttendeeProductName": "Abc123456"
        "TariffName": "Abc123456"
        "FinancialAccountCode": "Abc123456"
        "FinancialAccountName": "Abc123456"
        "UpdatedOn": "2010-09-16T03:05:32",
        "CreatedOn": "2010-08-31T13:45:29",
        "UniqueId": "a7399f21-8a5a-4837-a200-a44131ec50b3",
        "UpdatedBy": "user@example.com"
    }, {
        ...
    }, {
        ...
    }],
    "CurrentPageSize": 25,
    "CurrentPage": 1,
    "CurrentOrderField": "Id",
    "CurrentSortDirection": 1,
    "FirstItem": 1,
    "HasNextPage": true,
    "HasPreviousPage": false,
    "LastItem": 1,
    "PageNumber": 1,
    "PageSize": 25,
    "TotalItems": 45,
    "TotalPages": 2
}

Although the data structure returned by the request may contain several properties, only the ones outlined above will actually contain data. If you want the complete data structure for a coworkerinvoiceline use the GET method to retrieve a single record.

Use the parameters below to filter and search the list of results. You can pass any combinations of the parameters in the querystring of the request

GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?CoworkerInvoiceLine_Id=123456
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?CoworkerInvoiceLine_Name=ABC12354
  • CoworkerInvoiceLine_Id

  • CoworkerInvoiceLine_CoworkerInvoice

  • CoworkerInvoiceLine_Description

  • CoworkerInvoiceLine_TaxCategoryName

  • CoworkerInvoiceLine_Quantity

  • CoworkerInvoiceLine_SubTotal

  • CoworkerInvoiceLine_TaxAmount

  • CoworkerInvoiceLine_TaxRate

  • CoworkerInvoiceLine_CoworkerContractUniqueId

  • CoworkerInvoiceLine_BookingUniqueId

  • CoworkerInvoiceLine_CoworkerExtraServiceUniqueId

  • CoworkerInvoiceLine_CoworkerTimePassUniqueId

  • CoworkerInvoiceLine_CoworkerChargeUniqueId

  • CoworkerInvoiceLine_CoworkerProductUniqueId

  • CoworkerInvoiceLine_EventAttendeeUniqueId

  • CoworkerInvoiceLine_Refunded

  • CoworkerInvoiceLine_RefundedOn

  • CoworkerInvoiceLine_SaleDate

  • CoworkerInvoiceLine_DiscountCode

  • CoworkerInvoiceLine_DiscountAmount

  • CoworkerInvoiceLine_CoworkerExtraServiceName

  • CoworkerInvoiceLine_CoworkerTimePassName

  • CoworkerInvoiceLine_CoworkerProductName

  • CoworkerInvoiceLine_EventAttendeeProductName

  • CoworkerInvoiceLine_TariffName

  • CoworkerInvoiceLine_FinancialAccountCode

  • CoworkerInvoiceLine_FinancialAccountName

  • CoworkerInvoiceLine_CreatedOnLocal

  • CoworkerInvoiceLine_RefundedOnLocal

  • CoworkerInvoiceLine_SaleDateLocal

You can also get a list of records based when they were created or updated. This is useful if you want to get a list of records created after or before a particuar id or point in time. The IDs are always unique and they always represent the order in which records are created. So a record with an Id of 10 will always be created before a record with an Id of 21.

If you use a date make sure is in the follwing format: yyyy-MM-ddTHH:mm:ssZ. For example: 2012-10-08T23:13:38Z

You use two special querystring parameters:

  • from_coworkerinvoiceline_id={id}: returns records with an Id greater (not equal) than {id}.

  • to_coworkerinvoiceline_id={id}: returns records with an Id smaller (not equal) than {id}.

GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?from_CoworkerInvoiceLine_Id=123456
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?to_CoworkerInvoiceLine_id=123456
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?from_CoworkerInvoiceLine_CreatedOn=2012-10-08T23:13:38Z
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?to_CoworkerInvoiceLine_CreatedOn=2012-10-08T23:13:38Z
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?from_CoworkerInvoiceLine_UpdatedOn=2012-10-08T23:13:38Z
GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines?to_CoworkerInvoiceLine_UpdatedOn=2012-10-08T23:13:38Z

Additionally, as with all the listings, you can pass parameters to control sorting and page sizes

  • page (default: 1)

  • size (the size of each page. Default: 25, max: 1000)

  • orderby (the field used to order the results)

  • dir (default: Descending. options: Ascending or Descending)


Get single

Calling this API method requires your App to be assinged one of the following roles:

  • CoworkerInvoiceLine-Read

GET https://spaces.nexudus.com/api/billing/coworkerinvoicelines/{id}
Request Url: billing/coworkerinvoicelines
Request Method: GET
Request Params: {}
Response Status Code: 200
Response Body:
{
    "CoworkerInvoiceId": 123456
    "Description": "BillToName"
    "TaxCategoryName": "Joe"
    "Quantity": 1
    "SubTotal": 25.75
    "TaxAmount": 25.75
    "TaxRate": 25.75
    "CoworkerContractUniqueId": 
    "BookingUniqueId": 
    "CoworkerExtraServiceUniqueId": 
    "CoworkerTimePassUniqueId": 
    "CoworkerChargeUniqueId": 
    "CoworkerProductUniqueId": 
    "EventAttendeeUniqueId": 
    "Refunded": false
    "RefundedOn": null
    "SaleDate": null
    "DiscountCode": "null"
    "DiscountAmount": null
    "CoworkerExtraServiceName": "Abc123456"
    "CoworkerTimePassName": "Abc123456"
    "CoworkerProductName": "Abc123456"
    "EventAttendeeProductName": "Abc123456"
    "TariffName": "Abc123456"
    "FinancialAccountCode": "Abc123456"
    "FinancialAccountName": "Abc123456"
    "UpdatedOn": "2010-09-16T03:05:32",
    "CreatedOn": "2010-08-31T13:45:29",
    "UniqueId": "a7399f21-8a5a-4837-a200-a44131ec50b3",
    "UpdatedBy": "user@example.com"
}

Create

This resource cannot be created using the Nexudus Spaces API


Delete

This resource cannot be deleted using the Nexudus Spaces API


Update

Calling this API method requires your App to be assinged one of the following roles:

  • CoworkerInvoiceLine-Update

PUT https://spaces.nexudus.com/api/billing/coworkerinvoicelines
Request Url: billing/coworkerinvoicelines
Request Method: PUT
Request Content-Type: application/json
Params: {}

Request Body:
{
    "Id": 123456
    "CoworkerInvoiceId": 789456
    "Description": "BillToName"
    "Quantity": 1
    "SubTotal": 25.75
    "TaxAmount": 25.75
    "TaxRate": 25.75
}
Response Status Code: 200
Response Body:
{
    "Status": 200,
    "WasSuccessful": true,
    "Message": "The record "name of the record" was updated successfully,
    "Value": {
        "Id": 123456
    },
    "OpenInDialog": false,
    "RedirectURL": null,
    "JavaScript": null,
    "Errors": null
}

Complete Data Structure

Below is displayed the complete data structure for a coworkerinvoiceline. Not all the methods outlined in this page will populate data for all the properties in the structure. For example, the GET method to retrieve a list of coworkerinvoicelines will only return a subset of this.

Response Status Code: 200
Response Body:
{

   "CoworkerInvoiceId": 123456
   "Description": "BillToName"
   "TaxCategoryName": "Joe"
   "Quantity": 1
   "SubTotal": 25.75
   "TaxAmount": 25.75
   "TaxRate": 25.75
   "CoworkerContractUniqueId": 
   "BookingUniqueId": 
   "CoworkerExtraServiceUniqueId": 
   "CoworkerTimePassUniqueId": 
   "CoworkerChargeUniqueId": 
   "CoworkerProductUniqueId": 
   "EventAttendeeUniqueId": 
   "Refunded": false
   "RefundedOn": null
   "SaleDate": null
   "DiscountCode": "null"
   "DiscountAmount": null
   "CoworkerExtraServiceName": "Abc123456"
   "CoworkerTimePassName": "Abc123456"
   "CoworkerProductName": "Abc123456"
   "EventAttendeeProductName": "Abc123456"
   "TariffName": "Abc123456"
   "FinancialAccountCode": "Abc123456"
   "FinancialAccountName": "Abc123456"
   "Id": 123456,
   "UpdatedOn": "2013-02-13T13:15:07.7527111Z",
   "CreatedOn": "2013-02-13T13:15:07.7527111Z",
   "UniqueId": "8a2648c6-f440-48f5-8601-ec96dee5f823",
   "UpdatedBy": "user@example.com"
}

Data Types

The list below provides the type for each of the fields avaialble for the coworkerinvoiceline entities.

"CoworkerInvoiceId": int
"Description": string
"TaxCategoryName": string
"Quantity": int
"SubTotal": decimal
"TaxAmount": decimal
"TaxRate": decimal
"CoworkerContractUniqueId": Guid?
"BookingUniqueId": Guid?
"CoworkerExtraServiceUniqueId": Guid?
"CoworkerTimePassUniqueId": Guid?
"CoworkerChargeUniqueId": Guid?
"CoworkerProductUniqueId": Guid?
"EventAttendeeUniqueId": Guid?
"Refunded": bool
"RefundedOn": DateTime?
"SaleDate": DateTime?
"DiscountCode": string
"DiscountAmount": decimal?
"CoworkerExtraServiceName": string
"CoworkerTimePassName": string
"CoworkerProductName": string
"EventAttendeeProductName": string
"TariffName": string
"FinancialAccountCode": string
"FinancialAccountName": string
"Id": int,
"UpdatedOn": DateTime,
"CreatedOn": DateTime,
"UniqueId": GUID,
"UpdatedBy": string
		

Related API Resources




Source: XML ! RSS