All docs This doc
Skip to end of metadata
Go to start of metadata

The getInvoiceItemsById operation retrieves all products (invoice items) included with the reservation.

getInvoiceItemsById
<planyo.getInvoiceItemsById>
	<reservationId>{$ctx:reservationId}</reservationId>
</planyo.getInvoiceItemsById>
Properties
  • reservationId: The ID of the reservation.
Sample request

Following is a sample REST/JSON request that can be handled by the getInvoiceItemsById operation.

Sample Request for getInvoiceItemsById
{
	"apiUrl":"http://api.planyo.com",
	"language":"EN",
	"apiKey":"45fd0acfee3f0388aeb8e7823179d21d",
	"version":1,
	"reservationId":946246
}
Related Planyo documentation

https://www.planyo.com/api.php?topic=get_invoice_items

Sample configuration

Following is a sample proxy service that illustrates how to connect to Planyo with the init operation and use the getInvoiceItemsById operation. The sample request for this proxy can be found in the getInvoiceItemsById sample request.

Sample Proxy
<?xml version="1.0" encoding="UTF-8"?>
	<proxy xmlns="http://ws.apache.org/ns/synapse" name="planyo_getInvoiceItemsById" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
	 <target>
	 <inSequence>
      <property name="apiUrl" expression="json-eval($.apiUrl)"/>
      <property name="language" expression="json-eval($.language)"/>
      <property name="apiKey" expression="json-eval($.apiKey)"/>
      <property name="version" expression="json-eval($.version)"/>
      <property name="reservationId" expression="json-eval($.reservationId)"/>
      <planyo.init>
         <apiUrl>{$ctx:apiUrl}</apiUrl>
         <language>{$ctx:language}</language>
         <apiKey>{$ctx:apiKey}</apiKey>
         <version>{$ctx:version}</version>
      </planyo.init>
      <planyo.getInvoiceItemsById>
         <reservationId>{$ctx:reservationId}</reservationId>
      </planyo.getInvoiceItemsById>
	   <respond/>
	 </inSequence>
	  <outSequence>
	   <send/>
	  </outSequence>
	 </target>
   <description/>
  </proxy>                                                                                                               
  • No labels