API Reference

Error Codes

This page provides a comprehensive overview of the common error codes that users might encounter while using Zafin's Transaction Data API and the Logo Service. Understanding these error codes is crucial for troubleshooting and ensuring seamless interaction with our services.

General HTTP Error Codes

The table below summarizes the most common error codes returned by our service APIs as well as the meaning and the recommended fix for each.

CodeMeaningOutput
400Bad request (Usually implies there are missing fields or validation errors)Make sure all fields were correctly added with correct data.
401UnauthorizedMake sure you add the bearer token to the headers
404Not FoundMake sure that provided user_id is available in DB
500Internal Server ErrorRequest correctly received, but an unexpected error occurred. Try again later

Logo HTTP Codes

The table below summarizes the Logo error codes returned by our service APIs as well as the meaning and the expected output for each.

Code

Meaning

Output

200

Our system was able to retrieve the logo successfully

The correct logo

202

Logo is still being processed. User can wait for a period of 2-5 secs before refreshing the page and getting the logo

JSON response: "Logo is still being processed"

404

Logo not found

A generic earth logo indicating that our system wasn't able to get the logo