sÚčto API Documentation

Accounts

List of accounts

Request

Route

GET api/companies/1/accounts

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"0db63e8447b601391df5fa81d60a1852"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=aea807b0c5a505c61cd7c2d8c90e8a9f; path=/; expires=Fri, 30 Sep 2016 10:03:25 -0000; HttpOnly
X-Request-Id: 878d1861-e130-4596-bee1-5c283430255e
X-Runtime: 0.278154
Content-Length: 3127

Body

[
  {
    "id": 1,
    "name": "Hotovost",
    "identifier": null,
    "account_type": 1,
    "currency_id": 1,
    "country_id": null,
    "prefix": "H1",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": null,
      "country_id": null,
      "account": null,
      "bank_name": null,
      "iban": null,
      "created_at": null,
      "updated_at": null,
      "bank_code": null,
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 2,
    "name": "Banka",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 2,
    "prefix": "B1",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 1,
      "country_id": 2,
      "account": "1111",
      "bank_name": "Banka",
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "1111",
      "bankable_id": 1,
      "bankable_type": "Company",
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 3,
    "name": "Reymundo Block",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 1,
    "prefix": "unde",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 2,
      "country_id": 1,
      "account": "Elenor Halvorson",
      "bank_name": null,
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "6200",
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 4,
    "name": "Reymundo Gutmann I",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 1,
    "prefix": "doloribus",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 3,
      "country_id": 1,
      "account": "Alexane Hettinger",
      "bank_name": null,
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "6200",
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 5,
    "name": "Keyon Kiehn",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 1,
    "prefix": "dignissimos",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 4,
      "country_id": 1,
      "account": "Miss Krystina Willms",
      "bank_name": null,
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "6200",
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 6,
    "name": "Hildegard Russel",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 1,
    "prefix": "et",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 5,
      "country_id": 1,
      "account": "Diamond Mitchell",
      "bank_name": null,
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "6200",
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  },
  {
    "id": 7,
    "name": "Noel Kris",
    "identifier": null,
    "account_type": 2,
    "currency_id": 1,
    "country_id": 1,
    "prefix": "assumenda",
    "is_deactivated": false,
    "opening_balance": "0.0",
    "bank_account": {
      "id": 6,
      "country_id": 1,
      "account": "Myra Hagenes",
      "bank_name": null,
      "iban": null,
      "created_at": "2016-09-30T10:03:25.000+02:00",
      "updated_at": "2016-09-30T10:03:25.000+02:00",
      "bank_code": "6200",
      "bankable_id": null,
      "bankable_type": null,
      "is_deleted": false,
      "swift": null,
      "qr_codes": false
    }
  }
]

Actuarial Types

List of actuarial types

Request

Route

GET api/actuarial_types

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"638c6dce367d127bacc0b34dab418cc2"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=6547d63b8ecbca29f2a87cd986a050cc; path=/; expires=Fri, 30 Sep 2016 10:03:25 -0000; HttpOnly
X-Request-Id: 585391e7-1ec1-4945-a39e-870d5c0c3318
X-Runtime: 0.021359
Content-Length: 91

Body

[
  {
    "id": 1,
    "name": "invoice"
  },
  {
    "id": 2,
    "name": "call_for_payment"
  },
  {
    "id": 3,
    "name": "correcting"
  }
]

Actuarials In

Company's actuarial out detail

Request

Route

GET api/companies/8/actuarials_ins/106

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"bde5eb797df1ae5fb3b44b6449e19a50"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=175c2b2bebf8969784f884b74a5e03a2; path=/; expires=Fri, 30 Sep 2016 10:03:36 -0000; HttpOnly
X-Request-Id: 4ca65d3c-677e-43c3-bb58-d2d380507627
X-Runtime: 0.081074
Content-Length: 950

Body

{
  "id": 106,
  "actuarial_type": "FA",
  "actuarial_number": "FV 106",
  "uzp_date_at": "30. 09. 2016",
  "due_date_at": "30. 09. 2016",
  "status": "V přípravě",
  "issue_date_at": "30. 09. 2016",
  "base_price": "200,00 Kč",
  "end_price": "240,00 Kč",
  "remaining": "240,00 Kč",
  "external_number": null,
  "payment_type": null,
  "due_date": 0,
  "order_number": null,
  "currency": {
    "id": 5,
    "iso_code": "EUR",
    "created_at": "2016-09-30T10:03:34.000+02:00",
    "updated_at": "2016-09-30T10:03:34.000+02:00",
    "name": "Euro"
  },
  "bank_number": null,
  "iban": null,
  "swift": null,
  "vat": "40.0",
  "paypal_identifier": null,
  "taxable": false,
  "pay": "0,00 Kč",
  "supplier": {
    "name": "Company 8",
    "ic": "8",
    "dic": null,
    "dic2": null,
    "street": "Glover Court",
    "city": "Candiceton",
    "zip": "89800-8092",
    "is_taxable": false,
    "country_id": 13
  },
  "items": [
    {
      "id": 103,
      "quantity": "1.0",
      "unit_name": null,
      "name": "Elena Harris",
      "vat_id": 4,
      "tax": "40.0",
      "vat": "20.0",
      "unit_price": "200,00 Kč",
      "base_price": "200,00 Kč",
      "total_price": "240,00 Kč"
    }
  ],
  "amounts": [

  ]
}

List of company's actuarials ins

Parameters

Name Description
page Page
q[actuarial_type_id_eq] ID of actuarial type
q[actuarial_number_cont] Acturial number contains
q[partner_name_cont] Supplier name contains
q[status_eq] Status is one of {1=>"concept", 2=>"prepare", 3=>"sent", 4=>"displayed", 5=>"commented", 6=>"corrected", 7=>"partly_paid", 8=>"paid", 9=>"archived", 10=>"storno", 11=>"done"}
q[uzp_date_at_gteq] UZP date is later or equal to
q[uzp_date_at_lteq] UZP date is before or equal to
q[due_date_at_gteq] Due date is later or equal to
q[due_date_at_lteq] Due date is before or equal to
q[issue_date_at_gteq] Issue date is later or equal to
q[issue_date_at_lteq] Issue date is before or equal to
q[base_price_gteq] Base price is greater or equal to
q[base_price_lteq] Base price is lower or equal to
q[end_price_gteq] End price is greater or equal to
q[end_price_lteq] End price is lower or equal to

Request

Route

GET api/companies/2/actuarials_ins

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"0fc4bab557b628643ccd572472666bcb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=d3c3d11526214b36d0001dbda24f41bd; path=/; expires=Fri, 30 Sep 2016 10:03:29 -0000; HttpOnly
X-Request-Id: bde1c10a-73d6-4c48-8b7d-2176b1fdbc20
X-Runtime: 0.262101
Content-Length: 5855

