Wechat card coupon development for advice!

current situation:
We are abbreviated as A, and the other party is referred to as B
. Mini Program a was developed under the official account of A, and then Wechat card coupons were created in the official account of B
. How can we call the wx.addCard interface in Mini Program a to make the card coupons added successfully?
after reading the document, I found that Mini Program a needs to be associated with the official account of B, and is it correct to obtain the appId and appsecret of B for signature signature?