diff --git a/README.md b/README.md index 17c2b56..9cc76d6 100644 --- a/README.md +++ b/README.md @@ -135,8 +135,8 @@ Additional security features: The node assumes the following ZapSign API structure: ``` -Base URL: https://api.zapsign.co (Production) - https://sandbox.api.zapsign.co (Sandbox) +Base URL: https://api.zapsign.com.br/ (Production) + https://sandbox.api.zapsign.com.br/ (Sandbox) Documents: - POST /v1/documents - Create document diff --git a/credentials/ZapSignApi.credentials.ts b/credentials/ZapSignApi.credentials.ts index 57acb0c..cfb04a5 100644 --- a/credentials/ZapSignApi.credentials.ts +++ b/credentials/ZapSignApi.credentials.ts @@ -53,7 +53,7 @@ export class ZapSignApi implements ICredentialType { test: ICredentialTestRequest = { request: { - baseURL: '={{$credentials.environment === "sandbox" ? "https://sandbox.api.zapsign.co" : "https://api.zapsign.co"}}', + baseURL: '={{$credentials.environment === "sandbox" ? "https://sandbox.api.zapsign.com.br/" : "https://api.zapsign.com.br/"}}', url: '/v1/me', method: 'GET', }, diff --git a/nodes/ZapSignTrigger/ZapSignTrigger.node.ts b/nodes/ZapSignTrigger/ZapSignTrigger.node.ts index 99de063..ef63bf4 100644 --- a/nodes/ZapSignTrigger/ZapSignTrigger.node.ts +++ b/nodes/ZapSignTrigger/ZapSignTrigger.node.ts @@ -137,8 +137,8 @@ export class ZapSignTrigger implements INodeType { const credentials = await this.getCredentials('zapSignApi'); const baseUrl = credentials.environment === 'sandbox' - ? 'https://sandbox.api.zapsign.co' - : 'https://api.zapsign.co'; + ? 'https://sandbox.api.zapsign.com.br/' + : 'https://api.zapsign.com.br/'; try { const response = await this.helpers.request({ @@ -171,8 +171,8 @@ export class ZapSignTrigger implements INodeType { const credentials = await this.getCredentials('zapSignApi'); const baseUrl = credentials.environment === 'sandbox' - ? 'https://sandbox.api.zapsign.co' - : 'https://api.zapsign.co'; + ? 'https://sandbox.api.zapsign.com.br/' + : 'https://api.zapsign.com.br/'; const body = { url: webhookUrl, @@ -209,8 +209,8 @@ export class ZapSignTrigger implements INodeType { if (webhookData.webhookId !== undefined) { const credentials = await this.getCredentials('zapSignApi'); const baseUrl = credentials.environment === 'sandbox' - ? 'https://sandbox.api.zapsign.co' - : 'https://api.zapsign.co'; + ? 'https://sandbox.api.zapsign.com.br/' + : 'https://api.zapsign.com.br/'; try { await this.helpers.request({