POST /affiliate/payment_setup

Updates the payment settings for affilliates

Body Required

  • affiliate_paypal string
  • affiliate_payment_method string

Body Required

  • affiliate_paypal string
  • affiliate_payment_method string

Responses

  • 200 application/json

    Resposne with a text message field.

    Hide response attribute Show response attribute object
    • text string Required

      Response text

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
POST /affiliate/payment_setup
curl \
 --request POST 'https://my.interserver.net/apiv2/affiliate/payment_setup' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"affiliate_paypal":"paypal@email.com","affiliate_payment_method":"prepay"}'
curl \
 --request POST 'https://my.interserver.net/apiv2/affiliate/payment_setup' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "affiliate_paypal=paypal@email.com" \
 --form "affiliate_payment_method=prepay"
Request examples
{
  "affiliate_paypal": "paypal@email.com",
  "affiliate_payment_method": "prepay"
}
Response examples (200)
{
  "text": "You were successfull."
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}