HTTP Request: ApiID + timestamp + RequestJSON / HMAC-SHA-256

Hello, I’m starting my adventure with n8n. I am asking for help in establishing a connection with Merit’s accounting.

I have a problem with the authentication of the connection.

Reference Manual: Authentication – Merit Api

My Endpoints for Polish localization: https://program.360ksiegowosc.pl/api/v1/ and https://program.360ksiegowosc.pl/api/v2/

I want „get getcustomers”: Endpoint: https://program.360ksiegowosc.pl/api/v1/getcustomers
Manual: Get Customer List – Merit Api

My settings:

What is the error message (if any)? - “status”: “rejected”,

I would be very grateful for your help!

My n8n setup:

  • 0.193.4
  • MySQL
  • Docker, Traefik, SSL
  • My other processes are working fine.

Hey @arsu,

Welcome to the community :clap:

What error are you seeing when you try to authenticate?

With Authentication - None, and Query Parameters timestamps and ApiID:

{
"status": "rejected",
"reason": {
"message": "404 - {"Message":"No HTTP resource was found that matches the request URI 'https://program.360ksiegowosc.pl/api/v2/getinvoices?timestamps=1662809291108&ApiID=5b3a02b3-8ecc-41f7-b8f9-3b2604bed3be'.","MessageDetail":"No action was found on the controller 'v2' that matches the request."}",
"name": "Error",
"stack": "Error: Request failed with status code 404 at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)"
}
}

Hi @Jon and community,

You can use my test company API data:
API ID: 5b3a02b3-8ecc-41f7-b8f9-3b2604bed3be
API Key: Gm7EFwckRy0Yw2DcL/UjnSjbYWnVz0CTdqkdJvcTKOc=

Regards, Artur

Hey @arsu,

Looks like it doesn’t like the options you are passing. I can’t work out what options it should have as the api docs some to load properly for me.