These docs are for v2017-01-01. Click to read the latest docs for v2021-03-10.

Add an affiliate

This end point will apply an affiliate to the given order

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json