Body

[
  {
    "id": 35,
    "actuarial_type": "FA",
    "actuarial_number": "FV 35",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2017",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "0,00 Kč",
    "end_price": "0,00 Kč",
    "remaining": "0,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 29,
    "actuarial_type": "FA",
    "actuarial_number": "FV 29",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 28,
    "actuarial_type": "FA",
    "actuarial_number": "FV 28",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 27,
    "actuarial_type": "FA",
    "actuarial_number": "FV 27",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 26,
    "actuarial_type": "FA",
    "actuarial_number": "FV 26",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 25,
    "actuarial_type": "FA",
    "actuarial_number": "FV 25",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 24,
    "actuarial_type": "FA",
    "actuarial_number": "FV 24",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 23,
    "actuarial_type": "FA",
    "actuarial_number": "FV 23",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 22,
    "actuarial_type": "FA",
    "actuarial_number": "FV 22",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 21,
    "actuarial_type": "FA",
    "actuarial_number": "FV 21",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 20,
    "actuarial_type": "FA",
    "actuarial_number": "FV 20",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 19,
    "actuarial_type": "FA",
    "actuarial_number": "FV 19",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 18,
    "actuarial_type": "FA",
    "actuarial_number": "FV 18",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 17,
    "actuarial_type": "FA",
    "actuarial_number": "FV 17",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 16,
    "actuarial_type": "FA",
    "actuarial_number": "FV 16",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 15,
    "actuarial_type": "FA",
    "actuarial_number": "FV 15",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 14,
    "actuarial_type": "FA",
    "actuarial_number": "FV 14",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 13,
    "actuarial_type": "FA",
    "actuarial_number": "FV 13",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 12,
    "actuarial_type": "FA",
    "actuarial_number": "FV 12",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 11,
    "actuarial_type": "FA",
    "actuarial_number": "FV 11",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "supplier": {
      "id": 3,
      "name": "Drobný nákup"
    }
  }
]

Actuarials Out

Company's actuarial out detail

Request

Route

GET api/companies/16/actuarials_outs/245

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"5b93a2ec47bcc99418f4cd8e53d7facd"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=a45428810959b184f7f0755ecd11a840; path=/; expires=Fri, 30 Sep 2016 10:03:47 -0000; HttpOnly
X-Request-Id: d705a14c-02e4-4a29-958a-a6eb3196e743
X-Runtime: 0.050147
Content-Length: 1085

Body

{
  "id": 245,
  "actuarial_type": "FA",
  "actuarial_number": "FV 245",
  "uzp_date_at": "30. 09. 2016",
  "due_date_at": "30. 09. 2016",
  "status": "V přípravě",
  "issue_date_at": "30. 09. 2016",
  "base_price": "200,00 Kč",
  "end_price": "240,00 Kč",
  "remaining": "240,00 Kč",
  "external_number": null,
  "payment_type": null,
  "due_date": 0,
  "order_number": null,
  "currency": {
    "id": 9,
    "iso_code": "USD",
    "created_at": "2016-09-30T10:03:44.000+02:00",
    "updated_at": "2016-09-30T10:03:44.000+02:00",
    "name": "United states dollar"
  },
  "bank_number": null,
  "iban": null,
  "swift": null,
  "vat": "40.0",
  "paypal_identifier": null,
  "taxable": false,
  "pay": "0,00 Kč",
  "supplier": {
    "name": "Company 16",
    "ic": "16",
    "dic": null,
    "dic2": null,
    "street": "Magnolia Prairie",
    "city": "Elizafurt",
    "zip": "26583-9703",
    "is_taxable": false,
    "country_id": 25
  },
  "customer": {
    "name": null,
    "email": null,
    "ic": null,
    "dic": null,
    "dic2": null,
    "street": null,
    "city": null,
    "zip": null,
    "country_id": null
  },
  "items": [
    {
      "id": 242,
      "quantity": "1.0",
      "unit_name": null,
      "name": "Duncan Schumm",
      "vat_id": 8,
      "tax": "40.0",
      "vat": "20.0",
      "unit_price": "200,00 Kč",
      "base_price": "200,00 Kč",
      "total_price": "240,00 Kč"
    }
  ]
}

Create Actuarials Out

Parameters

Name Description
actuarials_out[partner_id] required Id of Partner
actuarials_out[account_id] required Id of account
actuarials_out[currency_id] required Id of currency
actuarials_out[actuarial_type_id] required Id of Type of actuarial
actuarials_out[actuarial_number] required Generated Number of actuarial
actuarials_out[due_date_at] required Due date of actuarial
actuarials_out[lines_attributes[name]] required Line name
actuarials_out[lines_attributes[quantity]] required Line name
actuarials_out[lines_attributes[unit_price]] required Price for unit
actuarials_out[lines_attributes[vat_id]] required Id of VAT
actuarials_out[variable_symbol] Variable Symbol
actuarials_out[print_notice] Print notice
actuarials_out[foot_notice] Foot notice
actuarials_out[internal_notice] Internal notice
actuarials_out[payment_type_id] Id of Payment type
actuarials_out[issue_date_at] Issue date
actuarials_out[uzp_date_at] UZP date
actuarials_out[order_number] Number of order
actuarials_out[department_id] Id of Department
actuarials_out[bank_number] Bank number
actuarials_out[iban] IBAN
actuarials_out[swift] SWIFT
actuarials_out[vat_regime_id] Id of vat regime, only if company is_taxable = true
actuarials_out[is_visible_stamp] Stamp visibility
actuarials_out[language] ["en", "cs", "es"]

Request

Route

POST api/companies/18/actuarials_outs

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Body

{
  "actuarials_out": {
    "partner_id": 39,
    "vat_regime_id": 313,
    "actuarial_type_id": 316,
    "due_date_at": "2016-10-14",
    "account_id": 40,
    "currency_id": 10,
    "actuarial_number": "2015000001",
    "lines_attributes": {
      "0": {
        "vat_id": 9,
        "lineable_type": "Actuarial",
        "name": "Alba Russel",
        "quantity": 1,
        "unit_price": 200,
        "base_price": 200,
        "tax": 20,
        "total_price": 220
      }
    }
  }
}

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"77f2a8ec4dc0a69ffb7635adbeb0e441"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=fe091dc0d592db0ba1a2ca31b4682c72; path=/; expires=Fri, 30 Sep 2016 10:03:50 -0000; HttpOnly
X-Request-Id: e913926f-2fa0-43a4-8f97-453954c7b19d
X-Runtime: 0.080095
Content-Length: 1149

Body

