Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Adds a Posting to a Folio with its correspondant Ticket.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.folio.product


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: CornflowerBlue; color: white; display: inline-block; padding: 5px; border-radius: 3px;

POST



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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

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



Body

An element of type Posting.

Insert excerpt
Posting
Posting
nopaneltrue

Example body

Code Block
themeDJango
{
    "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": "test1ticketItem 1",
                "quantity": 1,
				"costCenter": null,
                "price": 1.2,
                "itemId": 2
            },
            {
                "name": "test2ticketItem 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

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