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

Description of the field.
Property
Type
Required
Type parameter
Default value
Description
nameStringtrue

chainId

Integertruepath parameter

propertyIdIntegertruepath parameter

folioIdIntegertruepath parameter


Example request

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



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,
		"remarks
        "remark": "",
		
        "ticketItems": [{
				
                "name": "test1ticketItem 1",
				
                "quantity": 1,
				"costCenter": null,
                "price": 1.2
			},
			{
				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
Entity


Example response

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