{
  "id": 313,
  "actuarial_type": "FA",
  "actuarial_number": "2015000001",
  "uzp_date_at": "30. 09. 2016",
  "due_date_at": "14. 10. 2016",
  "status": "Připravený",
  "issue_date_at": "30. 09. 2016",
  "base_price": "200,00 Kč",
  "end_price": "240,00 Kč",
  "remaining": "240,00 Kč",
  "external_number": null,
  "payment_type": null,
  "due_date": 14,
  "order_number": null,
  "currency": {
    "id": 10,
    "iso_code": "PLN",
    "created_at": "2016-09-30T10:03:47.000+02:00",
    "updated_at": "2016-09-30T10:03:47.000+02:00",
    "name": "Polish zloty"
  },
  "bank_number": null,
  "iban": null,
  "swift": null,
  "vat": "40.0",
  "paypal_identifier": null,
  "taxable": false,
  "pay": "0,00 Kč",
  "supplier": {
    "name": "Company 18",
    "ic": "18",
    "dic": null,
    "dic2": null,
    "street": "Jakubowski Parkways",
    "city": "Spinkaville",
    "zip": "23964-6595",
    "is_taxable": false,
    "country_id": 28
  },
  "customer": {
    "name": "Lisette Champlin",
    "email": "1myrtle_zemlak@example.com",
    "ic": null,
    "dic": null,
    "dic2": null,
    "street": "Cummings Forks",
    "city": "North Jana",
    "zip": "82080-2724",
    "country_id": 27
  },
  "items": [
    {
      "id": 310,
      "quantity": "1.0",
      "unit_name": null,
      "name": "Alba Russel",
      "vat_id": 9,
      "tax": "40.0",
      "vat": "20.0",
      "unit_price": "200,00 Kč",
      "base_price": "200,00 Kč",
      "total_price": "240,00 Kč"
    }
  ]
}

List of company's actuarials outs

Parameters

Name Description
page Page
q[actuarial_type_id_eq] ID of actuarial type
q[actuarial_number_cont] Acturial number contains
q[partner_name_cont] Customer name contains
q[status_eq] Status is one of {1=>"concept", 2=>"prepare", 3=>"sent", 4=>"displayed", 5=>"commented", 6=>"corrected", 7=>"partly_paid", 8=>"paid", 9=>"archived", 10=>"storno", 11=>"done"}
q[uzp_date_at_gteq] UZP date is later or equal to
q[uzp_date_at_lteq] UZP date is before or equal to
q[due_date_at_gteq] Due date is later or equal to
q[due_date_at_lteq] Due date is before or equal to
q[issue_date_at_gteq] Issue date is later or equal to
q[issue_date_at_lteq] Issue date is before or equal to
q[base_price_gteq] Base price is greater or equal to
q[base_price_lteq] Base price is lower or equal to
q[end_price_gteq] End price is greater or equal to
q[end_price_lteq] End price is lower or equal to

Request

Route

GET api/companies/10/actuarials_outs

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"69c92fcf61c6800022bcd9c53ea1f02e"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=eea758f136e96a64246f40ef99e8ee71; path=/; expires=Fri, 30 Sep 2016 10:03:39 -0000; HttpOnly
X-Request-Id: 63c7a4ca-8dfa-4ab9-a284-d95b5cfb162a
X-Runtime: 0.322883
Content-Length: 5921

Body

[
  {
    "id": 174,
    "actuarial_type": "FA",
    "actuarial_number": "FV 174",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2017",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 168,
    "actuarial_type": "FA",
    "actuarial_number": "FV 168",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 167,
    "actuarial_type": "FA",
    "actuarial_number": "FV 167",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 166,
    "actuarial_type": "FA",
    "actuarial_number": "FV 166",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 165,
    "actuarial_type": "FA",
    "actuarial_number": "FV 165",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 164,
    "actuarial_type": "FA",
    "actuarial_number": "FV 164",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 163,
    "actuarial_type": "FA",
    "actuarial_number": "FV 163",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 162,
    "actuarial_type": "FA",
    "actuarial_number": "FV 162",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 161,
    "actuarial_type": "FA",
    "actuarial_number": "FV 161",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 160,
    "actuarial_type": "FA",
    "actuarial_number": "FV 160",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 159,
    "actuarial_type": "FA",
    "actuarial_number": "FV 159",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 158,
    "actuarial_type": "FA",
    "actuarial_number": "FV 158",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 157,
    "actuarial_type": "FA",
    "actuarial_number": "FV 157",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 156,
    "actuarial_type": "FA",
    "actuarial_number": "FV 156",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 155,
    "actuarial_type": "FA",
    "actuarial_number": "FV 155",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 154,
    "actuarial_type": "FA",
    "actuarial_number": "FV 154",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 153,
    "actuarial_type": "FA",
    "actuarial_number": "FV 153",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 152,
    "actuarial_type": "FA",
    "actuarial_number": "FV 152",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 151,
    "actuarial_type": "FA",
    "actuarial_number": "FV 151",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  },
  {
    "id": 150,
    "actuarial_type": "FA",
    "actuarial_number": "FV 150",
    "uzp_date_at": "30. 09. 2016",
    "due_date_at": "30. 09. 2016",
    "status": "V přípravě",
    "issue_date_at": "30. 09. 2016",
    "base_price": "200,00 Kč",
    "end_price": "240,00 Kč",
    "remaining": "240,00 Kč",
    "customer": {
      "id": 19,
      "name": "Drobný nákup"
    }
  }
]

Cash Vouchers In

Company's cash voucher in detail

Request

Route

GET api/companies/30/cash_vouchers_ins/106

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"0d19cfbc9b60858f93a1c79db80be22e"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=080d8c911ebc8177862698f93037188f; path=/; expires=Fri, 30 Sep 2016 10:04:04 -0000; HttpOnly
X-Request-Id: 88fb103c-8128-4a17-8fd2-222c748941f1
X-Runtime: 0.032338
Content-Length: 556

Body

{
  "id": 106,
  "number": "106",
  "description": null,
  "total_price": "240,00 GBP",
  "base_price": "200,00 GBP",
  "transaction_date": "30. 09. 2016",
  "recipient": {
    "name": "Drobný nákup",
    "street": null,
    "city": null,
    "zip": null,
    "country": null,
    "ic": null,
    "dic": null,
    "dic2": null
  },
  "external_number": null,
  "status": {
    "storno": "Stornováno"
  },
  "account": "Hotovost",
  "items": [
    {
      "id": 413,
      "quantity": "1.0",
      "unit_name": null,
      "name": "Clifton Volkman",
      "vat_id": 13,
      "tax": "40.0",
      "vat": "20.0",
      "unit_price": "200,00 Kč",
      "base_price": "200,00 Kč",
      "total_price": "240,00 Kč"
    }
  ],
  "amounts": [

  ],
  "payments": [

  ]
}

