Signing Messages
All messages sent by a client to Tu Cambio that generate an action/change must be signed using JWS (JSON Web Signature). To make the API readable, Tu Cambio uses detached signatures, which means that the content to be signed is the HTTP body of the messages sent to Tu Cambio via POST or PATCH requests. The signature is sent in the HTTP header JWS-Signature
.
Example: https://github.com/TuCambioSpa/tucambio-api-example-integration/blob/main/utils/jws-signature.js