Initiates a channel partner link between a distributor and a reseller, or between resellers in an n-tier reseller channel. Invited partners need to follow the inviteLinkUri provided in the response to accept. After accepting the invitation, a link is set up between the two parties. You must be a distributor to call this method.
Possible error codes:
PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request.
INVALID_ARGUMENT: Required request parameters are missing or invalid.
ALREADY_EXISTS: The ChannelPartnerLink sent in the request already exists.
NOT_FOUND: No Cloud Identity customer exists for provided domain.
INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}
Query parameters
Parameters
domain (deprecated)
string
Optional. The invited partner's domain. Either domain or channelPartnerLink.reseller_cloud_identity_id can be used to create a link. Deprecated: Use ChannelPartnerLink.reseller_cloud_identity_id instead
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["\u003cp\u003eThis method initiates a channel partner link between a distributor and a reseller, or between resellers, requiring the invited partners to accept via the provided invite link.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses \u003ccode\u003ePOST\u003c/code\u003e to the specified URL and includes a required \u003ccode\u003eparent\u003c/code\u003e path parameter representing the reseller account's resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe method supports a deprecated \u003ccode\u003edomain\u003c/code\u003e query parameter, which can be substituted with the \u003ccode\u003echannelPartnerLink.reseller_cloud_identity_id\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003eChannelPartnerLink\u003c/code\u003e instance, and the successful response body returns a new \u003ccode\u003eChannelPartnerLink\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe method has possible error codes such as \u003ccode\u003ePERMISSION_DENIED\u003c/code\u003e, \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e, \u003ccode\u003eALREADY_EXISTS\u003c/code\u003e, \u003ccode\u003eNOT_FOUND\u003c/code\u003e, \u003ccode\u003eINTERNAL\u003c/code\u003e, \u003ccode\u003eUNKNOWN\u003c/code\u003e, and requires the \u003ccode\u003ehttps://www.googleapis.com/auth/apps.order\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.channelPartnerLinks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nInitiates a channel partner link between a distributor and a reseller, or between resellers in an n-tier reseller channel. Invited partners need to follow the inviteLinkUri provided in the response to accept. After accepting the invitation, a link is set up between the two parties. You must be a distributor to call this method.\n\nPossible error codes:\n\n- PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request.\n- INVALID_ARGUMENT: Required request parameters are missing or invalid.\n- ALREADY_EXISTS: The ChannelPartnerLink sent in the request already exists.\n- NOT_FOUND: No Cloud Identity customer exists for provided domain.\n- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.\n- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.\n\nReturn value: The new [ChannelPartnerLink](/channel/docs/reference/rest/v1alpha1/accounts.channelPartnerLinks#ChannelPartnerLink) resource.\n\n### HTTP request\n\n`POST https://cloudchannel.googleapis.com/v1alpha1/{parent=accounts/*}/channelPartnerLinks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [ChannelPartnerLink](/channel/docs/reference/rest/v1alpha1/accounts.channelPartnerLinks#ChannelPartnerLink).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [ChannelPartnerLink](/channel/docs/reference/rest/v1alpha1/accounts.channelPartnerLinks#ChannelPartnerLink).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.order`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]