Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Created November 18, 2016 11:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterjaap/696f4cfbc947af0c2bfd214c4a358cb4 to your computer and use it in GitHub Desktop.
Save peterjaap/696f4cfbc947af0c2bfd214c4a358cb4 to your computer and use it in GitHub Desktop.
Postman request collection for Magento 1 SOAP v2
{
"id": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"name": "ExampleShop",
"description": "",
"order": [
"2658e264-981e-4786-7f05-88f3fce0f4e6",
"8c81cf7c-e188-b8bd-0970-a96aa3a8d6a3",
"a1e3c72f-6fde-d46b-7896-e1627f7e5f64",
"c050284d-14bd-bdd6-256e-30111f354ef6",
"3b0ac9f0-3544-4797-fd4f-56b436ecd029",
"950c8192-9490-d411-0e79-9032ce3d37dc",
"c9c46e01-a4b3-7934-7352-29921a7bea4b",
"c2da9f2e-e4ae-9c75-e97c-486bb8feaec9",
"01791c2e-a334-cf3a-3bf6-9bbe033d739b",
"040e1cea-f69b-0950-d95d-d643e9ca7f0d",
"cb16641b-e0e1-a2c8-9359-c628c42f1992",
"6514ca46-178a-364d-bbe2-5d17cfd517cc"
],
"folders": [],
"timestamp": 1479114263974,
"owner": "1244200",
"public": false,
"requests": [
{
"id": "01791c2e-a334-cf3a-3bf6-9bbe033d739b",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"cartId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:shoppingCartCreateResponse']['quoteId']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115794253,
"name": "shoppingCartPaymentList",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartPaymentList>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n </shoppingCartPaymentList>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "040e1cea-f69b-0950-d95d-d643e9ca7f0d",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"cartId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:shoppingCartCreateResponse']['quoteId']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479120154922,
"name": "shoppingCartPaymentMethod",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartPaymentMethod>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<method>\n \t\t<paymentMethod>\n \t\t\t<method>paymill_creditcard</method>\n \t\t</paymentMethod>\n \t</method>\n </shoppingCartPaymentMethod>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "2658e264-981e-4786-7f05-88f3fce0f4e6",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"sessionId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:loginResponse']['loginReturn']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479114277596,
"name": "Login call",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <login>\n <username>username</username>\n <apiKey>yourapikey</apiKey>\n </login>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "3b0ac9f0-3544-4797-fd4f-56b436ecd029",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479116054952,
"name": "shoppingCartProductAdd",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartProductAdd>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<products>\n \t\t<productsData>\n \t\t\t<sku>92345678995</sku>\n \t\t\t<qty>10</qty>\n \t\t</productsData>\n \t</products>\n </shoppingCartProductAdd>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "6514ca46-178a-364d-bbe2-5d17cfd517cc",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"pathVariables": {},
"preRequestScript": null,
"method": "POST",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"data": [],
"dataMode": "raw",
"name": "catalogProductInfo",
"description": "",
"descriptionFormat": "html",
"time": 1479114275693,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <catalogProductInfo>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<productId>98</productId>\n </catalogProductInfo>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "8c81cf7c-e188-b8bd-0970-a96aa3a8d6a3",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"quoteId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:shoppingCartCreateResponse']['quoteId']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115896248,
"name": "shoppingCartCreate",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartCreate>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<storeId>1</storeId>\n </shoppingCartCreate>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "950c8192-9490-d411-0e79-9032ce3d37dc",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115923779,
"name": "shoppingCartInfo",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartInfo>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n </shoppingCartInfo>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "a1e3c72f-6fde-d46b-7896-e1627f7e5f64",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115957827,
"name": "shoppingCartCustomerSet",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartCustomerSet>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<customer>\n \t\t<customer_id>396</customer_id>\n \t\t<mode>customer</mode>\n \t</customer>\n </shoppingCartCustomerSet>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "c050284d-14bd-bdd6-256e-30111f354ef6",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115928737,
"name": "shoppingCartCustomerAddresses",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartCustomerAddresses>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<customer>\n \t\t<address>\n \t\t\t<mode>shipping</mode>\n \t\t\t<address_id>261</address_id>\n \t\t</address>\n \t\t<address>\n \t\t\t<mode>billing</mode>\n \t\t\t<address_id>261</address_id>\n \t\t</address>\n \t</customer>\t\t\n </shoppingCartCustomerAddresses>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "c2da9f2e-e4ae-9c75-e97c-486bb8feaec9",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"cartId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:shoppingCartCreateResponse']['quoteId']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479116694060,
"name": "shoppingCartShippingMethod",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartShippingMethod>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<method>tablerate_bestway</method>\n </shoppingCartShippingMethod>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "c9c46e01-a4b3-7934-7352-29921a7bea4b",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var responseJson = xml2Json(responseBody);\npostman.setEnvironmentVariable(\"cartId\", responseJson['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:shoppingCartCreateResponse']['quoteId']['_']);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479116645273,
"name": "shoppingCartShippingList",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartShippingList>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n </shoppingCartShippingList>\n </soapenv:Body>\n</soapenv:Envelope>"
},
{
"id": "cb16641b-e0e1-a2c8-9359-c628c42f1992",
"headers": "Content-Type: text/xml\n",
"url": "https://www.example.com/api/v2_soap/",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1479115926019,
"name": "shoppingCartProductRemove",
"description": "",
"collectionId": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"responses": [],
"rawModeData": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"http://www.example.com/api/soap_v2//\">\n <soapenv:Body>\n <shoppingCartProductRemove>\n \t<sessionId>{{sessionId}}</sessionId>\n \t<quoteId>{{quoteId}}</quoteId>\n \t<products>\n \t\t<productsData>\n \t\t\t<sku>92345678995</sku>\n \t\t\t<qty>1</qty>\n \t\t</productsData>\n \t</products>\n </shoppingCartProductRemove>\n </soapenv:Body>\n</soapenv:Envelope>"
}
]
}
@xelber
Copy link

xelber commented May 29, 2018

Thanks, helped me get up and running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment