Add an affiliate

This end point will apply an affiliate to the given order

If affiliate is not found or if the order has a pre-applied affiliate this endpoint will throw an error. The commission and discount is calculated as per the affiliate configuration.

Path Params
string
required

The order ID

Body Params
string
required

The affiliate code

float
required

The amount collected by the affiliate

string

The voucher code. Required if the affiliate's settings mandate a voucher

Responses

Language
Credentials
Header
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json