Bir satıcı OAuth kapsamını kabul ettikten sonra, satıcı için bir erişim ve yenileme jetonu oluşturulur. MCA yenileme jetonu depolandıysa accounts.link ile bir AccountsLinkRequest nesnesi kullanılarak API isteği yapılabilir. İşlem "request" olmalıdır.
Buna karşılık, alt hesabın jetonu kullanıldıktan hemen sonra bir AccountsLinkRequest nesnesiyle API isteği gönderilebilir. İşlem türü "onaylandı" olmalıdır. Bu, platformunuza katılan satıcılarınız için basitleştirilmiş bir hesap bağlama iş akışı sağlar.
Üç Yönlü Hesap Bağlantısı Gerçekleştirin
Aşağıdaki örnek hesaplarınız olduğunu varsayalım:
Hesap
Amaç
111111111
MCA Hesabı
2222222
Diğer Alt Hesap
3333333
Yeni İlk Katılım Hesabı
BAĞLANTI İSTEĞİ için account.link kaynağında, parametrelerin değeri şu şekilde olur:
Parametre
Değer
merchantID
111111111
accountID
2222222
AccountLinkRequest gövdesi aşağıdaki özelliklere sahip olur:
Özellik
Değer
linkType
eCommercePlatform
linkedAccountId
3333333
işlem
istek
Buna karşılık LINK APPROVE için account.link kaynağında, parametrelerin değeri aşağıdaki gibi olur:
Parametre
Değer
merchantID
3333333
accountID
3333333
AccountLinkRequest gövdesi aşağıdaki özelliklere sahip olur:
[null,null,["Son güncelleme tarihi: 2023-12-01 UTC."],[[["The `accounts.link` API enables streamlined account linking for merchants joining your platform."],["A three-way account link involves an MCA account, a subaccount, and a new onboarding account."],["To initiate a link request, use the MCA account's OAuth token and set the action to \"request\"."],["To approve a link request, use the subaccount's OAuth token, set the action to \"approve\", and provide an external account identifier."],["The `accounts.link` resource requires specific parameters and an `AccountLinkRequest` body with relevant properties for both request and approval actions."]]],["A three-way account link involves using the `accounts.link` API. First, a request is made from the MCA account (e.g., 111111111) to link a subaccount (e.g., 2222222) to a new onboarding account (e.g., 3333333), with the `action` set to \"**request**\". Then, using the subaccount's token, another API request is made to approve the link, setting `action` to \"**approve**\". This specifies the `linkedAccountId`, along with services and external identifier.\n"]]