Idempotent Tokens
More tokens? Or are these different
Our API supports Idempotency. This allow you to safely retry an operation without performing the action twice. This might be useful when something in the process goes wrong.
Lets say you are sending an invoice over the Peppol network. Something goes wrong and the action is not executed. Meaning we did not store the Idempotency token either. This allows you to retry the action. Until the action is successful, since the Idempotency token was not used before.
An idempotency token is a unique key created by the Client which the server uses to recognize subsequent retries of the same request. Allowing us to make sure its unique.
The key is only stored on the server side when the action is successfully executed.
Usage
If you want to use the Idempotency token in the API you can by simply adding it to the header of the request.
Header field name | Header field value |
---|---|
Idempotency-Key | "Unique value created by the client" |
Updated 7 months ago