Add Posting [POST]

Operation

Adds a Posting to a Folio with its correspondant Ticket.

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

Integertruepath parameter

propertyIdIntegertruepath parameter

folioIdIntegertruepath parameter

Example request

POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/folio/1/posting


Body

An element of type Posting.


FieldTypeRequiredDescription
productIdIntegerfalse
productCodeStringfalse
quantityIntegerfalse
amountAfterTaxStringfalse
foodAmountAfterTaxBigDecimalfalse
beverageAmountAfterTaxBigDecimalfalse
othersAmountAfterTaxBigDecimalfalse
ticketTicketfalse
currencycurrencyfalse
propertyCostCenterIdIntegerfalse

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

PropertyTypeRequiredDescription
ResponseAPIMessageResponseAPIMessagetrueThe response of the operation

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success posting added",
  "errorCode": "0",
  "id": 1
}