{"info":{"_postman_id":"02a4457e-8000-4586-8e16-3001293f3fad","name":"Magento 2  Payment Fee","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3709944","collectionId":"02a4457e-8000-4586-8e16-3001293f3fad","publishedId":"2sB3Hhu3fv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-09-02T06:00:25.000Z"},"item":[{"name":"RestAPI","item":[{"name":"Customer Order","id":"8994d193-e976-4bbc-a46b-9990523b79b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{baseurl}}/rest/all/V1/orders/22","urlObject":{"path":["rest","all","V1","orders","22"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8994d193-e976-4bbc-a46b-9990523b79b7"},{"name":"Customer Invoice","id":"a57e1c73-4e70-4859-b6f1-2ddb2b4b18b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{baseurl}}/rest/all/V1/invoices/14","urlObject":{"path":["rest","all","V1","invoices","14"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a57e1c73-4e70-4859-b6f1-2ddb2b4b18b9"},{"name":"Customer Creditmemo","id":"95518770-b1a6-4d65-814f-facccbd4a5b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{baseurl}}/rest/V1/creditmemo/5","urlObject":{"path":["rest","V1","creditmemo","5"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"95518770-b1a6-4d65-814f-facccbd4a5b5"},{"name":"Add Payment Fee","id":"f2de965f-b63f-423f-a363-4df199b6aa0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"quoteid\": 39,\n  \"storeid\": 1\n}"},"url":"{{baseurl}}/rest/all/V1/paymentfee/addpaymentfee","urlObject":{"path":["rest","all","V1","paymentfee","addpaymentfee"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2de965f-b63f-423f-a363-4df199b6aa0c"}],"id":"cfeff030-3b0f-40b7-8236-07f88682fdad","_postman_id":"cfeff030-3b0f-40b7-8236-07f88682fdad","description":""},{"name":"GraphQL","item":[{"name":"Customer Order","id":"4b0a1621-0103-431c-8767-d41844a9b68e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\n  customerOrders {\n    items {\n      order_number\n      id\n      created_at\n      grand_total\n      status\n      mc_paymentfee_amount\n      base_mc_paymentfee_amount\n      mc_paymentfee_tax_amount\n      base_mc_paymentfee_tax_amount\n    }\n  }\n}","variables":""}},"url":"{{baseurl}}/graphql","urlObject":{"path":["graphql"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b0a1621-0103-431c-8767-d41844a9b68e"},{"name":"Customer Invoice","id":"ec4be076-46af-4ed8-b510-15fc954c2e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\n  customerOrders {\n    items {\n        invoices{\n            id\n            number\n            mc_paymentfee_amount\n            base_mc_paymentfee_amount\n            mc_paymentfee_tax_amount\n            base_mc_paymentfee_tax_amount\n        }\n     \n    }\n  }\n}","variables":""}},"url":"{{base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec4be076-46af-4ed8-b510-15fc954c2e79"},{"name":"Customer Creditmemo","id":"a8464d65-a751-4c6a-8355-542edd60f050","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\n  customerOrders {\n    items {\n        credit_memos{\n            id\n            number\n            mc_paymentfee_amount\n            base_mc_paymentfee_amount\n            mc_paymentfee_tax_amount\n            base_mc_paymentfee_tax_amount\n        }\n    }\n  }\n}","variables":""}},"url":"{{base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8464d65-a751-4c6a-8355-542edd60f050"},{"name":"Add Payment Fee","id":"6548466b-801c-4912-8967-155f2833961e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation{\n\taddPaymentFee(\n\t\tquoteid: 39\n        storeid:1\n        )\n\t{\n\t\tsuccess\n        paymentfee_title\n        mc_paymentfee_amount\n        mc_paymentfee_tax_amount\n        paymentfee_tax_title\n        paymentfee_excl_title\n        paymentfee_incl_title\n        mc_paymentfee_incl_amount\n        message\n\t}\n}","variables":""}},"url":"{{baseurl}}/graphql","urlObject":{"path":["graphql"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6548466b-801c-4912-8967-155f2833961e"}],"id":"7e70a8bf-f458-42d6-b371-67a6a730c269","_postman_id":"7e70a8bf-f458-42d6-b371-67a6a730c269","description":""}]}