{"id":7133,"date":"2022-04-08T10:26:32","date_gmt":"2022-04-08T14:26:32","guid":{"rendered":"https:\/\/tranzpay.io\/getting-started-api\/clone-of-hosted-payment-method\/"},"modified":"2024-03-06T13:38:05","modified_gmt":"2024-03-06T18:38:05","slug":"postman-collection","status":"publish","type":"page","link":"https:\/\/tranzpay.io\/getting-started-api\/postman-collection\/","title":{"rendered":"Postman Collection"},"content":{"rendered":"<h2>Postman Collection<\/h2>\n<h3><\/h3>\n<h3>What is an API Collection?<\/h3>\n<p>The API Collection is a set of all the Tranzpay API requests. Using these boilerplate requests, you can test and explore Tranzpay\u2019s APIs.<\/p>\n<h3>Why use an API Collection?<\/h3>\n<p>Going through the entire API documentation every time you need to test an API can be tedious. Using the Tranzpay API Collection can make the process of exploring APIs swift and effortless. It also significantly reduces the risk of errors.<\/p>\n<h3>Note<\/h3>\n<p>The Postman Collection does not substitute Tranzpay API documentation. We strongly recommend you use the Tranzpay API Collection along with the API documentation.<\/p>\n<p><a href=\"#tve-jump-180191b6132\"><\/p>\n<p>Install<\/p>\n<p><\/a><a href=\"#tve-jump-180191bb506\"><\/p>\n<p>Import<\/p>\n<p><\/a><a href=\"#tve-jump-180191bec9c\"><\/p>\n<p>Set Variables<\/p>\n<p><\/a><a href=\"#tve-jump-180191c348c\"><\/p>\n<p>Invoke<\/p>\n<p><\/a><\/p>\n<p><strong>Step 1:<\/strong> Install the Postman appDownload and install the Postman app. You can skip this step if you have already installed the Postman app in your system. Please ensure your version is up to date.<\/p>\n<p><strong>Step 2: <\/strong>Create or select a Workspace. Click Collections and select the import button. Browse for the downloaded collection and click Upload Files.<\/p>\n<p><strong>Step 3: <\/strong>After importing the collection, you have to configure the environment. Click the quick view icon in the top right corner, and click <b>Add<\/b> in Environment section.<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"7193\" width=\"733\" data-init-width=\"733\" height=\"455\" data-init-height=\"455\" title=\"postman_environment\" loading=\"lazy\" src=\"\/\/tranzpay.io\/getting-started-api\/wp-content\/uploads\/2022\/04\/postman_environment.png\" data-width=\"733\" data-height=\"455\" style=\"aspect-ratio: auto 733 \/ 455;\"><\/span><\/p>\n<p>Add the following environment variables with their corresponding values:<\/p>\n<p><strong>USERNAME<\/strong>: The username provided by Tranzpay. You get this value when you request a Sandbox Account.<strong>API_PASSWORD<\/strong>: The password provided by Tranzpay. You get this value when you request a Sandbox Account.<strong>PRODUCERID<\/strong>: The Producer ID provided by Tranzpay. You get this value when you request a Sandbox Account.<strong>ENDPOINT<\/strong>: The Endpoint URL for your request. The default is set to our Demo environment.<\/p>\n<p><span><img decoding=\"async\" alt=\"\" data-id=\"7192\" width=\"1270\" data-init-width=\"1270\" height=\"917\" data-init-height=\"917\" title=\"postman_environment_variable-1\" loading=\"lazy\" src=\"\/\/tranzpay.io\/getting-started-api\/wp-content\/uploads\/2022\/04\/postman_environment_variable-1.png\" data-width=\"1270\" data-height=\"917\" style=\"aspect-ratio: auto 1270 \/ 917;\"><\/span><\/p>\n<p>After adding all the environment variables, click Save.<\/p>\n<p><strong>Step 4:<\/strong> Invoke the APIs<\/p>\n<p>Your boilerplate request is ready; you can now test the Tranzpay API calls.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postman Collection What is an API Collection? The API Collection is a set of all the Tranzpay API requests. Using these boilerplate requests, you can test and explore Tranzpay\u2019s APIs. Why use an API Collection? Going through the entire API documentation every time you need to test an API can be tedious. Using the Tranzpay [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wf_page_folders":[89],"_links":{"self":[{"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/pages\/7133"}],"collection":[{"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/comments?post=7133"}],"version-history":[{"count":9,"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/pages\/7133\/revisions"}],"predecessor-version":[{"id":1022050,"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/pages\/7133\/revisions\/1022050"}],"wp:attachment":[{"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/media?parent=7133"}],"wp:term":[{"taxonomy":"wf_page_folders","embeddable":true,"href":"https:\/\/tranzpay.io\/getting-started-api\/wp-json\/wp\/v2\/wf_page_folders?post=7133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}