- The repository provides how to calculate the API checksum and verify callback integrity for the CYBAVO SOFA System.
- The CYBAVO SOFA system verifies all incoming requests. All requests must include X-API-CODE, X-CHECKSUM headers otherwise caller will get a 403 Forbidden error.
- Request the API code/secret from the Wallet Details page on the web control panel for the first time.
-
Put the API code in the X-API-CODE header.
-
Calculate the checksum with the corresponding API secret and put the checksum in the X-CHECKSUM header.
- The checksum calculation will use all the query parameters, the current timestamp, user-defined random string and the post body (if any).
-
The final request must conform following conditions:
- Required Headers:
- X-API-CODE: API-CODE
- X-CHECKSUM: CHECKSUM
- Content-Type: application/json
- User-Agent: USER-AGENT
- API URL:
- https://SOFA-SERVICE-URL/v1/sofa/wallets/CALLING-API-PATH?QUERY-PARAMS&t=REQUEST-TIME&r=RANDOM-STRING
- where
tandrare required
- where
- https://SOFA-SERVICE-URL/v1/sofa/wallets/CALLING-API-PATH?QUERY-PARAMS&t=REQUEST-TIME&r=RANDOM-STRING
- Required Headers:
-
Refer to the code snippets to know how to calculate the checksum for API.