Events: Create or Update PaymentReceived Catalogue

  • Updated

Create or Update PaymentReceived Catalogue

 

 


POST /v2/event/save/catl/paymentReceived

This API creates a PaymentReceived Catalogue in an event and returns a unique Id and its associated details. This same API allows you to update an existing PaymentReceived Catalogue e.g. change the comments or the qty etc.


Parameters
Id    Long

The Id of the PaymentReceived catalogue. Required only if you are updating the PaymentReceived catalogue.

TemplateId    Long

The id of the PaymentReceived item.

Event    Object {Id}

The event to which the catalogue item should be associated with. The event must exist in your Priava Account. Passed in JSON format where:
Id = Id of the Event.

StartDate    DateTime

The start date and time of the catalogue item.

EndDate   DateTime

The end date and time of the catalogue item.

Contact    Object {Id}

The contact to whom the catalogue item should be associated to. The contact must exist in your Priava Account. Passed in JSON format where:
ContactId = Id of the contact

Venue    Object {Id}

The venue with which the catalogue item should be associated to. The venue must exist in your Priava Account. Passed in JSON format where:
Id = Id of the Venue.

VenueBookingId   Array [Id]

List of Venue Booking with which the catalogue item should be associated. The booking must exist in your Priava Account. Passed in an Array format where:
Id = Id of the Venue Booking.
Can pass multiple Venue Booking Ids in the Array in Create case and single Venue Booking Id in Update case.

In the case of Create scenario, it will create one Event Catalogue per booking passed.

In the case of Update scenario, it will accept only one value in the array. As you can not associate multiple venue Booking to a single Event Catalogue Item.

 

CreditOrDebit    String

This represents whether the catalogue item should be credited or debited to the event. Only values supported are Credit or Debit.

Qty    Integer

The required quantity of the catalogue item.

UnitPrice    Double

The unit price of one catalogue item.

TaxType    Object {Id, Name}

The tax type to be associated with the catalogue item. Tax type must exist in your Priava Account. Passed in JSON format where:
Id = Id of the Tax Type.
Name = Name of the Tax Type.

CatalogueComments    string

The comment to be associated with the catalogue item.

FinancialComments    string

The financial comment to be associated with the catalogue item.

{
   "Venue": {
      "Id": 100172533
   },
   "EndDate": "21/02/2019 19:31",
   "VenueBooking": {},
   "Name": "Deposit Received",
   "Contact": {
      "ContactId": 100339987
   },
   "StartDate": "20/02/2019 10:00",
   "TaxType": {
      "Id": 26,
      "Name": "GST - Included 10%"
   },
   "UnitPrice": "333.00",
   "FinancialComments": "Test Sample Comm",
   "Qty": 2,
   "Event": {
      "Id": 101550177
   },
   "Id": "",
   "CreditOrDebit": "Credit",
   "CatalogueComments": "Test Sample Comm",
   "TemplateId": 3607
}
        
Response:
{
   "success": true,
   "result": {
      "Abbreviation": "PR",
      "Venue": {
         "Id": 100172533,
         "Name": "Course One"
      },
      "Tax": "60.55",
      "EndDate": "21/02/2019 19:31",
      "VenueBooking": {},
      "NetTotalExTax": "605.45",
      "Name": "Deposit Received",
      "Contact": {
         "Firstname": "Demo",
         "Email": "test@demo.com",
         "Organisation": "test",
         "Phone": "8189898989",
         "Lastname": "Test",
         "Inactive": false,
         "ContactId": 100339987,
         "JobTitle": "DEV"
      },
      "StartDate": "20/02/2019 10:00",
      "TaxType": {
         "TaxPercentage": 10,
         "Position": 13,
         "TaxIncluded": true,
         "Inactive": false,
         "Id": 26,
         "Name": "GST - Included 10%"
      },
      "UnitPrice": "333.00",
      "FinancialComments": "Test Sample Comm",
      "GrandTotal": "666.00",
      "Qty": 2,
      "Event": {
         "Id": 101550177,
         "Name": "TestSample"
      },
      "Id": 104545482,
      "CreditOrDebit": "Credit",
      "CatalogueComments": "Test Sample Comm",
      "TemplateId": 3607
   }
}
        

 

Was this article helpful?

Have more questions? Submit a request