Producer codes

Your plugin must implement a method to notify the billing system of a new producer code. Implement the createProducerCode method. Its arguments are a producer code (ProducerCode) and a billing system transaction ID.

The transaction ID is an identifier that PolicyCenter creates. Your plugin must track this billing system transaction ID. If PolicyCenter requests the same transaction ID twice, the billing system or your plugin that represents it must detect that PolicyCenter requested it twice. If you receive the same transaction ID more than once, you must ignore the duplicate requests.

Your method must return the billing system version of the public ID for this producer code.

Your code would typically send the following ProducerCode entity properties:

  • PublicID
  • Code
  • ProducerStatus
  • producerCode.Organization.PublicID
  • producerCode.CommissionPlanID

Updating producer codes

Your plugin must implement the updateProducerCode method, which takes the same arguments as the createProducerCode method, but does not return a value.

Synchronizing producer codes

Your plugin must implement the syncProducerCode method to synchronize a ProducerCode object with the latest values from the billing system. The method takes a ProducerCode object and returns nothing.