Get Resign Agreement Document Templates
Retrieve the agreement documents a user needs to re-sign.
Available to: Traders (own records, without userId); organization administrators with business-to-business account-opening permission (any user in their organization)
Environments: Live
Return the IDs of the agreement document templates a user needs to re-sign, in templateIds. A template is listed only if the user has already signed it and it’s due again: its content changed after the user signed, or the user signed it more than one year ago.
Re-signing applies only to users in the NTB organization. For a user in any other organization, templateIds is empty.
Omit userId to check your own documents. Passing userId, even your own, requires you to be an organization administrator with business-to-business account-opening (B2B AOP) permission in an organization that allows customer applications.
Common Failure Scenarios
- The request includes
userIdand the caller isn’t an organization administrator with B2B AOP permission in an organization that allows customer applications. This returnsHTTP 401with"Must be a B2B AOP user". - No user matches
userId, or you can’t access that user. Both returnHTTP 404with an empty body. Most organization administrators can’t access users outside their organization. - The caller’s user type, or the API key’s permissions, don’t include full access to the
CustomerApplicationsresource. This returnsHTTP 401with"Access is denied". userIdis included and isn’t greater than 0. This returnsHTTP 400.- The request is sent to Demo. This endpoint runs on Live only, so Demo returns
HTTP 501. - The user isn’t in the
NTBorganization, or has no signed agreement that’s due to be re-signed. The call still succeeds (HTTP 200with noerrorText), buttemplateIdsis empty. - The template lookup fails unexpectedly. This returns
HTTP 200with the reason inerrorTextand notemplateIds.
This endpoint returns HTTP 200 for both successful and rejected requests, so check the errorText field to confirm the result. Other failures, such as denied access or an invalid request, return their own HTTP status.
Error Messages
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed