BokaMera.API.Host

<back to all web services

UpdateQuantity

Requires Authentication
The following routes are available for this service:
PUT/bookings/{BookingId}/quantity/{Id}Update an existing booking quantityUpdates an existing booking quantity if you are authorized to do so. Note: Updating quantity wont updated the number of booked resources.
UpdateQuantity Parameters:
NameParameterData TypeRequiredDescription
CompanyIdbodyGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
BookingIdpathint?YesId of the booking
Idpathint?YesId of the quantity
OccupiesSpotbodybool?NoIf the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.
QuantitybodyintNoThe quantity for booked on this price category
Pricebodydouble?NoThe price
CurrencyIdbodystringNoThe price currency
CategorybodystringNoThe price category
VATbodydecimal?NoThe price VAT in percent
CommentsbodystringNoAny comments to be stored in the event log.
RefundbodyboolNoIf you want the amount to be refunded automatically if amount is lower than paid
BookedQuantity Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe quantity Id
QuantityformintNoThe quantity for booked on this price category
Priceformdouble?NoThe price
PriceBeforeRebateformdouble?NoThe price bofore rebate codes
CurrencyIdformstringNoThe price currency
PriceSignformstringNoThe price sign
CategoryformstringNoThe price category
VATformdecimal?NoThe price VAT in percent
PriceTextformstringNoThe price text to display
OccupiesSpotformboolNoIf the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information.

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /bookings/{BookingId}/quantity/{Id} HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CompanyId":"00000000-0000-0000-0000-000000000000","BookingId":0,"Id":0,"OccupiesSpot":false,"Quantity":0,"Price":0,"CurrencyId":"String","Category":"String","VAT":0,"Comments":"String","Refund":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"Quantity":0,"Price":0,"PriceBeforeRebate":0,"CurrencyId":"String","PriceSign":"String","Category":"String","VAT":0,"PriceText":"String","OccupiesSpot":false}