{"info":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","description":"<html><head></head><body><p>Basic example of Midtrans.com payment API usage.\nIncluding usage of:</p>\n<ul>\n<li>SNAP API</li>\n<li>Core API</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11012973","collectionId":"71084319-069c-4587-80dc-db6ca37a0a0b","publishedId":"SzfAz6xH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-24T23:01:39.000Z"},"item":[{"name":"1. SNAP API Sandbox","item":[{"name":"1.a.  SNAP transaction token request (minimum)","event":[{"listen":"test","script":{"id":"7355b968-1755-48c3-a032-fc10ce6dc897","exec":[""],"type":"text/javascript"}}],"id":"32452dfd-15ec-4182-b0e1-3bd92dc1e554","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{},"followAuthorizationHeader":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"AUTH_STRING","value":"VT-server-Cpo03kYDOc0cNUKgt6hnLkKg:","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-1779023228\",\n    \"gross_amount\": 10000\n  }, \n  \"credit_card\": {\n    \"secure\": true\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with minimum mandatory parameters. You can do transaction only with this minimum parameters.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-parameter-request-body\">https://snap-docs.midtrans.com/#json-parameter-request-body</a></p>\n","urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"32452dfd-15ec-4182-b0e1-3bd92dc1e554"},{"name":"1.b.  SNAP transaction token request","id":"13ac6c98-bfc1-4179-8abd-ea8daa4ba356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-102-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true\n  },\n  \"item_details\": [{\n    \"id\": \"ITEM1\",\n    \"price\": 10000,\n    \"quantity\": 1,\n    \"name\": \"Midtrans Bear\"\n  }],\n  \"customer_details\": {\n    \"first_name\": \"TEST\",\n    \"last_name\": \"MIDTRANSER\",\n    \"email\": \"noreply@example.com\",\n    \"phone\": \"+628123456\",\n    \"billing_address\": {\n      \"first_name\": \"TEST\",\n      \"last_name\": \"MIDTRANSER\",\n      \"email\": \"noreply@example.com\",\n      \"phone\": \"081 2233 44-55\",\n      \"address\": \"Sudirman\",\n      \"city\": \"Jakarta\",\n      \"postal_code\": \"12190\",\n      \"country_code\": \"IDN\"\n    },\n    \"shipping_address\": {\n      \"first_name\": \"TEST\",\n      \"last_name\": \"MIDTRANSER\",\n      \"email\": \"noreply@example.com\",\n      \"phone\": \"0812345678910\",\n      \"address\": \"Sudirman\",\n      \"city\": \"Jakarta\",\n      \"postal_code\": \"12190\",\n      \"country_code\": \"IDN\"\n    }\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with recommended parameter.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-parameter-request-body\">https://snap-docs.midtrans.com/#json-parameter-request-body</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"13ac6c98-bfc1-4179-8abd-ea8daa4ba356"},{"name":"1.c.  Full Custom SNAP transaction token request (include optionals)","id":"3e813a6e-a47a-4bb6-bc98-da7e838ebe7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-105-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"item_details\": [{\n    \"id\": \"ITEM1\",\n    \"price\": 10000,\n    \"quantity\": 1,\n    \"name\": \"Midtrans Bear\",\n    \"brand\": \"Midtrans\",\n    \"category\": \"Toys\",\n    \"merchant_name\": \"Midtrans\"\n  }],\n  \"customer_details\": {\n    \"first_name\": \"John\",\n    \"last_name\": \"Watson\",\n    \"email\": \"test@example.com\",\n    \"phone\": \"+628123456\",\n    \"billing_address\": {\n      \"first_name\": \"John\",\n      \"last_name\": \"Watson\",\n      \"email\": \"test@example.com\",\n      \"phone\": \"081 2233 44-55\",\n      \"address\": \"Sudirman\",\n      \"city\": \"Jakarta\",\n      \"postal_code\": \"12190\",\n      \"country_code\": \"IDN\"\n    },\n    \"shipping_address\": {\n      \"first_name\": \"John\",\n      \"last_name\": \"Watson\",\n      \"email\": \"test@example.com\",\n      \"phone\": \"0 8128-75 7-9338\",\n      \"address\": \"Sudirman\",\n      \"city\": \"Jakarta\",\n      \"postal_code\": \"12190\",\n      \"country_code\": \"IDN\"\n    }\n  },\n  \"enabled_payments\": [\"credit_card\", \"mandiri_clickpay\", \"cimb_clicks\",\"bca_klikbca\", \"bca_klikpay\", \"bri_epay\", \"echannel\",\"mandiri_ecash\", \"permata_va\", \"bca_va\", \"bni_va\", \"other_va\", \"gopay\", \"indomaret\", \"alfamart\", \"danamon_online\", \"akulaku\"],\n  \"credit_card\": {\n    \"secure\": true,\n    \"bank\": \"bca\",\n    \"installment\": {\n      \"required\": false,\n      \"terms\": {\n        \"bni\": [3, 6, 12],\n        \"mandiri\": [3, 6, 12],\n        \"cimb\": [3],\n        \"bca\": [3, 6, 12],\n        \"offline\": [6, 12]\n      }\n    },\n    \"whitelist_bins\": [\n      \"48111111\",\n      \"41111111\"\n    ]\n  },\n  \"bca_va\": {\n    \"va_number\": \"12345678911\",\n    \"sub_company_code\": \"00000\",\n    \"free_text\": {\n      \"inquiry\": [\n        {\n          \"en\": \"text in English\",\n          \"id\": \"text in Bahasa Indonesia\"\n        }\n      ],\n      \"payment\": [\n        {\n          \"en\": \"text in English\",\n          \"id\": \"text in Bahasa Indonesia\"\n        }\n      ]\n    }\n  },\n  \"bni_va\": {\n    \"va_number\": \"12345678\"\n  },\n  \"permata_va\": {\n    \"va_number\": \"1234567890\",\n    \"recipient_name\": \"SUDARSONO\"\n  },\n  \"callbacks\": {\n    \"finish\": \"https://demo.midtrans.com\"\n  },\n  \"expiry\": {\n    \"start_time\": \"2019-12-13 18:11:08 +0700\",\n    \"unit\": \"minutes\",\n    \"duration\": 1\n  },\n  \"custom_field1\": \"custom field 1 content\",\n  \"custom_field2\": \"custom field 2 content\",\n  \"custom_field3\": \"custom field 3 content\"\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with recommended parameter.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-parameter-request-body\">https://snap-docs.midtrans.com/#json-parameter-request-body</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e813a6e-a47a-4bb6-bc98-da7e838ebe7a"},{"name":"GET transaction status","id":"6cbe435e-3579-4a09-b0e6-0e3e35d7f4b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/status","description":"<p>Get information status of a transaction with certain order_id</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","status"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cbe435e-3579-4a09-b0e6-0e3e35d7f4b1"},{"name":"APPROVE transaction that suspected as fraud (challange status)","id":"f6091624-6053-4c2e-8c48-f4a5686a4f18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/approve","description":"<p>Approve a transaction with certain order_id which gets challenge status from Fraud Detection System</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","approve"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6091624-6053-4c2e-8c48-f4a5686a4f18"},{"name":"DENY transaction that suspected as fraud (challange status)","id":"b8d75369-ea53-4d17-a26a-2b7d3cda8501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/deny","description":"<p>Deny a transaction with certain order_id which gets challenge status from Fraud Detection System</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","deny"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8d75369-ea53-4d17-a26a-2b7d3cda8501"},{"name":"CANCEL transaction","id":"f128d022-ae08-403a-9c20-9ea6af3e9363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/cancel","description":"<p>Cancel a transaction with certain order_id. Cancelation can only be done before settlement process for credit card transaction</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","cancel"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f128d022-ae08-403a-9c20-9ea6af3e9363"},{"name":"Refund transaction","id":"7768a21a-2e24-4950-a879-887015fba45c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 5000,\n  \"reason\": \"Product is out of stock, payment is being refunded\"\n}"},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/refund","description":"<p>Refund a transaction with certain order_id. Refund can only be done after settlement process for credit card transaction</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","refund"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7768a21a-2e24-4950-a879-887015fba45c"}],"id":"86b30bc3-2cdb-49cc-b86d-f0d896eb6a3e","_postman_id":"86b30bc3-2cdb-49cc-b86d-f0d896eb6a3e","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}},{"name":"1.1 SNAP API Sandbox - Additional feature","item":[{"name":"SNAP Custom Enabled Payment","id":"8ea3cbf9-2a46-4bdd-bf48-942e57522c95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-b-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"enabled_payments\": [\n\t\"credit_card\", \n\t\"mandiri_clickpay\", \n\t\"cimb_clicks\", \n\t\"bca_klikbca\", \n\t\"bca_klikpay\", \n\t\"bri_epay\", \n\t\"echannel\", \n\t\"mandiri_ecash\", \n\t\"permata_va\", \n\t\"bca_va\", \n\t\"bni_va\", \n\t\"other_va\", \n\t\"gopay\", \n\t\"indomaret\", \n\t\"alfamart\", \n\t\"danamon_online\", \n\t\"akulaku\"\n\t]\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify which payment method to display.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-parameter-request-body\">https://snap-docs.midtrans.com/#json-parameter-request-body</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ea3cbf9-2a46-4bdd-bf48-942e57522c95"},{"name":"SNAP TwoClick Credit Card","id":"c9d18b18-0136-4362-aa81-25a27e3037e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-a-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"save_card\": true\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter for TwoClick Credit Card Transaction.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#two-clicks\">https://snap-docs.midtrans.com/#two-clicks</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9d18b18-0136-4362-aa81-25a27e3037e0"},{"name":"SNAP OneClick Credit Card","id":"15c8cc1f-b550-4f4e-87ff-a5e36f23b9cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-8-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"save_card\": true\n  },\n  \"user_id\": \"customer-123\"\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter for OneClick Credit Card Transaction.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#one-clicks\">https://snap-docs.midtrans.com/#one-clicks</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"15c8cc1f-b550-4f4e-87ff-a5e36f23b9cf"},{"name":"SNAP Pre-Authorization Credit Card","id":"c377435a-50c1-41b8-9acb-3c8ed6ccbbcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-8-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"type\": \"authorize\"\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter for Pre-Authorization Credit Card Transaction.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#pre-authorization\">https://snap-docs.midtrans.com/#pre-authorization</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c377435a-50c1-41b8-9acb-3c8ed6ccbbcd"},{"name":"SNAP Custom Expiry","id":"18febb5e-5f48-417e-a6eb-489e9a03d77e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-c-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"expiry\": {\n    \"start_time\": \"2019-04-13 18:11:08 +0700\",\n    \"unit\": \"minutes\",\n    \"duration\": 180\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify time limit of the payment.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"18febb5e-5f48-417e-a6eb-489e9a03d77e"},{"name":"SNAP Callback Gopay","id":"08653424-a69c-4dec-adf2-d1060eb1fb67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-a-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"enabled_payments\": [\"gopay\"],\n  \"gopay\": {\n    \"enable_callback\": true,\n    \"callback_url\": \"http://example.com\"\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter for Gopay.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"08653424-a69c-4dec-adf2-d1060eb1fb67"},{"name":"SNAP Installment Online Credit Card","id":"3fad67c5-2f39-4138-9b69-772d5f205761","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-4-1779023228\",\n    \"gross_amount\": 750000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"installment\": {\n      \"required\": false,\n      \"terms\": {\n        \"bni\": [3, 6, 12],\n        \"mandiri\": [3, 6, 12],\n        \"cimb\": [3, 6, 12],\n        \"bca\": [3, 6, 12]\n      }\n    }\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to allow installment for credit card payment.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3fad67c5-2f39-4138-9b69-772d5f205761"},{"name":"SNAP Installment Offline Credit Card","id":"07b11268-07de-4b3a-b755-bd88a6feb539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-4-1779023228\",\n    \"gross_amount\": 750000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"installment\": {\n      \"required\": false,\n      \"terms\": {\n        \"offline\": [3, 6, 12]\n      }\n    },\n    \"whitelist_bins\": [\n      \"481111\",\n      \"411\"\n    ]\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to allow installment for credit card payment.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"07b11268-07de-4b3a-b755-bd88a6feb539"},{"name":"SNAP Custom Acquring bank Credit Card","id":"204a0cbb-6a30-4293-aec7-1944e9642a09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-5-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"bank\": \"mandiri\"\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify acquiring bank.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"204a0cbb-6a30-4293-aec7-1944e9642a09"},{"name":"SNAP Custom Acquring bank & channel Credit Card","id":"1040b484-9cd8-4ead-89c4-06b5ec7cc549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-6-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"channel\": \"migs\",\n    \"bank\": \"bca\"\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify acquiring bank.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1040b484-9cd8-4ead-89c4-06b5ec7cc549"},{"name":"SNAP Custom allowed CC BIN number","id":"d5dd0080-f85e-4831-a25b-92bcf4a71f49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-7-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true,\n    \"whitelist_bins\": [\n      \"bni\",\n      \"mandiri\",\n      481111,\n      573212\n      ]\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify only accept Credit Card from specific BIN number or specific issuing bank.\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#json-object\">https://snap-docs.midtrans.com/#json-object</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5dd0080-f85e-4831-a25b-92bcf4a71f49"},{"name":"SNAP Custom Virtual Account Number Bank Transfer","id":"1edf8d6f-65e1-4d98-8b79-fb5f59964188","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"transaction_details\": {\n    \"order_id\": \"ORDER-101-9-1779023228\",\n    \"gross_amount\": 10000\n  },\n  \"credit_card\": {\n    \"secure\": true\n  },\n  \"bca_va\": {\n    \"va_number\": \"12345678901\"\n  },\n  \"permata_va\": {\n    \"va_number\": \"1234567890\"\n  },\n  \"bni_va\": {\n    \"va_number\": \"12345678\"\n  }\n}"},"url":"https://app.sandbox.midtrans.com/snap/v1/transactions","description":"<p>SNAP transaction token request with additional parameter to specify custom VA number for bank transfer transaction (bca, permata, bni va).\nLearn more about the parameters here:\n<a href=\"https://snap-docs.midtrans.com/#custom-virtual-account-number\">https://snap-docs.midtrans.com/#custom-virtual-account-number</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["snap","v1","transactions"],"host":["app","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1edf8d6f-65e1-4d98-8b79-fb5f59964188"}],"id":"bbce1562-adc1-4185-8016-dea7046f867e","_postman_id":"bbce1562-adc1-4185-8016-dea7046f867e","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}},{"name":"2. Core API Sandbox","item":[{"name":"GET card token","id":"f3f7402b-39a7-48be-9302-44380a603b23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/token?client_key=<Merchant Client Key>&card_number=4811 1111 1111 1114&card_exp_month=12&card_exp_year=24&card_cvv=123","description":"<p>IMPORTANT: This step should be done via <code>midtrans.min.js</code> in Frontend, unless you have PCI DSS certification. Else, you are in risk of card data breach!\nSend Credit/Debit card information to Midtrans server and returns token ID, you need token ID to charge card transaction.\n<a href=\"https://api-docs.midtrans.com/#get-token\">https://api-docs.midtrans.com/#get-token</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","token"],"host":["api","sandbox","midtrans","com"],"query":[{"description":{"content":"<p>Your merchant client key, from Midtrans dashboard</p>\n","type":"text/plain"},"key":"client_key","value":"<Merchant Client Key>"},{"description":{"content":"<p>credit card number</p>\n","type":"text/plain"},"key":"card_number","value":"4811 1111 1111 1114"},{"description":{"content":"<p>credit card expiry month</p>\n","type":"text/plain"},"key":"card_exp_month","value":"12"},{"description":{"content":"<p>credit card expiry year</p>\n","type":"text/plain"},"key":"card_exp_year","value":"24"},{"description":{"content":"<p>credit card cvv</p>\n","type":"text/plain"},"key":"card_cvv","value":"123"}],"variable":[]}},"response":[],"_postman_id":"f3f7402b-39a7-48be-9302-44380a603b23"},{"name":"Charge Credit Card Transaction","id":"8d8381df-dbb5-4d88-b134-8389f456f824","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order-101a-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"authentication\": true\n  },\n  \"item_details\": [{\n      \"id\": \"a1\",\n      \"price\": 50000,\n      \"quantity\": 2,\n      \"name\": \"Apel\",\n      \"brand\": \"Fuji Apple\",\n      \"category\": \"Fruit\",\n      \"merchant_name\": \"Fruit-store\"\n    }],\n    \"customer_details\": {\n      \"first_name\": \"BUDI\",\n      \"last_name\": \"UTOMO\",\n      \"email\": \"noreply@example.com\",\n      \"phone\": \"+628123456\",\n      \"billing_address\": {\n        \"first_name\": \"BUDI\",\n        \"last_name\": \"UTOMO\",\n        \"email\": \"noreply@example.com\",\n        \"phone\": \"081 2233 44-55\",\n        \"address\": \"Sudirman\",\n        \"city\": \"Jakarta\",\n        \"postal_code\": \"12190\",\n        \"country_code\": \"IDN\"\n      },\n      \"shipping_address\": {\n        \"first_name\": \"BUDI\",\n        \"last_name\": \"UTOMO\",\n        \"email\": \"noreply@example.com\",\n        \"phone\": \"0 8128-75 7-9338\",\n        \"address\": \"Sudirman\",\n        \"city\": \"Jakarta\",\n        \"postal_code\": \"12190\",\n        \"country_code\": \"IDN\"\n      }\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction\nPlease do get token step first to get token_id.\n<a href=\"https://api-docs.midtrans.com/#credit-card-charge\">https://api-docs.midtrans.com/#credit-card-charge</a>\nYou will need to open redirect_url for your customer to complete 3DS/OTP web page</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d8381df-dbb5-4d88-b134-8389f456f824"},{"name":"Charge Bank Transfer Transaction (Permata VA, can be paid on all bank)","id":"f3401da6-ffb9-4bc1-a180-4fe6fb99d73d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"bank_transfer\",\n  \"bank_transfer\": {\n    \"bank\": \"permata\",\n\t\"va_number\": \"1234567890\"\n  },\n  \"transaction_details\": {\n    \"order_id\": \"order-101b-1779023228\",\n    \"gross_amount\": 44000\n  },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ]\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Request Bank Transfer transaction\nResponse will also include Bank Transfer VA Number\n<a href=\"https://api-docs.midtrans.com/#bank-transfer\">https://api-docs.midtrans.com/#bank-transfer</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3401da6-ffb9-4bc1-a180-4fe6fb99d73d"},{"name":"Charge Bank Transfer Transaction (BNI VA, can be paid on all bank)","id":"244cd88b-2d25-4afe-8e49-0eeedf13f010","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"bank_transfer\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101q-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n   \"bank_transfer\":{\n     \"bank\": \"bni\",\n     \"va_number\": \"12345678\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"244cd88b-2d25-4afe-8e49-0eeedf13f010"},{"name":"Charge BCA VA Bank Transfer Transaction","id":"d0299dd8-7d30-4a4b-8aff-edbccb64804c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"bank_transfer\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101c-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n   \"bank_transfer\":{\n     \"bank\": \"bca\",\n     \"va_number\": \"12345678901\",\n     \"free_text\": {\n          \"inquiry\": [\n                {\n                    \"id\": \"Your Custom Text in ID language\",\n                    \"en\": \"Your Custom Text in EN language\"\n                }\n          ],\n          \"payment\": [\n                {\n                    \"id\": \"Your Custom Text in ID language\",\n                    \"en\": \"Your Custom Text in EN language\"\n                }\n          ]\n    }\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Request Bank Transfer BCA transaction\nResponse will also include VA number\n<a href=\"https://api-docs.midtrans.com/#bank-transfer\">https://api-docs.midtrans.com/#bank-transfer</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0299dd8-7d30-4a4b-8aff-edbccb64804c"},{"name":"Charge Mandiri Bill Payment Transaction","id":"b10e8141-52f3-49cd-b78c-48712d5fb6cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"echannel\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101d-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n    \"echannel\" : {\n        \"bill_info1\" : \"Payment For:\",\n        \"bill_info2\" : \"Food\"\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Request Mandiri Bill Payment transaction\nResponse will also include bill_key number\n<a href=\"https://api-docs.midtrans.com/#bank-transfer\">https://api-docs.midtrans.com/#bank-transfer</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b10e8141-52f3-49cd-b78c-48712d5fb6cf"},{"name":"Charge BCA Klikpay Payment Transaction","id":"2784f252-e2f2-4e88-ab3c-149c688c5368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"bca_klikpay\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101e-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n  \"bca_klikpay\": {\n    \"type\": 1,\n    \"description\": \"Pembelian Barang\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2784f252-e2f2-4e88-ab3c-149c688c5368"},{"name":"Charge Klikbca Payment Transaction","id":"3979ce9d-f057-468a-a7ea-7366a5b08235","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"bca_klikbca\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101f-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n  \"bca_klikbca\" : {\n    \"description\" : \"testing transaction\",\n    \"user_id\" : \"midtrans1012\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3979ce9d-f057-468a-a7ea-7366a5b08235"},{"name":"Charge Epay BRI Payment Transaction","id":"c71ee0d2-06c2-4f36-ad84-8259c9b50f4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"bri_epay\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101h-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ]\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c71ee0d2-06c2-4f36-ad84-8259c9b50f4c"},{"name":"Charge GO-PAY Payment Transaction","id":"ba72c5fe-3f28-4ca0-be9d-5e369ed427d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"gopay\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101h-1779023228\"\n    },\n\t\"gopay\": {\n\t\t\"enable_callback\": true,\n\t\t\"callback_url\": \"someapps://callback\"\n\t},\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ]\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba72c5fe-3f28-4ca0-be9d-5e369ed427d2"},{"name":"Charge Mandiri Clickpay Payment Transaction","id":"920e0ecb-d966-4080-a809-b2f0f55c3907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"mandiri_clickpay\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101g-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n  \"mandiri_clickpay\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"input3\": \"< 5-digits random number you gave to the customer >\",\n    \"token\": \"< Number generated by customer's physical token >\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"920e0ecb-d966-4080-a809-b2f0f55c3907"},{"name":"Charge CIMB Clicks Payment Transaction","id":"10d67f87-e729-474e-bc13-278310fa3819","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"cimb_clicks\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101i-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n    \"cimb_clicks\": {\n      \"description\": \"Purchase of a Food Delivery\"\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"10d67f87-e729-474e-bc13-278310fa3819"},{"name":"Charge Danamon Online Banking Payment Transaction","id":"bd287ab7-89fd-4041-a69c-37d30cb33fb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"danamon_online\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101p-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ]\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd287ab7-89fd-4041-a69c-37d30cb33fb7"},{"name":"Charge Telkomsel Cash Payment Transaction","id":"27fb8496-3b69-455f-96bd-f564f6747684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"telkomsel_cash\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101j\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n    \"telkomsel_cash\": {\n      \"promo\": false,\n     \"is_reversal\": 0,\n    \"customer\": \"0811111111\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"27fb8496-3b69-455f-96bd-f564f6747684"},{"name":"Charge Mandiri Ecash Payment Transaction","id":"59b386b1-87b5-44be-a72b-b0ad3ad61853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"mandiri_ecash\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101m-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n  \"mandiri_ecash\": {\n    \"description\": \"Transaction Description\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"59b386b1-87b5-44be-a72b-b0ad3ad61853"},{"name":"Charge Indomaret Payment Transaction","id":"70599348-f234-4212-9062-0ba11b845a54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"cstore\",\n    \"transaction_details\": {\n        \"gross_amount\": 44000,\n        \"order_id\": \"order-101n-1779023228\"\n    },\n    \"customer_details\": {\n        \"email\": \"noreply@example.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n    \"item_details\": [\n    {\n       \"id\": \"item01\",\n       \"price\": 21000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Zozozo\"\n    },\n    {\n       \"id\": \"item02\",\n       \"price\": 23000,\n       \"quantity\": 1,\n       \"name\": \"Ayam Xoxoxo\"\n    }\n   ],\n  \"cstore\": {\n    \"store\": \"Indomaret\",\n    \"message\": \"Message to display\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"70599348-f234-4212-9062-0ba11b845a54"},{"name":"Charge Alfamart Payment Transaction","id":"2f897c4b-e430-416e-8f11-525e248f60e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"cstore\",\n  \"transaction_details\": {\n    \"gross_amount\": 162500,\n    \"order_id\": \"order-101o-1779023228\"\n  },\n  \"cstore\": {\n    \"store\": \"alfamart\",\n    \"alfamart_free_text_1\": \"1st row of receipt,\",\n    \"alfamart_free_text_2\": \"This is the 2nd row,\",\n    \"alfamart_free_text_3\": \"3rd row. The end.\"\n  },\n  \"customer_details\": {\n    \"first_name\": \"Budi\",\n    \"last_name\": \"Utomo\",\n    \"email\": \"budi.utomo@midtrans.com\",\n    \"phone\": \"0811223344\"\n  },\n  \"item_details\": [\n    {\n      \"id\": \"id1\",\n      \"price\": 162500,\n      \"quantity\": 1,\n      \"name\": \"tiket2\"\n    }\n  ]\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f897c4b-e430-416e-8f11-525e248f60e8"},{"name":"Charge Akulaku Payment Transaction","id":"49085ed2-574c-4d9b-8fec-9ace97781c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"akulaku\",\n  \"transaction_details\": {\n    \"order_id\": \"order-101-1779023228\",\n    \"gross_amount\": 11000\n  },\n  \"item_details\": [\n    {\n      \"id\": \"1\",\n      \"price\": 11000,\n      \"quantity\": 1,\n      \"name\": \"Sepatu \"\n    }\n  ],\n  \"customer_details\":{\n    \"first_name\": \"John\",\n    \"last_name\": \"Baker\",\n    \"email\": \"john.baker@email.com\",\n    \"phone\": \"08123456789\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"49085ed2-574c-4d9b-8fec-9ace97781c52"},{"name":"Pre-Authorize Credit Card Transaction","id":"16b6d504-6d99-4f22-8500-fadb0ba85c73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order-101r\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"type\": \"authorize\"\n  },\n  \"item_details\": [{\n      \"id\": \"a1\",\n      \"price\": 50000,\n      \"quantity\": 2,\n      \"name\": \"Apel\",\n      \"brand\": \"Fuji Apple\",\n      \"category\": \"Fruit\",\n      \"merchant_name\": \"Fruit-store\"\n    }],\n    \"customer_details\": {\n      \"first_name\": \"BUDI\",\n      \"last_name\": \"UTOMO\",\n      \"email\": \"noreply@example.com\",\n      \"phone\": \"+628123456\",\n      \"billing_address\": {\n        \"first_name\": \"BUDI\",\n        \"last_name\": \"UTOMO\",\n        \"email\": \"noreply@example.com\",\n        \"phone\": \"081 2233 44-55\",\n        \"address\": \"Sudirman\",\n        \"city\": \"Jakarta\",\n        \"postal_code\": \"12190\",\n        \"country_code\": \"IDN\"\n      },\n      \"shipping_address\": {\n        \"first_name\": \"BUDI\",\n        \"last_name\": \"UTOMO\",\n        \"email\": \"noreply@example.com\",\n        \"phone\": \"0 8128-75 7-9338\",\n        \"address\": \"Sudirman\",\n        \"city\": \"Jakarta\",\n        \"postal_code\": \"12190\",\n        \"country_code\": \"IDN\"\n      }\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Pre-Authorize card transaction\nPlease do get token step first to get token_id.\n<a href=\"https://api-docs.midtrans.com/#card-features-pre-authorization\">https://api-docs.midtrans.com/#card-features-pre-authorization</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"16b6d504-6d99-4f22-8500-fadb0ba85c73"},{"name":"GET transaction status","id":"0f18214d-ced0-4554-bcd9-68710d84dc62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/status","description":"<p>Get information status of a transaction with certain order_id</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","status"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f18214d-ced0-4554-bcd9-68710d84dc62"},{"name":"APPROVE transaction that suspected as fraud (challange status)","id":"118cd3f8-b4c8-414c-a7f5-6b660b62f3d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/approve","description":"<p>Approve a transaction with certain order_id which gets challenge status from Fraud Detection System</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","approve"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"118cd3f8-b4c8-414c-a7f5-6b660b62f3d9"},{"name":"DENY transaction that suspected as fraud (challange status)","id":"9792b471-e9bc-4c5a-a0a9-b83e858ec945","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/deny","description":"<p>Deny a transaction with certain order_id which gets challenge status from Fraud Detection System</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","deny"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9792b471-e9bc-4c5a-a0a9-b83e858ec945"},{"name":"CANCEL transaction","id":"77cfd132-7120-4766-99c1-f299494adad9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/cancel","description":"<p>Cancel a transaction with certain order_id. Cancelation can only be done before settlement process for credit card transaction</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","cancel"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77cfd132-7120-4766-99c1-f299494adad9"},{"name":"EXPIRE pending transaction","id":"4184a573-b3c4-4c96-8345-c3119bba1b8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/expire","description":"<p>Change order_id with pending status to be expired</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","expire"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4184a573-b3c4-4c96-8345-c3119bba1b8b"},{"name":"Refund transaction","id":"cc3d78a4-aa45-423e-895e-bb0e46c2065d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 5000,\n  \"reason\": \"Product is out of stock, payment is being refunded\"\n}"},"url":"https://api.sandbox.midtrans.com/v2/[INSERT-ORDER-ID]/refund","description":"<p>Refund a transaction with certain order_id. Refund can only be done after settlement process for credit card transaction</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","[INSERT-ORDER-ID]","refund"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc3d78a4-aa45-423e-895e-bb0e46c2065d"}],"id":"06b6b022-1eb6-4bcc-8191-4e3a4e8707cc","_postman_id":"06b6b022-1eb6-4bcc-8191-4e3a4e8707cc","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}},{"name":"2.1 Core API Sandbox - Additional Feature","item":[{"name":"Core API Custom allowed CC BIN number","id":"b1a7e15c-d478-4664-b803-8d94ae29f95e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-1-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"bins\": [\"48111111\", \"bni\", \"5\"]\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to specify only accept payment from specific Credit Card BIN number or issuing bank\nPlease do get token step first to get token_id.\n<a href=\"https://api-docs.midtrans.com/#card-features-bin-promo\">https://api-docs.midtrans.com/#card-features-bin-promo</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1a7e15c-d478-4664-b803-8d94ae29f95e"},{"name":"Core API Credit Card Installment","id":"ce1bd366-2c50-4177-a802-93afa83a794d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-2-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"installment_term\": 12\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to allow credit card installment\nPlease do get token step first to get token_id.\n<a href=\"https://api-docs.midtrans.com/#card-features-installment\">https://api-docs.midtrans.com/#card-features-installment</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce1bd366-2c50-4177-a802-93afa83a794d"},{"name":"Core API Credit Card Pre-Authorize transaction","id":"88ea89af-f876-437d-9d70-b17a32785071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-3-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"type\": \"authorize\" \n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to do pre-authorize transaction\n<a href=\"https://api-docs.midtrans.com/#card-features-pre-authorization\">https://api-docs.midtrans.com/#card-features-pre-authorization</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"88ea89af-f876-437d-9d70-b17a32785071"},{"name":"Core API Credit Card One Click 1st Transaction","id":"7ab33232-e1c3-4591-aeb3-b597811866ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-4-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"save_token_id\": true \n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to do one click transaction on 1st transaction\n<a href=\"https://api-docs.midtrans.com/#card-features-one-click\">https://api-docs.midtrans.com/#card-features-one-click</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ab33232-e1c3-4591-aeb3-b597811866ab"},{"name":"Core API Credit Card One Click following Transaction","id":"65ee05bd-3bac-4002-b2ba-e78e5bc349c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-5-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from saved_token_id >\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to do one click transaction on next transaction\n<a href=\"https://api-docs.midtrans.com/#card-features-one-click\">https://api-docs.midtrans.com/#card-features-one-click</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"65ee05bd-3bac-4002-b2ba-e78e5bc349c8"},{"name":"Core API Credit Card Two Click following Transaction","id":"6e6df70d-d9c5-46c2-abad-17ad7000cb5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-6-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from saved_token_id >\",\n    \"save_token_id\": true \n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to do two click transaction on 1st transaction\n<a href=\"https://api-docs.midtrans.com/#card-features-two-click\">https://api-docs.midtrans.com/#card-features-two-click</a></p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e6df70d-d9c5-46c2-abad-17ad7000cb5d"},{"name":"Core API Credit Card Custom Acquiring Bank","id":"5b751a72-6920-4a6c-b409-48e791e39f77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-7-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"bank\": \"mandiri\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to specify which acquiring bank you want to use\nPlease do get token step first to get token_id.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b751a72-6920-4a6c-b409-48e791e39f77"},{"name":"Core API Credit Card Custom Acquiring Bank & channel","id":"229737d1-db23-4b96-9e42-88c234926ba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"credit_card\",\n  \"transaction_details\": {\n    \"order_id\": \"order102-8-1779023228\",\n    \"gross_amount\": 100000\n  },\n  \"credit_card\": {\n    \"token_id\": \"< Token ID from Get Token Step >\",\n    \"channel\": \"migs\",\n    \"bank\": \"bca\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Charge credit card transaction with additional parameter to specify which acquiring bank &amp; credit card channel you want to use\nPlease do get token step first to get token_id.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"229737d1-db23-4b96-9e42-88c234926ba7"},{"name":"Core API Custom Expiry","id":"621d2b2a-3f32-43cb-9c8c-f4a77f708f07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"bank_transfer\",\n    \"bank_transfer\": {\n    \"bank\": \"permata\"\n  },\n  \"transaction_details\": {\n    \"order_id\": \"order-102-9-1779023228\",\n    \"gross_amount\": 44000\n  },\n  \"customer_details\": {\n        \"email\": \"test@Midtrans.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n  \"custom_expiry\": {\n    \"order_time\": \"2017-04-13 18:11:08 +0700\",\n    \"expiry_duration\": 180,\n    \"unit\": \"minute\"\n  }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Request charge transaction with specific time limit of transaction to be available for payment</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"621d2b2a-3f32-43cb-9c8c-f4a77f708f07"},{"name":"Core API Custom Field","id":"2504a564-6b82-4280-86f5-339e3290dcd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_type\": \"bank_transfer\",\n    \"bank_transfer\": {\n    \"bank\": \"permata\"\n  },\n  \"transaction_details\": {\n    \"order_id\": \"order-102-10-1779023228\",\n    \"gross_amount\": 44000\n  },\n  \"customer_details\": {\n        \"email\": \"test@Midtrans.com\",\n        \"first_name\": \"budi\",\n        \"last_name\": \"utomo\",\n        \"phone\": \"+6281 1234 1234\"\n    },\n  \"custom_field1\": \"Your custom notes 1 (max 256 char)\",\n  \"custom_field2\": \"Your custom notes 2 (max 256 char)\",\n  \"custom_field3\": \"Your custom notes 3 (max 256 char)\"\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Request charge transaction with additional parameter to input your custom note/message</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2504a564-6b82-4280-86f5-339e3290dcd1"}],"id":"ba3a3e6e-d98a-4fad-a54c-0823cde1a0c5","_postman_id":"ba3a3e6e-d98a-4fad-a54c-0823cde1a0c5","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}},{"name":"2.2 Core API Credit Card Recurring Flow","item":[{"name":"Step 1 - Register Card","id":"d94e1344-11b7-4b36-9c8d-6f09b4246e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/card/register?card_number=5211 1111 1111 1117&card_exp_month=12&card_exp_year=2021&client_key=<YOUR CLIENT KEY HERE>","description":"<p>IMPORTANT: This step should be done via <code>midtrans.min.js</code> in Frontend, unless you have PCI DSS certification. Else, you are in risk of card data breach!\nSend Card data and retrieve Midtrans' long-term Card token_id, Card token_id will be used for future transactions.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","card","register"],"host":["api","sandbox","midtrans","com"],"query":[{"key":"card_number","value":"5211 1111 1111 1117"},{"key":"card_exp_month","value":"12"},{"key":"card_exp_year","value":"2021"},{"key":"client_key","value":"<YOUR CLIENT KEY HERE>"}],"variable":[]}},"response":[],"_postman_id":"d94e1344-11b7-4b36-9c8d-6f09b4246e3e"},{"name":"Step 2 - Charge non 3DS","id":"8576942a-66bc-4083-abc2-6560428647bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"credit_card\",\n    \"credit_card\":{\n    \t\"token_id\": \"/* Card token id retrieved from step 1*/\"\t\n    },\n    \"transaction_details\": {\n        \"order_id\": \"Order-123-1779023228\",\n        \"gross_amount\": 10000\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Send transaction data and charge the card.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8576942a-66bc-4083-abc2-6560428647bd"}],"id":"28815655-7568-45c5-98fe-d419efa2313b","_postman_id":"28815655-7568-45c5-98fe-d419efa2313b","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}},{"name":"2.3 Core API Credit Card Saved Card 3DS Transaction Flow","item":[{"name":"Step 1 - 1st transaction Retrieve one-time Card token","id":"815593c6-08c4-4de5-8a21-709167e1a5dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/token?client_key=<YOUR CLIENT KEY HERE>&card_number=5211111111111117&card_cvv=123&card_exp_month=12&card_exp_year=2021","description":"<p>IMPORTANT: This step should be done via <code>midtrans.min.js</code> in Frontend, unless you have PCI DSS certification. Else, you are in risk of card data breach!</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","token"],"host":["api","sandbox","midtrans","com"],"query":[{"key":"client_key","value":"<YOUR CLIENT KEY HERE>"},{"key":"card_number","value":"5211111111111117"},{"key":"card_cvv","value":"123"},{"key":"card_exp_month","value":"12"},{"key":"card_exp_year","value":"2021"}],"variable":[]}},"response":[],"_postman_id":"815593c6-08c4-4de5-8a21-709167e1a5dd"},{"name":"Step 2 - 1st transaction Charge 3DS","id":"b3c07e81-4241-4c9c-91ef-6df49520bf69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"credit_card\",\n    \"credit_card\":{\n    \t\"token_id\": \"/* Card token id retrieved from step 2*/\",\n    \t\"authentication\": true,\n    \t\"save_token_id\": true\n    },\n    \"transaction_details\": {\n        \"order_id\": \"Order-123-1779023228\",\n        \"gross_amount\": 10000\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Send transaction data and charge the card. On 3DS authenticate frontend callback (and backend Notification) you will get <code>saved_token_id</code> that can be used for next transaction.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3c07e81-4241-4c9c-91ef-6df49520bf69"},{"name":"Step 3 - Next Transaction Retrieve one-time Card token","id":"ffc84bd4-0db5-4fca-95fa-a81b7634d534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.sandbox.midtrans.com/v2/token?client_key=<YOUR CLIENT KEY HERE>&token_id=<saved_token_id here>&card_cvv=123","description":"<p>IMPORTANT: This step should be done via <code>midtrans.min.js</code> in Frontend, unless you have PCI DSS certification. Else, you are in risk of card data breach!</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","token"],"host":["api","sandbox","midtrans","com"],"query":[{"key":"client_key","value":"<YOUR CLIENT KEY HERE>"},{"description":{"content":"<p>Retrieved from Step 2 3DS authenticate frontend callback (and backend Notification)</p>\n","type":"text/plain"},"key":"token_id","value":"<saved_token_id here>"},{"key":"card_cvv","value":"123"}],"variable":[]}},"response":[],"_postman_id":"ffc84bd4-0db5-4fca-95fa-a81b7634d534"},{"name":"Step 4 - Next transaction Charge 3DS","id":"85d55096-edfd-4a9d-a240-d5d07c955023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_type\": \"credit_card\",\n    \"credit_card\":{\n    \t\"token_id\": \"/* Card token id retrieved from step 3*/\",\n    \t\"authentication\": true,\n    \t\"save_token_id\": true\n    },\n    \"transaction_details\": {\n        \"order_id\": \"Order-123-1779023228\",\n        \"gross_amount\": 10000\n    }\n}"},"url":"https://api.sandbox.midtrans.com/v2/charge","description":"<p>Send transaction data and charge the card.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}},"urlObject":{"protocol":"https","path":["v2","charge"],"host":["api","sandbox","midtrans","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85d55096-edfd-4a9d-a240-d5d07c955023"}],"id":"3087890c-9ee2-4492-9d39-8fd45c7fef68","event":[{"listen":"prerequest","script":{"id":"78a2efc2-9778-4126-8ac4-ff265c998276","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7d494266-9303-47d6-a415-1065cf7c99df","type":"text/javascript","exec":[""]}}],"_postman_id":"3087890c-9ee2-4492-9d39-8fd45c7fef68","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]},"isInherited":true,"source":{"_postman_id":"71084319-069c-4587-80dc-db6ca37a0a0b","id":"71084319-069c-4587-80dc-db6ca37a0a0b","name":"Midtrans Payment API","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"}]}},"event":[{"listen":"prerequest","script":{"id":"e6ff1e7d-94aa-40a1-b3bb-3ce318353288","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c2f00e42-019d-4a20-846d-b326bf4be3a4","type":"text/javascript","exec":[""]}}]}