List of company's cash vouchers ins

Parameters

Name Description
page Page
q[number_cont] Number contains
q[description_cont] Description contains
q[partner_name_cont] Recipient name contains
q[transaction_date_gteq] Transaction date is later or equal to
q[transaction_date_lteq] Transaction date is before or equal to
q[base_price_gteq] Base price is greater or equal to
q[base_price_lteq] Base price is lower or equal to
q[total_price_gteq] Total price is greater or equal to
q[total_price_lteq] Total price is lower or equal to

Request

Route

GET api/companies/24/cash_vouchers_ins

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"065c899c175d7e3dec194b8f4aa4a1d7"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=d32eee36489fb0fa968d88920ff10bbf; path=/; expires=Fri, 30 Sep 2016 10:03:55 -0000; HttpOnly
X-Request-Id: 7ed0a53f-e3f7-4c04-ba77-09321e817536
X-Runtime: 0.315599
Content-Length: 5057

Body

[
  {
    "id": 35,
    "number": "35",
    "description": null,
    "total_price": "0,00 CZK",
    "base_price": "0,00 CZK",
    "transaction_date": "30. 09. 2017",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 29,
    "number": "29",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 28,
    "number": "28",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 27,
    "number": "27",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 26,
    "number": "26",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 25,
    "number": "25",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 24,
    "number": "24",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 23,
    "number": "23",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 22,
    "number": "22",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 21,
    "number": "21",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 20,
    "number": "20",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 19,
    "number": "19",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 18,
    "number": "18",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 17,
    "number": "17",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 16,
    "number": "16",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 15,
    "number": "15",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 14,
    "number": "14",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 13,
    "number": "13",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 12,
    "number": "12",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 11,
    "number": "11",
    "description": null,
    "total_price": "240,00 CZK",
    "base_price": "200,00 CZK",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  }
]

Cash Vouchers Out

Company's cash voucher out detail

Request

Route

GET api/companies/38/cash_vouchers_outs/245

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"3214ff87ebde0d997a1883ae50afa4ef"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=16eb8e7978aaf0c526eaf98192baea8d; path=/; expires=Fri, 30 Sep 2016 10:04:18 -0000; HttpOnly
X-Request-Id: 09505c20-f3ea-474f-ac32-836d80c594d8
X-Runtime: 0.054741
Content-Length: 557

Body

{
  "id": 245,
  "number": "245",
  "description": null,
  "total_price": "240,00 CZK",
  "base_price": "200,00 CZK",
  "transaction_date": "30. 09. 2016",
  "recipient": {
    "name": "Drobný nákup",
    "street": null,
    "city": null,
    "zip": null,
    "country": null,
    "ic": null,
    "dic": null,
    "dic2": null
  },
  "external_number": null,
  "status": {
    "storno": "Stornováno"
  },
  "account": "Hotovost",
  "items": [
    {
      "id": 549,
      "quantity": "1.0",
      "unit_name": null,
      "name": "Kaylie Jaskolski",
      "vat_id": 17,
      "tax": "40.0",
      "vat": "20.0",
      "unit_price": "200,00 Kč",
      "base_price": "200,00 Kč",
      "total_price": "240,00 Kč"
    }
  ],
  "amounts": [

  ],
  "payments": [

  ]
}

List of company's cash vouchers outs

Parameters

Name Description
page Page
q[number_cont] Number contains
q[description_cont] Description contains
q[partner_name_cont] Recipient name contains
q[transaction_date_gteq] Transaction date is later or equal to
q[transaction_date_lteq] Transaction date is before or equal to
q[base_price_gteq] Base price is greater or equal to
q[base_price_lteq] Base price is lower or equal to
q[total_price_gteq] Total price is greater or equal to
q[total_price_lteq] Total price is lower or equal to

Request

Route

GET api/companies/32/cash_vouchers_outs

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"69091bb9106b4ca32565e51153d67987"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=923aa8d8c5651f0d39c6391408c46d4c; path=/; expires=Fri, 30 Sep 2016 10:04:08 -0000; HttpOnly
X-Request-Id: b3b42bd3-f3e4-4cd7-9477-4768054185d0
X-Runtime: 0.327380
Content-Length: 5097

Body

[
  {
    "id": 174,
    "number": "174",
    "description": null,
    "total_price": "0,00 USD",
    "base_price": "0,00 USD",
    "transaction_date": "30. 09. 2017",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 168,
    "number": "168",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 167,
    "number": "167",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 166,
    "number": "166",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 165,
    "number": "165",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 164,
    "number": "164",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 163,
    "number": "163",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 162,
    "number": "162",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 161,
    "number": "161",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 160,
    "number": "160",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 159,
    "number": "159",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 158,
    "number": "158",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 157,
    "number": "157",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 156,
    "number": "156",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 155,
    "number": "155",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 154,
    "number": "154",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 153,
    "number": "153",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 152,
    "number": "152",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 151,
    "number": "151",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  },
  {
    "id": 150,
    "number": "150",
    "description": null,
    "total_price": "240,00 USD",
    "base_price": "200,00 USD",
    "transaction_date": "30. 09. 2016",
    "recipient": {
      "name": "Drobný nákup",
      "street": null,
      "city": null,
      "zip": null,
      "country": null,
      "ic": null,
      "dic": null,
      "dic2": null
    }
  }
]

Companies

Company's employee

Request

Route

GET api/companies/66/employees/90

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"4d88087ca6deb69ee9d3d35ce4b3ad06"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=cb0345b414a502f861ea53d158cfe7e5; path=/; expires=Fri, 30 Sep 2016 10:04:45 -0000; HttpOnly
X-Request-Id: c749dcf8-e16e-456d-8970-c8d4495b7f72
X-Runtime: 0.018887
Content-Length: 300

Body

{
  "id": 90,
  "first_name": "Veda",
  "last_name": "Klocko",
  "bank_account": null,
  "birthday": "2016-09-30",
  "status": null,
  "nationality": null,
  "place_of_birth": null,
  "personal_number": "30. 09. 2016",
  "identification_number": null,
  "employee_number": "number_30. 09. 2016",
  "education": null,
  "citizenhood": null,
  "sex": "Muž"
}

List of companies

Request

Route

GET api/companies

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"9553384886a810e140f12f87caa2dd45"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=e8c928c57dc411475fcbf75a71e8fa03; path=/; expires=Fri, 30 Sep 2016 10:04:19 -0000; HttpOnly
X-Request-Id: efbb4819-6e8a-4799-a347-888ab3766cf7
X-Runtime: 0.035091
Content-Length: 361

Body

