Mint Account Frame URL
GET/api/partner/v1/merchants/:ref/account-frame
Mints a short-lived URL for the embeddable account frame, so the merchant can view their account (balance, transactions, payout opt-in) inside your product without logging in to dpay. Requires scope account:read and an active merchant delegation covering that scope.
Mint this server-side and pass only the token (the last path segment of embed_url) to the browser SDK - never expose your partner key. The token TTL is 15 minutes (900 seconds); mint a new one when it expires.
Request
Responses
- 200
- 401
- 403
- 404
Minted account-frame URL.
Missing or invalid partner key.
The partner key lacks the account:read scope, the merchant has not authorized this operation, or dpay Connect is currently unavailable.
No merchant with this ref belongs to your partner account.