KSA v2: Sign up

Create an account in the Complyance test environment to use the KSA ZATCA API v2 (onboarding, reporting and clearance). This page documents API v2, a legacy version.

Use this API to create an account in the Complyance test environment. The account lets you use the ZATCA APIs: onboarding, reporting and clearance.

Send every required parameter in the format shown below.

Endpoint

http
POST https://<your-v2-api-host>/api/v1/proto/signUp

Use the v2 API host you were given when your account was set up. If you no longer have it, contact support@complyance.io.

Examples

Sign upbash
curl -X POST https://<your-v2-api-host>/api/v1/proto/signUp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"email": "finance@acme.example", "password": "Example@123"}'

Request parameters

ParameterRequiredTypeDescriptionExample
emailYesstringThe email address for the account you want to create.finance@acme.example
passwordYesstringThe password for your Complyance test account. It must contain at least one capital letter, one special character and one number.Example@123
Request bodyjson
{
  "email": "finance@acme.example",
  "password": "Example@123"
}

Response parameters

ParameterTypeDescriptionExample
refreshTokenstringA long-lived token, valid for one year. Store it securely: you use it to get a new access token every 24 hours.eyJjdHkiOiJKV1QifQ.example-refresh-token.signature
Responsejson
{
  "refreshToken": "eyJjdHkiOiJKV1QifQ.example-refresh-token.signature"
}

Next step

Sign in with the refresh token to get an access token.