[
  {
    "id": 40,
    "name": "Company 40",
    "ic": "40",
    "email": "company-40@sucto.cz",
    "address": "#<Address:0x0000000bbd1b30>"
  },
  {
    "id": 41,
    "name": "Company 41",
    "ic": "41",
    "email": "company-41@sucto.cz",
    "address": "#<Address:0x0000000bbdeee8>"
  },
  {
    "id": 42,
    "name": "Company 42",
    "ic": "42",
    "email": "company-42@sucto.cz",
    "address": "#<Address:0x0000000bbe0928>"
  }
]

List of company's employees

Parameters

Name Description
page Page

Request

Route

GET api/companies/62/employees

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"8d215b023bb291e727b2413866bd5e3c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=7e86e4a2985f82483a4eb3768dcac260; path=/; expires=Fri, 30 Sep 2016 10:04:44 -0000; HttpOnly
X-Request-Id: ba57c499-5840-4690-adcf-798b9376242f
X-Runtime: 0.042872
Content-Length: 2462

Body

[
  {
    "id": 10,
    "first_name": "Lonnie",
    "last_name": "Bernhard",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 11,
    "first_name": "Bennett",
    "last_name": "Reinger",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 12,
    "first_name": "Raleigh",
    "last_name": "Ankunding",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 13,
    "first_name": "Rosendo",
    "last_name": "MacGyver",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 14,
    "first_name": "Domenic",
    "last_name": "Green",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 15,
    "first_name": "Glenna",
    "last_name": "Veum",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 16,
    "first_name": "Carolanne",
    "last_name": "Deckow",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 17,
    "first_name": "Marcelina",
    "last_name": "Murazik",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 18,
    "first_name": "Selena",
    "last_name": "Huel",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 19,
    "first_name": "Tre",
    "last_name": "Schmitt",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 20,
    "first_name": "Marley",
    "last_name": "Jast",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 21,
    "first_name": "Pierre",
    "last_name": "Kling",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 22,
    "first_name": "Cynthia",
    "last_name": "Luettgen",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 23,
    "first_name": "Eino",
    "last_name": "Torphy",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 24,
    "first_name": "Chaya",
    "last_name": "Hamill",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 25,
    "first_name": "Vena",
    "last_name": "Lang",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 26,
    "first_name": "Mikel",
    "last_name": "Quigley",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 27,
    "first_name": "Ed",
    "last_name": "Mitchell",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 28,
    "first_name": "Theresa",
    "last_name": "Schultz",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  },
  {
    "id": 29,
    "first_name": "Boyd",
    "last_name": "Haag",
    "personal_number": "30. 09. 2016",
    "birthday": "2016-09-30",
    "sex": "Muž"
  }
]

Countries

List of countries

Request

Route

GET api/countries

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"0c8355ef65709a1892bf0c21f1c11059"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=b9fedc04c07de90df897579f3837e7a4; path=/; expires=Fri, 30 Sep 2016 10:04:19 -0000; HttpOnly
X-Request-Id: 3d16e013-fc3c-4018-bdcb-0302904d209b
X-Runtime: 0.158236
Content-Length: 301

Body

[
  {
    "id": 634,
    "name": "Czech Republic",
    "fuel_unit": "l",
    "length_unit": "km",
    "default_language": "en",
    "currency": {
      "id": 22,
      "iso_code": "CZK",
      "name": "Czech crown"
    }
  },
  {
    "id": 635,
    "name": "Slovak Republic",
    "fuel_unit": "l",
    "length_unit": "km",
    "default_language": "en",
    "currency": {
      "id": 23,
      "iso_code": "EUR",
      "name": "Euro"
    }
  }
]

List of country's vat regimes

Request

Route

GET api/countries/681/vat_regimes?document=true

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Query Parameters

document=true

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"c6be6588a3fde739bcc57f28879961dd"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=7ae9666b3dc48c4fd294bb6d5e5c6210; path=/; expires=Fri, 30 Sep 2016 10:04:47 -0000; HttpOnly
X-Request-Id: d96acb80-16ad-4296-a7e0-b635216ab180
X-Runtime: 0.150171
Content-Length: 154

Body

[
  {
    "id": 314,
    "name": "Tuzemská plnění"
  },
  {
    "id": 315,
    "name": "Přenesení daňové povinnosti"
  },
  {
    "id": 316,
    "name": "EU zboží"
  },
  {
    "id": 317,
    "name": "EU služba"
  }
]

List of country's vats

Request

Route

GET api/countries/684/vats

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"4479b69913fdf6a3ea5843ee72571809"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=26a46a712ecdd73e03c8debddf1ac468; path=/; expires=Fri, 30 Sep 2016 10:04:47 -0000; HttpOnly
X-Request-Id: 243c0f20-8423-4c39-8de6-d481c5c84dc1
X-Runtime: 0.024148
Content-Length: 76

Body

[
  {
    "id": 25,
    "value": "20.0"
  },
  {
    "id": 27,
    "value": "19.0"
  },
  {
    "id": 26,
    "value": "11.0"
  }
]

Currencies

List of currencies

Request

Route

GET api/currencies

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"1f3674cf6439612b5b4316c21b8164db"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=0ab4351b90a6f64151be98dc282ce5e8; path=/; expires=Fri, 30 Sep 2016 10:04:19 -0000; HttpOnly
X-Request-Id: ce4ed1d6-ec69-4961-9231-9c6737171675
X-Runtime: 0.043080
Content-Length: 97

Body

[
  {
    "id": 24,
    "iso_code": "CZK",
    "name": "Czech crown"
  },
  {
    "id": 25,
    "iso_code": "CZK",
    "name": "Czech crown"
  }
]

Departments

List of departments

Request

Route

GET api/companies/45/departments

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"0e5af160b5aa4a3a11948a182bb3c0c0"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=a194bcd7119c71063eeb60f32cbca53f; path=/; expires=Fri, 30 Sep 2016 10:04:20 -0000; HttpOnly
X-Request-Id: 77840c3f-a4d1-4757-9c35-4fe889732d6b
X-Runtime: 0.170976
Content-Length: 885

Body

[
  {
    "id": 9,
    "value": "Carmen Christiansen I",
    "company_id": 45,
    "created_at": "2016-09-30T10:04:20.000+02:00",
    "updated_at": "2016-09-30T10:04:20.000+02:00",
    "parent_id": null,
    "lft": 1,
    "rgt": 2
  },
  {
    "id": 10,
    "value": "Deshawn Champlin DDS",
    "company_id": 45,
    "created_at": "2016-09-30T10:04:20.000+02:00",
    "updated_at": "2016-09-30T10:04:20.000+02:00",
    "parent_id": null,
    "lft": 3,
    "rgt": 4
  },
  {
    "id": 11,
    "value": "Karson Reilly",
    "company_id": 45,
    "created_at": "2016-09-30T10:04:20.000+02:00",
    "updated_at": "2016-09-30T10:04:20.000+02:00",
    "parent_id": null,
    "lft": 5,
    "rgt": 6
  },
  {
    "id": 12,
    "value": "Nikita Bruen DDS",
    "company_id": 45,
    "created_at": "2016-09-30T10:04:20.000+02:00",
    "updated_at": "2016-09-30T10:04:20.000+02:00",
    "parent_id": null,
    "lft": 7,
    "rgt": 8
  },
  {
    "id": 13,
    "value": "Kayli Medhurst",
    "company_id": 45,
    "created_at": "2016-09-30T10:04:20.000+02:00",
    "updated_at": "2016-09-30T10:04:20.000+02:00",
    "parent_id": null,
    "lft": 9,
    "rgt": 10
  }
]

