{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"64b3234d-9d07-4705-8053-6624c05e7bdf","name":"Oen Tech Payment API","description":"# Endpoints\n\n- Production：[https://payment-api.oen.tw](https://payment-api.oen.tw)\n    \n- Testing：[https://payment-api.testing.oen.tw](https://payment-api.testing.oen.tw)\n    \n\n# Headers\n\n- Content-Type: application/json\n    \n- Authorization: Bearer {authToken}\n    \n\n# HTTP response status code\n\n- 200 - 成功\n    \n- 401 - 未授權\n    \n- 400 - 請求錯誤\n    \n- 500 - 伺服器錯誤\n    \n\n# Response structure\n\n``` json\n{\n  \"code\": \"\",\n  \"message\": \"\",\n  \"data\": {}\n}\n\n ```\n\n# 注意事項\n\n- **若要使用範例中的程式碼，請將 token 置換成您於應援 CRM 後台中取得的 token，及將 request 中的 merchantId 置換成您申請時填入的網域名稱（domain），eg. 您的應援頁面的網址為：**[<b>https://ming.oen.tw，則</b>](https://ming.oen.tw，則) **merchantId 請填入 ming**\n    \n- **測試環境請用測試環境中取得的 token，正式環境請用正式環境中取得的 token**\n    \n- **欲測試成功情境金額需 > 100，欲測試失敗情境金額 < 100**\n    \n- 非必填的欄位，在取得資料時，若無該欄位則無該 key\n    \n- 所有日期相關欄位格式皆為 ISO Date（UTC+0）\n    \n- 目前列表的資料一頁數量皆為 50 筆；因資料庫特性關係無法提供分頁功能，若要拿下一頁請帶上前一次 response 中的 page token\n    \n- 測試卡號：\n    \n    - 4242 4242 4242 4242\n        \n    - 4000 0000 0000 2503（欲觸發 3D 驗證時使用）\n        \n    - 5200 0000 0000 2151（欲觸發 3D 驗證時使用）\n        \n    - 4012 8888 1888 8333（欲觸發失敗情境時使用）\n        \n\n# 系統回應代碼對照表\n\n| Code | Description |\n| --- | --- |\n| S0000 | 執行成功 |\n| A0001 | 未授權 |\n| V0001 | 請求錯誤 |\n| V0002 | 交易狀態錯誤 |\n| T0001 | 交易失敗 |\n| T0002 | 安全碼 CVV 錯誤 |\n| T0003 | 卡片過期 |\n| T0004 | 額度不足 |\n| T0005 | 拒絕授權 |\n| F0001 | 系統錯誤 |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"26859697","team":4937213,"collectionId":"64b3234d-9d07-4705-8053-6624c05e7bdf","publishedId":"2s9YsQ7VJA","public":true,"publicUrl":"https://documenter-api.postman.tech/view/26859697/2s9YsQ7VJA","privateUrl":"https://go.postman.co/documentation/26859697-64b3234d-9d07-4705-8053-6624c05e7bdf","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4DB2CE"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"應援金流 API 文件"},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/18ff50bf-4171-49ef-ad8c-228216994aad/bG9nby5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"4db2ce"}},{"name":"light","logo":"https://content.pstmn.io/18ff50bf-4171-49ef-ad8c-228216994aad/bG9nby5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4DB2CE"}}]}},"version":"8.10.1","publishDate":"2024-01-16T08:09:15.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":"應援金流 API 文件"},"logos":{"logoLight":"https://content.pstmn.io/18ff50bf-4171-49ef-ad8c-228216994aad/bG9nby5wbmc=","logoDark":"https://content.pstmn.io/18ff50bf-4171-49ef-ad8c-228216994aad/bG9nby5wbmc="}},"statusCode":200},"environments":[{"name":"testing","id":"93eccba1-9ce6-4008-ba47-a291877c7807","owner":"26859697","values":[{"key":"DNS","value":"testing","enabled":true,"type":"default"},{"key":"authorization","value":"","enabled":true,"type":"any"},{"key":"cookies","value":"","enabled":true,"type":"any"},{"key":"PAYMENT_API_TOKEN","value":"","enabled":true,"type":"secret"},{"key":"USER_ACCESS_TOKEN","value":"","enabled":true,"type":"default"},{"key":"baseCookie","value":"","enabled":true,"type":"any"},{"key":"cookieHeader","value":"","enabled":true,"type":"any"}],"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/e6f1e1b2eecdcdaab00b2eaa89981180865b1b416b23a3aa2e5a50b94c3b8d8d","favicon":""},"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":"testing","value":"26859697-93eccba1-9ce6-4008-ba47-a291877c7807"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s9YsQ7VJA"}