Div | ||
---|---|---|
| ||
POST |
Div | ||
---|---|---|
| ||
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
Code Block | ||||
---|---|---|---|---|
| ||||
POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/folio/1/posting |
Example body
Code Block | ||
---|---|---|
| ||
{
"currency": {
"id": 1,
"code": "EUR",
"name": "Euro"
},
"amountAfterTax": 10,
"foodAmountAfterTax": 8,
"beverageAmountAfterTax": 1,
"othersAmountAfterTax": 1,
"productId": 74,
"quantity": 2,
"ticket": {
"pax": 1,
"remark": "",
"ticketItems": [{
"name": "test1",
"quantity": 1,
"costCenter": null,
"price": 1.2,
"itemId": 2
},
{
"name": "test2",
"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
Code Block | ||
---|---|---|
| ||
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Success posting added", "errorCode": "0", "id": 1 } |