Logbook

Company's car

Request

Route

GET api/companies/22/cars/7

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"ac8c9ea7eb8fea5623f7a34deb6efce8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=fbdbf52ae2de2b6975c2ba4a6d98b8e0; path=/; expires=Fri, 30 Sep 2016 10:03:51 -0000; HttpOnly
X-Request-Id: 9296837a-b03e-4006-b79b-cba482303731
X-Runtime: 0.024590
Content-Length: 339

Body

{
  "id": 7,
  "number_plate": "11-612-2373",
  "description": "Blanditiis voluptate occaecati quia qui ut non hic est.",
  "is_private": false,
  "average_consumption": "5.0",
  "engine_capacity": "30.0",
  "initial_tach_value": 123,
  "year": null,
  "color": null,
  "body_number": null,
  "default_starting_location": null,
  "vin": null,
  "car_type": {
    "id": 7,
    "name": "Willy Cremin II"
  }
}

Company's drive record

Request

Route

GET api/companies/56/drive_records/75

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"4536c3d40b3b645994bef289562306a7"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=f8c871abe336d44ebff7078efa8f6ade; path=/; expires=Fri, 30 Sep 2016 10:04:40 -0000; HttpOnly
X-Request-Id: eebc1396-88c5-44ea-8448-67900f477312
X-Runtime: 0.052856
Content-Length: 2862

Body

{
  "id": 75,
  "is_private": null,
  "start_location": "774 Kilback Crest",
  "end_location": "54402 Kyla Fort",
  "start_time": "2016-09-30T10:04:35.000+02:00",
  "end_time": "2016-09-30T14:04:35.000+02:00",
  "and_back": null,
  "trip_length": 300,
  "start_tachometer": 0,
  "end_tachometer": 500,
  "purpose": "Suscipit cumque qui eos maiores iure vero.",
  "car": {
    "id": 17,
    "number_plate": "67-377-5107",
    "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea.",
    "is_private": false,
    "average_consumption": "5.0",
    "engine_capacity": "30.0",
    "initial_tach_value": 123,
    "year": null,
    "color": null,
    "body_number": null,
    "default_starting_location": null,
    "vin": null,
    "car_type": {
      "id": 17,
      "name": "Weldon Wiza"
    }
  },
  "employee": {
    "id": 7,
    "first_name": "Wilfrid",
    "last_name": "Rosenbaum",
    "bank_account": null,
    "birthday": "2016-09-30",
    "status": null,
    "nationality": null,
    "place_of_birth": null,
    "personal_number": "30. 09. 2016",
    "identification_number": null,
    "employee_number": "number_30. 09. 2016",
    "education": null,
    "citizenhood": null,
    "sex": "Muž"
  },
  "drive_expenses": [
    {
      "id": 219,
      "drive_record_id": 75,
      "price": "120.0",
      "end_price": "120.0",
      "vat_value": "20.0",
      "drive_record": {
        "id": 75,
        "purpose": "Suscipit cumque qui eos maiores iure vero."
      },
      "car": {
        "id": 17,
        "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea."
      },
      "employee": {
        "id": 7,
        "first_name": "Wilfrid",
        "last_name": "Rosenbaum"
      }
    },
    {
      "id": 220,
      "drive_record_id": 75,
      "price": "120.0",
      "end_price": "120.0",
      "vat_value": "20.0",
      "drive_record": {
        "id": 75,
        "purpose": "Suscipit cumque qui eos maiores iure vero."
      },
      "car": {
        "id": 17,
        "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea."
      },
      "employee": {
        "id": 7,
        "first_name": "Wilfrid",
        "last_name": "Rosenbaum"
      }
    }
  ],
  "drive_refuels": [
    {
      "id": 223,
      "place": "42420 Hassan Turnpike",
      "amount": "40.0",
      "price": "123.0",
      "end_price": "123.0",
      "vat_id": 22,
      "unit_price": 20,
      "vat_value": "20.0",
      "tachometer_value": 333,
      "drive_record": {
        "id": 75,
        "purpose": "Suscipit cumque qui eos maiores iure vero."
      },
      "car": {
        "id": 17,
        "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea."
      },
      "employee": {
        "id": 7,
        "first_name": "Wilfrid",
        "last_name": "Rosenbaum"
      }
    },
    {
      "id": 224,
      "place": "606 Jovanny Burg",
      "amount": "40.0",
      "price": "123.0",
      "end_price": "123.0",
      "vat_id": 22,
      "unit_price": 20,
      "vat_value": "20.0",
      "tachometer_value": 333,
      "drive_record": {
        "id": 75,
        "purpose": "Suscipit cumque qui eos maiores iure vero."
      },
      "car": {
        "id": 17,
        "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea."
      },
      "employee": {
        "id": 7,
        "first_name": "Wilfrid",
        "last_name": "Rosenbaum"
      }
    },
    {
      "id": 225,
      "place": "31111 Nicolas Pass",
      "amount": "40.0",
      "price": "123.0",
      "end_price": "123.0",
      "vat_id": 22,
      "unit_price": 20,
      "vat_value": "20.0",
      "tachometer_value": 333,
      "drive_record": {
        "id": 75,
        "purpose": "Suscipit cumque qui eos maiores iure vero."
      },
      "car": {
        "id": 17,
        "description": "Expedita ipsum dignissimos in autem ea quaerat veniam ea."
      },
      "employee": {
        "id": 7,
        "first_name": "Wilfrid",
        "last_name": "Rosenbaum"
      }
    }
  ]
}

List of company's cars

Request

Route

GET api/companies/20/cars

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"a3c09506042a106ed3b0a8df8d013acb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=16bf0a15c5c6108e2c2fa83fe5e7e104; path=/; expires=Fri, 30 Sep 2016 10:03:51 -0000; HttpOnly
X-Request-Id: 14c25536-9dac-4998-a8e6-7afd56d003a2
X-Runtime: 0.054080
Content-Length: 986

Body

