{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"cdd71068-a70c-44e3-9bb4-0bb560c9ac15","name":"UniPin - In Game Top Up V.2","description":"# Document History\n\n| Vers | Date | Modification | Author |\n| --- | --- | --- | --- |\n| 2.0 | May 28th , 2019 | Initial | Hansen |\n| 2.1 | May 19th , 2020 | Description added to Game Detail method | Hansen & Naveed |\n\n# Transaction Flow\n\n**Step 1**\n\nPartner call our Game List API to know the list of available Game. You will get the `game_code` here.\n\n**Step 2**\n\nPartner call our Game Details API to know the detail from the `game_code`. [**UniPin**](https://www.unipin.com) will send the `denomination list` and `fields` user need to key in here.\n\n**Step 3**\n\nPartner call our Validate User API to check the user in Game side. [**UniPin**](https://www.unipin.com) will send the `validation_token` and `username` if the user found at game side.\n\n**Step 4**\n\nPartner call our Create Order API to creating transaction. [**UniPin**](https://www.unipin.com) will send the `transaction_number` after we verify partner’s request.\n\n**Step 5**\n\nIf got timeout or partner haven’t receive our response yet, Partner can call our Order Inquiry API to get the transaction’s detail. [**UniPin**](https://www.unipin.com) will send the `transaction detail` after we verify partner’s request.\n\n# Authentication Header\n\n| Parameter | Description |\n| --- | --- |\n| `partnerid` | Partner ID that define by [**UniPin**](https://www.unipin.com) |\n| `timestamp` | Timestamp of the request, we will check it. The date of timestamp should be the date you request. |\n| `path` | The path of the link you post the data. |\n| `auth` | You can check the detail below. |\n\n`auth formula` : hash_hmac(*sha256*,`partnerid`+`timestamp`+`path`,`secretkey`)\n\n| **Example** |\n| --- |\n| hash_hmac(sha256, 587e3675-e0ed-4e9e-9b39-099b11498fdc + 1559035569 + in-game-topup/list, gbwe12241229) |\n\n# JSON Failed Response\n\n| Parameter | Description |  |\n| --- | --- | --- |\n| `status` | 0 = Fail |  |\n| `error` | `message` | Message explanation for the error code. |\n|  | `code` | You can check all the error code at table below. |\n\n| code | message |\n| --- | --- |\n| 701 | Missing Parameter - `(parameter)` |\n| 702 | Partner not found |\n| 703 | Authentication not match |\n| 704 | Invalid Game Code |\n| 707 | Invalid denomination_id |\n| 708 | Duplicated reference_no |\n| 710 | Region Unsupported |\n| 711 | Insufficient credits |\n| 716 | Transaction not found |\n| 721 | Missing Header |\n| 722 | Link not valid |\n| 723 | Date should be today |\n| 724 | Invalid Country |\n| 725 | Item not ready |\n| 726 | Processed or Expired validation_token |\n| 727 | Invalid server / userid / username |\n| 728 | Game not available |\n| 729 | Payment Channel not available |\n| 730 | Cannot connect to Game Provider |\n| 731 | `(Message from Game Provider)` |\n| 999 | System Error |\n\n**Example of JSON Object:**\n\n```\n{    \n    \"error\": {\n    \"message\": \"Missing Parameter - userid\",\n    \"code\": 701    \n    },    \n    \"status\": 0\n} \n\n```\n\n# APIs\n\nDevelopment URL: **dev-api.unipin.com**  \n  \nProduction URL: **api.unipin.com**","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"8087848","collectionId":"cdd71068-a70c-44e3-9bb4-0bb560c9ac15","publishedId":"SVfNvUt2","public":true,"publicUrl":"https://documenter-api.postman.tech/view/8087848/SVfNvUt2","privateUrl":"https://go.postman.co/documentation/8087848-cdd71068-a70c-44e3-9bb4-0bb560c9ac15","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2022-12-16T07:21:28.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Development","id":"64ca37a4-d123-4701-b93b-e9a5aa128aa8","owner":"8578740","values":[{"key":"base_url","value":"dev.unipin.com","enabled":true},{"key":"base_api_url","value":"dev-api.unipin.com","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/872792a33275e79323f1bd5bd454c1ff78ae86f3b99b5500996211f1383acc70","favicon":"https://res.cloudinary.com/postman/image/upload/v1566807639/team/zq8kan02pefqpumfsqn0.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Development","value":"8578740-64ca37a4-d123-4701-b93b-e9a5aa128aa8"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/SVfNvUt2"}