# FAQ

# How to set the value of Authorization in the Request Header?

  1. Log in to the merchant dashboard
  2. Find APP at APP Management, and check for detail
  3. Get APP ID & Secret Key
  4. contact APP ID & Secret Key with ':', get original string: str
  5. Encode str with Base64, then get result: strEncoded
  6. contact 'Basic ' before strEncoded and get result: authStr
  7. put authStr as Authorization's value
  APP ID : '1234567890'
  Security Key : 'abcdefg'

  str = '1234567890:abcdefg'
  strEncoded = Base64(str)
  // get result of strEncoded will be -> MTIzNDU2Nzg5MDphYmNkZWZn
  authStr = 'Basic MTIzNDU2Nzg5MDphYmNkZWZn'
  // Java
  import org.springframework.util.Base64Utils

  String appId = "1234567890";
  String securityKey = "abcdefg";
  String authStr = "Basic " + Base64Utils.encodeToString((appId + ":" + securityKey).getBytes());
  authStr = 'Basic MTIzNDU2Nzg5MDphYmNkZWZn';

  // POST
  Method: POST
  Header:Content-Type: application/json
  Header:Authorization: 'Basic MTIzNDU2Nzg5MDphYmNkZWZn'