Skip to navigation

Get Resign Agreement Document Templates

View as Markdown

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 userId and the caller isn’t an organization administrator with B2B AOP permission in an organization that allows customer applications. This returns HTTP 401 with "Must be a B2B AOP user".
  • No user matches userId, or you can’t access that user. Both return HTTP 404 with 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 CustomerApplications resource. This returns HTTP 401 with "Access is denied".
  • userId is included and isn’t greater than 0. This returns HTTP 400.
  • The request is sent to Demo. This endpoint runs on Live only, so Demo returns HTTP 501.
  • The user isn’t in the NTB organization, or has no signed agreement that’s due to be re-signed. The call still succeeds (HTTP 200 with no errorText), but templateIds is empty.
  • The template lookup fails unexpectedly. This returns HTTP 200 with the reason in errorText and no templateIds.

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

MessageResponseTrigger
"User Id should be greater than 0"400userId is included and isn’t greater than 0.
"Access is denied"401The caller’s user type, or the API key’s permissions, don’t include full access to the CustomerApplications resource.
"Must be a B2B AOP user"401The request includes userId (even the caller’s own) and the caller isn’t an organization administrator with B2B AOP permission in an organization that allows customer applications.
(no message text)404No user matches userId, or you can’t access that user (most organization administrators can’t access users outside their organization).
"This endpoint should be called on live.tradovateapi.com"501Called on the Demo environment.
"Internal Error. Error ID: {id}"200 (in errorText)The template lookup failed unexpectedly. The error ID is generated per request.
"Not found"200 (in errorText)A record the lookup needs (such as a signed document’s template) is missing.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
userIdlongOptional

Response

GetResignAgreementDocumentTemplatesResponse
errorTextstringOptional<=8192 characters

Non-empty if the request failed

templateIdslist of longsOptional