Understand how to manage request limits to ensure integration stability and performance.
Link copied!
Klarna imposes certain limits on API requests to ensure the stability and reliability of our services.
Link copied!
Requests sent to the API should not include any headers that are not strictly necessary and specified by the API, except the standard HTTP headers such as:
Especially some observability platforms are by default including some potentially very large header used for tracing between internal systems also when making external calls. Such headers shall not be included when making calls to Klarna APIs. We are sanitising the request from a few common trace-agents.
Any request must adhere to the following limits:
Link copied!
The default maximum request body size in our API is 1MB. Any request with a body size exceeding this limit will not be processed and will return an error code 413 (Payload Too Large). Some API endpoints may exceed this limit and will state this in their documentation.