Versions Compared

Key

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

Operation

Adds a posting 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"
    },
    "priceamountAfterTax": 10,
    "foodAmountAfterTax": 8,
    "beverageAmountAfterTax": 1,
    "othersAmountAfterTax": 1,
    "productId": 174,
	"productCode": "productCode",
    "quantity": 2,
    "ticket": {
        "pax": 1,
        "remarksremark": "",
        "ticketItems": [{
                "name": "test1ticketItem 1",
                "quantity": 1,
				"costCenter": null,
                "price": 1.2,
            },    "itemId": 2
       {     },
           "name": "test2", {
                "quantityname": "ticketItem 12",
                "pricequantity": 5.0
 1,
				"costCenter": null,
          }         ],
 "price": 5.0,
      "ticketNumber": "this-is-a-test"     } }

Request

Insert excerptPostingPostingnopaneltrue

Example request

Code Block
languagepowershell
themeDJango
POST https://prod.ulysescloud.com/public/api/v1/chain/1/property/1/folio/posting
Code Block
languagepowershell
themeDJango
{ 	"currency": { 		"code": "EUR", 		"nameitemId": "Euro"
	},
	"price": 10,
	"productId": 1,
	"quantity": 2,
	"ticket": {
		"pax": 1,
		"remarks": "",
		"ticketItems": [{
				"name": "test1",
				"quantity": 1,
				"price": 1.2
			},
			{
				"name": "test2",
				"quantity": 1,
				"price": 5.0
			}
		],
		17
            }
        ],
        "ticketNumber": "this-is-a-test"
	}    },
	"propertyCostCenterId":1
}



Response

PropertyTypeRequiredDescription
ResponseAPIMessageResponseAPIMessagetrueThe response of the operation

Entity


Example response

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