updateAccountReferralStatus
Update the status of an AccountReferral.
Status transitions can only move forward: - Pending → Paid (allowed) - Pending → Cancelled (allowed) - Paid → any (not allowed) - Cancelled → any (not allowed)
Arguments
Input fields for updating the status of an account referral.
Returns
UpdateAccountReferralStatusUpdate the status of an AccountReferral.
Status transitions can only move forward: - Pending → Paid (allowed) - Pending → Cancelled (allowed) - Paid → any (not allowed) - Cancelled → any (not allowed)
Possible Errors
Allowed Viewers
Required Permissions
Can payout referralsQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation UpdateAccountReferralStatus($input: UpdateAccountReferralStatusInput!) {
updateAccountReferralStatus(input: $input) {
accountReferral {
...ReferralTypeFragment
}
}
}
Variables
{
"input": UpdateAccountReferralStatusInput
}
Response
{
"data": {
"updateAccountReferralStatus": {
"accountReferral": ReferralType
}
}
}