Add Posting to Folio by code [POST]
POST
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/folio/folioCode/{folioCode}/posting
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | ||
propertyId | Integer | true | path parameter | ||
folioCode | String | true | path parameter |
Example request
POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/folio/folioCode/101/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": "test1", "costCenter": null, "quantity": 1, "price": 1.2, "itemId": 2 }, { "name": "test2", "quantity": 1, "costCenter": null, "price": 5.0, "itemId": 17 } ], "ticketNumber": "this-is-a-test", "ticketSerie" : "A" }, "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 }