[
  {
    "id": 1,
    "number_plate": "70-169-5855",
    "description": "Est ut sed consequuntur.",
    "is_private": false,
    "average_consumption": "5.0",
    "engine_capacity": "30.0",
    "initial_tach_value": 123,
    "year": null,
    "color": null,
    "body_number": null,
    "default_starting_location": null,
    "vin": null,
    "car_type": {
      "id": 1,
      "name": "Damian Fadel"
    }
  },
  {
    "id": 2,
    "number_plate": "11-297-2083",
    "description": "Ut eveniet quo libero ipsam dignissimos vel.",
    "is_private": false,
    "average_consumption": "5.0",
    "engine_capacity": "30.0",
    "initial_tach_value": 123,
    "year": null,
    "color": null,
    "body_number": null,
    "default_starting_location": null,
    "vin": null,
    "car_type": {
      "id": 2,
      "name": "Gabriella Heathcote"
    }
  },
  {
    "id": 3,
    "number_plate": "43-209-2542",
    "description": "Quidem deleniti cupiditate non quae et laborum nobis nihil.",
    "is_private": false,
    "average_consumption": "5.0",
    "engine_capacity": "30.0",
    "initial_tach_value": 123,
    "year": null,
    "color": null,
    "body_number": null,
    "default_starting_location": null,
    "vin": null,
    "car_type": {
      "id": 3,
      "name": "Mikel Kassulke II"
    }
  }
]

List of company's drive expense types

Request

Route

GET api/companies/46/drive_expense_types

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"5f75cbc6fb0f39871d899767bf9fc547"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=01d3ef6daabc35f6d3a4b30ef888e625; path=/; expires=Fri, 30 Sep 2016 10:04:20 -0000; HttpOnly
X-Request-Id: 87284521-f442-4d32-99f2-bb051ae66dfa
X-Runtime: 0.031699
Content-Length: 71

Body

[
  {
    "id": 1,
    "name": "Taxi"
  },
  {
    "id": 2,
    "name": "Hotel"
  },
  {
    "id": 3,
    "name": "Taxi"
  }
]

List of company's drive expenses

Parameters

Name Description
page Page

Request

Route

GET api/companies/48/drive_expenses

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"4fa95391ecef5a24d227b7f24b83f555"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=df996cac37e57009c1a6abba7ff64203; path=/; expires=Fri, 30 Sep 2016 10:04:22 -0000; HttpOnly
X-Request-Id: a098ff4c-0f37-4f20-b31d-a9d25d6f3f45
X-Runtime: 0.204377
Content-Length: 5941

Body

[
  {
    "id": 34,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 33,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 32,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 31,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 30,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 29,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 28,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 27,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 26,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 25,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 24,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 23,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 22,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 21,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 20,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 19,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 18,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 17,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 16,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  },
  {
    "id": 15,
    "drive_record_id": 1,
    "price": "120.0",
    "end_price": "120.0",
    "vat_value": "20.0",
    "drive_record": {
      "id": 1,
      "purpose": "Quia aut error ipsum nam quisquam necessitatibus."
    },
    "car": {
      "id": 13,
      "description": "Tempore qui quo rem corporis sit."
    },
    "employee": {
      "id": 3,
      "first_name": "Gust",
      "last_name": "Brown"
    }
  }
]

List of company's drive records

Parameters

Name Description
page Page

Request

Route

GET api/companies/52/drive_records

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"634eac964b68a81087c984a705688c8e"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=89d6d608fc8b163aba05615716c59f36; path=/; expires=Fri, 30 Sep 2016 10:04:29 -0000; HttpOnly
X-Request-Id: f4b331fd-f002-41be-b57e-827ae060f2be
X-Runtime: 0.070579
Content-Length: 6654

Body

[
  {
    "id": 34,
    "purpose": "Iure quam nihil doloribus aut accusantium.",
    "start_location": "517 Harber Cove",
    "end_location": "924 Addie Union",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 33,
    "purpose": "Cupiditate possimus ea tempore repudiandae earum pariatur sunt.",
    "start_location": "4747 Jazmin Fork",
    "end_location": "744 DuBuque Squares",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 32,
    "purpose": "Maiores temporibus et architecto aliquid numquam nulla eum quis.",
    "start_location": "9842 Clementina Curve",
    "end_location": "633 Maya Orchard",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 31,
    "purpose": "Et quis non voluptatem voluptatem aliquid sit adipisci.",
    "start_location": "767 Lemke Fork",
    "end_location": "819 Luisa Trace",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 30,
    "purpose": "Quae ut sapiente deserunt qui.",
    "start_location": "14765 Marian Brooks",
    "end_location": "354 Little Points",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 29,
    "purpose": "Totam saepe id ut unde.",
    "start_location": "452 Spencer Loaf",
    "end_location": "46011 Joseph Trail",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 28,
    "purpose": "In debitis quia facilis consequatur ea dolorem laborum.",
    "start_location": "406 Bernice Squares",
    "end_location": "914 Lind Rapids",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 27,
    "purpose": "Omnis ut quis similique animi et dolorem.",
    "start_location": "9824 Ankunding Trail",
    "end_location": "8207 Carson Extensions",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 26,
    "purpose": "Reiciendis aut illo tempora vel.",
    "start_location": "131 Stanton Parks",
    "end_location": "51784 Monte Plains",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 25,
    "purpose": "Non sit aut et necessitatibus.",
    "start_location": "757 Witting Run",
    "end_location": "882 Moore Parkway",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 24,
    "purpose": "Molestias facilis eos tempore et autem.",
    "start_location": "73875 Nat Hollow",
    "end_location": "7322 Bergstrom Plaza",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 23,
    "purpose": "Assumenda exercitationem nesciunt autem quasi deleniti.",
    "start_location": "5816 Rodrigo Flat",
    "end_location": "7421 Harvey Parks",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 22,
    "purpose": "Ipsa ullam architecto odio ducimus facere eligendi.",
    "start_location": "941 Wendy Rue",
    "end_location": "4438 Jakubowski Mountains",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 21,
    "purpose": "Qui qui consectetur veniam quia.",
    "start_location": "6177 Linnea Village",
    "end_location": "230 Macejkovic Shoals",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 20,
    "purpose": "Praesentium aliquid et architecto molestias quam blanditiis reprehenderit.",
    "start_location": "4587 Turner Mall",
    "end_location": "6789 Leannon Throughway",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 19,
    "purpose": "Dolores consequuntur et soluta.",
    "start_location": "8501 Dickens Road",
    "end_location": "713 Considine Overpass",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 18,
    "purpose": "Magni aut voluptates porro.",
    "start_location": "988 Schoen Underpass",
    "end_location": "5614 Orn Fork",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 17,
    "purpose": "Beatae quia in libero voluptatibus modi.",
    "start_location": "1087 Wiegand Path",
    "end_location": "3311 Grayce Mountain",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 16,
    "purpose": "Quasi quibusdam voluptatem enim officia.",
    "start_location": "884 Tracy Walks",
    "end_location": "202 Armstrong Motorway",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  },
  {
    "id": 15,
    "purpose": "Quia itaque dolor quia et eveniet.",
    "start_location": "7285 Brenna Mountain",
    "end_location": "8785 Newton Fields",
    "start_tachometer": 0,
    "end_tachometer": 500,
    "trip_length": 300,
    "car": {
      "id": 15,
      "description": "Suscipit quis delectus magni quod."
    },
    "employee": {
      "id": 5,
      "first_name": "Mariah",
      "last_name": "Considine"
    }
  }
]

