User account

List of customers

GET /v1/merchant/customer -offset

get list of customers

Parameters

nametypedescription
offsetIntegeroffset for paging, add it to url
pageNumberIntegerpage number
pageSizeIntegerpage size

Request example

curl -X GET "https://api.crypterium.com/v1/merchant/customer?offset=0&pageNumber=0&pageSize=1"

Response example

{
  "content": [
    {
      "customerId": "2d084eb7-9841-4a8e-9521-cfa9d81121dc", // Customer identifier
      "status": "ACTIVE", // Customer status
      "kycLevel": "KYC_1" // Customer kyc level "NONE", "KYC_1", "KYC_2"
    }
  ], // Array of customers data
  "totalElements": 1,
  "last": true,
  "totalPages": 1,
  "sort": null,
  "first": true,
  "numberOfElements": 1,
  "size": 20,
  "number": 0
}

Sign up new user

POST /v1/merchant/register

sign up new user

{
  "email": "string",
  "phone": "string"
}

Response example

{
	"customerId": "c8772b0b-7bfd-49b2-8753-101013dd4a88" // Customer identifier
}

Authorize user

POST /v1/merchant/authorize

authorize a user

{
	"customerId": "c8772b0b-7bfd-49b2-8753-101013dd4a88"
}

Response example

{
  "access_token": "b4529e51-8c2e-45de-8905-d0b6ddcedc69",
  "expires_in": 899,
  "refresh_token": "9948fa44-4c43-4094-b700-469a68de6995",
  "scope": "read write",
  "token_type": "bearer"
}