Add Posting to Folio by code [POST]

Operation

Adds a Posting to a Folio with its correspondent Ticket.

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

Integertruepath parameter

propertyIdIntegertruepath parameter

folioCodeStringtruepath parameter

Example request

POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/folio/folioCode/101/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": "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

PropertyTypeRequiredDescription
ResponseAPIMessageResponseAPIMessagetrueThe response of the operation

Example response

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