{"id":21878100,"url":"https://github.com/midtrans/midtrans-payment-api-postman-collections","last_synced_at":"2025-03-21T23:44:15.749Z","repository":{"id":49319708,"uuid":"156693457","full_name":"Midtrans/Midtrans-Payment-API-Postman-Collections","owner":"Midtrans","description":"Official Midtrans Payment API Postman Collections |","archived":false,"fork":false,"pushed_at":"2019-11-05T07:14:09.000Z","size":53,"stargazers_count":42,"open_issues_count":1,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-26T18:17:28.603Z","etag":null,"topics":["api-documentation","development-tools","documentation-code","midtrans","payment","payment-gateway"],"latest_commit_sha":null,"homepage":"https://midtrans.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Midtrans.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-08T11:01:15.000Z","updated_at":"2024-12-17T03:59:08.000Z","dependencies_parsed_at":"2022-08-26T08:31:48.551Z","dependency_job_id":null,"html_url":"https://github.com/Midtrans/Midtrans-Payment-API-Postman-Collections","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midtrans%2FMidtrans-Payment-API-Postman-Collections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midtrans%2FMidtrans-Payment-API-Postman-Collections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midtrans%2FMidtrans-Payment-API-Postman-Collections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midtrans%2FMidtrans-Payment-API-Postman-Collections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Midtrans","download_url":"https://codeload.github.com/Midtrans/Midtrans-Payment-API-Postman-Collections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885532,"owners_count":20526293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-documentation","development-tools","documentation-code","midtrans","payment","payment-gateway"],"created_at":"2024-11-28T08:11:40.682Z","updated_at":"2025-03-21T23:44:15.718Z","avatar_url":"https://github.com/Midtrans.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nMidtrans Payment API Postman Collection\n=====================================\n[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/af068be08b5d1a422796)\n\nMidtrans\u0026nbsp; :heart: Postman!\n\n## Description\n\nThis repository contains [Postman](https://www.getpostman.com) collection for various payment API call to [Midtrans](https://midtrans.com) Payment API.\n\nAPI covered:\n* [SNAP API](http://snap-docs.midtrans.com)\n* [Core API](http://api-docs.midtrans.com)\n\n## Usage Instruction\n\n1. Download and open [Postman](https://www.getpostman.com)\n2.  Import:\n    - Use this button to download: \n        \n        [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/af068be08b5d1a422796) , or\n    - Clone or [download](../../archive/master.zip) this repository, then import postman collections from `Midtrans Payment API.postman_collection.json` file.\n3. [Register to Midtrans](https://dashboard.midtrans.com/register)\n4. [Login](http://dashboard.midtrans.com) to Midtrans, switch to **Sandbox**, go to menu `Settings \u003e Access Keys`. Copy your **Server Key**\n5. In Postman, open **Midtrans Payment API** then choose one request you want to try, click on `Authorization` tab (beside Headers tab)\n6. Select **Type** as `Basic Auth`, fill **Username** with your **Server Key** (looks like this `VT-server-xxxxxx`). Leave **Password** field blank, click **Update Request**\n7. Now you can `save` then click `send` the request. You will get server response.\n\n\u003e ![Authorization Config](https://cloud.githubusercontent.com/assets/13027142/20592019/1e6ab9ec-b25e-11e6-9285-c68fef6c538c.png)\n\n\n## Specific Usage\n\n###### *You need to download/clone this repo to your local to use these:*\n\n### SNAP - Snap Popup Viewer\n\nIf you are testing `Snap transaction token request` you will get response like:\n```\n{ \"token\": \"bffb82ff-f8bb-4651-86b0-0c2316b77c0a\" }\n```\nTo see how that token works, you can open file `../snap-opener/index.html` in your web browser to preview the SNAP payment page.\n- Tips: you can also append snap token like this in url `../snap-opener/index.html?snap_token=bffb82ff-f8bb-4651-86b0-0c2316b77c0a\u0026is_production=false`\n\nYou can also edit file `snap/index.html` and insert your own token to the HTML, then open in web browser.\n\n###### *This file is for snap token viewer only, you should not use this for integration reference, for front-end integration sample, see below section*\n\n### SNAP - Snap Front-End Integration Example\n\nFor real example on how you can use Snap token in your website front-end, you can see sample minimum implementation here:\n`../sample-frontend/index.html`\n\n\u003e Edit the file and insert `\u003cYour-Client-Key-Here\u003e` with your client key.\n\n### Core API - Credit Card Get Token \u0026 3DS Authenticate Example\n\nTo get credit card token for Core API Credit Card charge process \u0026 how to open 3ds redirect_url, here's [sample implementation that you can check](/coreAPI-CreditCardFrontend/index.html). (mandiri clickpay also need get token process).\n\n\u003e Don't forget to change client_key to your client key inside that file.\n\n## Production Mode\n\nAll endpoint used in this postman collection is for `sandbox transaction`, to switch to `production` change endpoint URL from:\n\n`https://api.sandbox.midtrans.com/../..`\n\nto\n\n`https://api.midtrans.com/../..`\n\n(Just remove the `sandbox.` from url)\n\n## Troubleshooting\n\nIf you get error\n```\n{\n  \"error_messages\": [\n    \"Access denied due to unauthorized transaction, please check client or server key\",\n    \"Visit https://snap-docs.midtrans.com/#request-headers for more details\"\n  ]\n}\n```\n- Please make sure you do step 4-7 properly like instructed in **[Usage Instruction](#usage-instruction)** section.\n- Please make sure you are using correct **Server Key** (Serverkey for sandbox \u0026 production are different).\n\n### Changelog\n\n15/11/2018\n- Add sample collection for flow recurring Credit Cards.\n- Add a list of information and contacts to help understand the use of the Midtrans product API.\n\n25/01/2018\n- Add gopay \u0026 danamon online banking example.\n- Change mandiri clickpay request, according to docs.\n- Change sample customer email.\n\n12/04/2019\n- Restructurize\n- Sync with current API docs\n- Update to 3DS new flow\n\n### Get Help\n\n* [Midtrans Profile\u0026nbsp;](https://www.midtrans.com)\n* [Midtrans Registration](https://dashboard.midtrans.com/register)\n* [General Documentation Midtrans](http://docs.midtrans.com)\n* [SNAP documentation](http://snap-docs.midtrans.com)\n* [Core API documentation](http://api-docs.midtrans.com)\n* [Mobile Documentation Product Midtrans](http://mobile-docs.midtrans.com/)\n* Can't find answer you looking for? email to Technical Support Team Midtrans [support@midtrans.com](mailto:support@midtrans.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidtrans%2Fmidtrans-payment-api-postman-collections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidtrans%2Fmidtrans-payment-api-postman-collections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidtrans%2Fmidtrans-payment-api-postman-collections/lists"}