Assign Affiliate to Subscription
Assign the affiliate to the subscription.
Post
https://store.payproglobal.com/api/Affiliates/AssignToSubscriptionRequest Parameters
application/jsonAssignToSubscriptionRequestModel
objectaffiliateAgreementId
integerrequired
The ID of the agreement with your affiliate.
It can be found in your PayPro Global account > Affiliates > Agreements.
It can be found in your PayPro Global account > Affiliates > Agreements.
subscriptionId
integerrequired
The subscription ID to which the affiliate should be assigned.
payAffiliateForPastCharges
booleanoptional
Possible values are true or false.
If true, it calculates and pays the affiliate the commission
for the past subscription payments, false otherwise.
If true, it calculates and pays the affiliate the commission
for the past subscription payments, false otherwise.
vendorAccountId
integerrequired
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringrequired
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonAssignToSubscriptionResponseModel
objectchangedItems
array[object]itemId
integerThe item ID (in this case subscription ID) that has been updated.
isActionSuccess
booleanPossible values are true or false. If true, the action was successful, false otherwise.
actionItemMessage
stringIt displays the message in case isActionSuccess is false.
request
objectaffiliateAgreementId
integerThe ID of the agreement with your affiliate.
It can be found in your PayPro Global account > Affiliates > Agreements.
It can be found in your PayPro Global account > Affiliates > Agreements.
subscriptionId
integerThe subscription ID to which the affiliate should be assigned.
payAffiliateForPastCharges
booleanPossible values are true or false.
If true, it calculates and pays the affiliate the commission
for the past subscription payments, false otherwise.
If true, it calculates and pays the affiliate the commission
for the past subscription payments, false otherwise.
vendorAccountId
integerThe vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringThe vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
errors
array[object]propertyWithError
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample:
{
"affiliateAgreementId": 4321,
"subscriptionId": 1111111,
"payAffiliateForPastCharges": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample:
{
"changedItems": [],
"request": {
"affiliateAgreementId": 4321,
"subscriptionId": 1111111,
"payAffiliateForPastCharges": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}