List of company's drive refuels

Parameters

Name Description
page Page

Request

Route

GET api/companies/58/drive_refuels

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"6085802eba34bc2eda751e4bfdfe72fa"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=bd6f93399f7e77367ee255c7973a0cd5; path=/; expires=Fri, 30 Sep 2016 10:04:41 -0000; HttpOnly
X-Request-Id: b79bba02-9145-4b3d-a9a5-cd11b84010af
X-Runtime: 0.111687
Content-Length: 8377

Body

[
  {
    "id": 363,
    "place": "61668 Lula Port",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 362,
    "place": "8458 West Meadows",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 361,
    "place": "335 Hintz Corners",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 360,
    "place": "9601 Hammes Stream",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 359,
    "place": "706 Rachel Course",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 358,
    "place": "4853 Deborah Circle",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 357,
    "place": "7783 Beahan Bypass",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 356,
    "place": "12904 Ullrich Oval",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 355,
    "place": "718 Arno Key",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 354,
    "place": "12703 Alexa Gateway",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 353,
    "place": "73590 Mueller Expressway",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 352,
    "place": "146 Kallie Cliffs",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 351,
    "place": "22737 Green Land",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 350,
    "place": "80741 Antonetta Fort",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 349,
    "place": "32657 Jacobs Park",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 348,
    "place": "9859 Neha Underpass",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 347,
    "place": "4411 Shania Passage",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 346,
    "place": "92994 Flatley Squares",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 345,
    "place": "304 Gusikowski Camp",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  },
  {
    "id": 344,
    "place": "120 Dalton Rue",
    "amount": "40.0",
    "price": "123.0",
    "end_price": "123.0",
    "vat_id": 23,
    "unit_price": 20,
    "vat_value": "20.0",
    "tachometer_value": 333,
    "drive_record": {
      "id": 110,
      "purpose": "Ducimus sapiente architecto quia et optio expedita voluptas et."
    },
    "car": {
      "id": 18,
      "description": "Et voluptatem labore quod est doloribus aliquam et natus."
    },
    "employee": {
      "id": 8,
      "first_name": "Jewell",
      "last_name": "O'Conner"
    }
  }
]

Partners

List of partners

Request

Route

GET api/companies/68/partners

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"121b11ba9e106b82f415c27aa4323d7d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=32e1308706378340db0fa0942f73232d; path=/; expires=Fri, 30 Sep 2016 10:04:46 -0000; HttpOnly
X-Request-Id: 775131cb-b5b5-48c2-8c81-5e689bb9dfc4
X-Runtime: 0.191430
Content-Length: 1327

Body

[
  {
    "id": 136,
    "name": "Drobný nákup",
    "ic": null,
    "dic": null,
    "is_customer": false,
    "is_supplier": true,
    "currency_id": 38,
    "email": null,
    "is_taxable": false,
    "invoicing_language": "en"
  },
  {
    "id": 137,
    "name": "Drobný prodej",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": null,
    "is_taxable": false,
    "invoicing_language": "en"
  },
  {
    "id": 138,
    "name": "Nikolas Heidenreich DDS",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": "2claria@example.com",
    "is_taxable": false,
    "invoicing_language": "cs"
  },
  {
    "id": 139,
    "name": "Autumn Schamberger",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": "3milan_lindgren@example.net",
    "is_taxable": false,
    "invoicing_language": "cs"
  },
  {
    "id": 140,
    "name": "Thora Christiansen",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": "4dejuan@example.net",
    "is_taxable": false,
    "invoicing_language": "cs"
  },
  {
    "id": 141,
    "name": "Miss Lisandro Emard",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": "5clark_volkman@example.com",
    "is_taxable": false,
    "invoicing_language": "cs"
  },
  {
    "id": 142,
    "name": "Dashawn Lesch DVM",
    "ic": null,
    "dic": null,
    "is_customer": true,
    "is_supplier": false,
    "currency_id": 38,
    "email": "6althea_williamson@example.com",
    "is_taxable": false,
    "invoicing_language": "cs"
  }
]

Payment Types

List of company's payment types

Request

Route

GET api/companies/69/payment_types

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"312e7e88f627e0ed7faf9c2272c110c8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=405d94e1cec38b89b92578f2d21676a8; path=/; expires=Fri, 30 Sep 2016 10:04:46 -0000; HttpOnly
X-Request-Id: 4ff23ea5-a927-48fd-ae31-4767f3a79fbc
X-Runtime: 0.176840
Content-Length: 100

Body

[
  {
    "id": 17,
    "name": "Virgil Labadie"
  },
  {
    "id": 18,
    "name": "Uriah Fahey"
  },
  {
    "id": 19,
    "name": "Adolphus Lynch"
  }
]

Sessions

Get user authentication token

Parameters

Name Description
email required Email
password required Password

Request

Route

POST api/sessions/create

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Body

email=test%40test.com&password=password

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"aeba428e66ebba9abcb598d459e009fd"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a923d937-4134-4014-8ec6-b6c45002eeed
X-Runtime: 0.102668
Content-Length: 71

Body

{
  "email": "test@test.com",
  "authentication_token": "8YoY4MmitrQg9yXLsqFR"
}

Units

List of units

Request

Route

GET api/units

Headers

Accept: application/json
Content-Type: application/json
Auth-Token: auth_token
Host: example.org
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Accept: application/vnd-revisions-v1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
Content-Type: application/json; charset=utf-8
ETag: W/"52b8d4a3454b51f28e004afa2ae19698"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: your_session_key=38e38a8a011a1f181f890dd1a74bc849; path=/; expires=Fri, 30 Sep 2016 10:04:47 -0000; HttpOnly
X-Request-Id: 3145f329-f5ef-4359-9f98-c3de29e566f0
X-Runtime: 0.025504
Content-Length: 92

Body

[
  {
    "id": 1,
    "name": "min",
    "description": "minuta"
  },
  {
    "id": 2,
    "name": "kg",
    "description": "kilogram"
  }
]