order

Viewset that supports all normal viewset functionality.

patch/api/order/cost/{id}/

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

idinteger required

A unique integer value identifying this cost.

Request body

orderinteger
created_byinteger nullable
created_by_fullnamestring nullable
cost_type'used_materials' | 'work_hours' | 'travel_hours' | 'distance' | 'extra_work' | 'actual_work' | 'call_out_costs'
  • used_materials - used_materials
  • work_hours - work_hours
  • travel_hours - travel_hours
  • distance - distance
  • extra_work - extra_work
  • actual_work - actual_work
  • call_out_costs - call_out_costs
userinteger nullable
user_full_namestring nullable
materialinteger nullable
amount_intinteger nullable
amount_decimalstring decimal nullable
amount_durationstring nullable
pricestring decimal
vat_typestring decimal

Response

idinteger required
orderinteger required
created_byinteger nullable
created_by_fullnamestring nullable
cost_type'used_materials' | 'work_hours' | 'travel_hours' | 'distance' | 'extra_work' | 'actual_work' | 'call_out_costs' required
  • used_materials - used_materials
  • work_hours - work_hours
  • travel_hours - travel_hours
  • distance - distance
  • extra_work - extra_work
  • actual_work - actual_work
  • call_out_costs - call_out_costs
userinteger nullable
user_full_namestring nullable
materialinteger nullable
material_namestring nullable required
amount_intinteger nullable
amount_decimalstring decimal nullable
amount_durationstring nullable
amount_duration_readstring nullable required
amount_duration_secsnumber double nullable required
pricestring decimal
price_currencystring required
vat_typestring decimal
vatstring decimal required
vat_currencystring required
totalstring decimal required
total_currencystring required

Changes

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)

    • info

      the response optional property became read-only for the status

    • info

      the response optional property became read-only for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)