title: Create MasterCard tokenization API
body: <p>I have a mobile app containing payment method via MasterCard. I have this tutorial:</p>
  
  <p><a href="https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-json/version/latest/api.html?locale=en_US" rel="nofollow noreferrer">https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-json/version/latest/api.html?locale=en_US</a></p>
  
  <p>I want to create Tokenization which contains customer's master detail, I have followed this tutorial part:</p>
  
  <p><a href="https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-json/version/latest/operation/Tokenization%3A%20Create%20or%20Update%20Token%20(with%20system-generated%20token).html?locale=en_US" rel="nofollow noreferrer">https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-json/version/latest/operation/Tokenization%3a Create or Update Token (with system-generated token).html?locale=en_US</a></p>
  
  <p>I tried with :</p>
  
  <p><strong>POST</strong> <code>https://ap-gateway.mastercard.com/api/rest/version/41/merchant/{{MyMerchantID}}/token</code></p>
  
  <p><strong>Params:</strong></p>
  
  <pre><code>{
  "sourceOfFunds": {
  "type": "CARD",
  "provided": {
  "card":{
  "number": "5123450000000008",
  "expiry": {
  "month": "05",
  "year": "17"
  }
  }
  }
  </code></pre>
  
  <p>Note: The number is a  mastercard test number.</p>
  
  <p>I am always get this error:</p>
  
  <pre><code>error   
  cause   "INVALID_REQUEST"
  explanation "Invalid credentials."
  result  "ERROR"
  </code></pre>
  
  <p>I followed the params in second URL.
  Can anyone help? Are the params correct or I missed something?</p>