Commission Pipe
Last update: 2 years ago by luigi mangaReading time: 2 min
Onport allows you to dynamically generate commission rates using your own external endpoints. For example, it possible to dynamically apply bespoke commission rates based on proprietary penalty and incentive schemes.
The Commission API pipeline configuration is available in the Dropship Provider settings page, under the Payment Setup tab.
After ticking the Enable API Pipeline for commmission rates, you will be able to enter the Commission rate endpoint URL.
Onport expects to receive a response which needs to be valid according to the following JSON Schema
{"type": "object","required": ["price"],"properties": {"price": {"type": ["number"]}},"additionalProperties": false}
Below is an example JSON response that Onport considers valid:
{"price": 99}