Add Posting [POST]
POST
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/folio/{folioId}/posting
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | ||
propertyId | Integer | true | path parameter | ||
folioId | Integer | true | path parameter |
Example request
POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/folio/1/posting
Example body
{ "currency": { "id": 1, "code": "EUR", "name": "Euro" }, "amountAfterTax": 10, "foodAmountAfterTax": 8, "beverageAmountAfterTax": 1, "othersAmountAfterTax": 1, "productId": 74, "productCode": "productCode", "quantity": 2, "ticket": { "pax": 1, "remark": "", "ticketItems": [{ "name": "ticketItem 1", "quantity": 1, "costCenter": null, "price": 1.2, "itemId": 2 }, { "name": "ticketItem 2", "quantity": 1, "costCenter": null, "price": 5.0, "itemId": 17 } ], "ticketNumber": "this-is-a-test" }, "propertyCostCenterId":1 }
Response
Property | Type | Required | Description |
---|---|---|---|
ResponseAPIMessage | ResponseAPIMessage | true | The response of the operation |
Example response
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Success posting added", "errorCode": "0", "id": 1 }