1 | { |
---|
2 | "info": { |
---|
3 | "_postman_id": "fb36f207-048e-4881-9779-6d97b116408f", |
---|
4 | "name": "SoloPress", |
---|
5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
---|
6 | }, |
---|
7 | "item": [ |
---|
8 | { |
---|
9 | "_postman_id": "8a94e0cb-7f92-456a-a114-310e33eef1c7", |
---|
10 | "name": "Add order", |
---|
11 | "event": [ |
---|
12 | { |
---|
13 | "listen": "test", |
---|
14 | "script": { |
---|
15 | "id": "85ec0942-cecb-48c5-8ad7-261d0dddca2c", |
---|
16 | "type": "text/javascript", |
---|
17 | "exec": [ |
---|
18 | "pm.test(\"Order created\", function () {", |
---|
19 | " pm.expect(pm.response.text()).to.include(\"Operation successful\");", |
---|
20 | "});" |
---|
21 | ] |
---|
22 | } |
---|
23 | } |
---|
24 | ], |
---|
25 | "request": { |
---|
26 | "method": "POST", |
---|
27 | "header": [ |
---|
28 | { |
---|
29 | "key": "Content-Type", |
---|
30 | "value": "application/x-www-form-urlencoded" |
---|
31 | } |
---|
32 | ], |
---|
33 | "body": { |
---|
34 | "mode": "raw", |
---|
35 | "raw": "-db=Orders&WebOrderNo=123&OrderDate=05/05/2018&CompanyName=Test%20Company&Email=fred@msdev.co.uk&ContactName=Fred%20Spoon&CustAddress=123%20Some%20Road&CustAddress2=Suburb&CustAddress3=&CustTownCity=City&CustCounty=Hampshire&CustPostcode=SO45%203RJ&DeliveryContactName=Mary%20Poppins&DeliveryBuildingType=Big&DeliveryAddress=123%20Some%20Road&DeliveryAddress2=Suburb&DeliveryAddress3=&DeliveryTownCity=City&DeliveryCounty=Hampshire&DeliveryPostcode=SO45%203RJ&Telephone=123-456-7890&DeliveryCharge=23.56&TotalOrderValue=123.56&PaymentType=card&PaymentStatus=Paid&WebCustomerID=123&Notes=Some%20Note&-new&CustSMS=234-567-8901&DeliveryCompanyName=DPD&DeliveryEmail=someone@dpd.com&DeliverySMS=222-333-4444&DeliveryNotes=Some%20delivery%20note&InvoiceAddress=123%20Some%20Road&InvoiceAddress2=Suburb&InvoiceAddress3=&InvoiceTownCity=City&InvoiceCounty=Hampshire&InvoicePostcode=SO45%203RJ&InvoiceCompanyName=Test%20Company&InvoiceContactName=Mary%20Poppins&InvoiceEmail=mary@somewhere.com&InvoiceSMS=444-555-6666&InvoiceNotes=Invoice%20notes&DeliveryVAT=2.35&FilemakerCustomerID=333&OBCOriginator=23&MOTOPayment=true&MOTOUser=Fred&UserType=23&SalesPersonEmail=sales@somewhere.com&ClientPO=233&WebQuoteID=12&CustTitle=Sir&CustFirstName=Fred&CustLastName=Spoon&DelContactTitle=Sir&DelContactFirstName=Fred&DelContactLastName=Spoon&" |
---|
36 | }, |
---|
37 | "url": { |
---|
38 | "raw": "https://stagingpayment.solopress.com/?/webform/create/order/cb71f1c2e358409f6f4536eb33eba27e", |
---|
39 | "protocol": "https", |
---|
40 | "host": [ |
---|
41 | "stagingpayment", |
---|
42 | "solopress", |
---|
43 | "com" |
---|
44 | ], |
---|
45 | "path": [ |
---|
46 | "" |
---|
47 | ], |
---|
48 | "query": [ |
---|
49 | { |
---|
50 | "key": "/webform/create/order/cb71f1c2e358409f6f4536eb33eba27e", |
---|
51 | "value": null |
---|
52 | } |
---|
53 | ] |
---|
54 | } |
---|
55 | }, |
---|
56 | "response": [] |
---|
57 | }, |
---|
58 | { |
---|
59 | "_postman_id": "f43c3cfb-43a7-4979-8856-a8993217ac18", |
---|
60 | "name": "Add order item", |
---|
61 | "event": [ |
---|
62 | { |
---|
63 | "listen": "test", |
---|
64 | "script": { |
---|
65 | "id": "4eb4ccd6-5711-459c-a3d5-99abebfbc522", |
---|
66 | "type": "text/javascript", |
---|
67 | "exec": [ |
---|
68 | "pm.test(\"Item created\", function () {", |
---|
69 | " pm.expect(pm.response.text()).to.include(\"Operation successful\");", |
---|
70 | "});" |
---|
71 | ] |
---|
72 | } |
---|
73 | } |
---|
74 | ], |
---|
75 | "request": { |
---|
76 | "method": "POST", |
---|
77 | "header": [ |
---|
78 | { |
---|
79 | "key": "Content-Type", |
---|
80 | "value": "application/x-www-form-urlencoded" |
---|
81 | } |
---|
82 | ], |
---|
83 | "body": { |
---|
84 | "mode": "raw", |
---|
85 | "raw": "-db=OrderLineItems&WebOrderNo=123&ProductCode=&ProductName=Flyers%20&%20Leaflets&Option=Finishing%20Options%20-->%20None%0Paper%20Type%20-->%20Silk%0Paper%20Weight%20-->%20170gsm%0Turnaround%20-->%20Next%20Day&Quantity=250&Size=A6%20(148%20x%20105%20mm)&Price=50.50&ArtworkRequired=No%20thank%20you&NoOfSides=2&Folded=No&ArtworkFolder=&VATAmount=2.75&VATRate=10&Machine=Speedmaster&Finishing=Trim&Material=170gsm%20Silk&ProductID=152&ArtworkComments=&ItemHeight=&ItemWidth=&LineItemNo=123-1&ArtworkCharge=0.00&ProofType=&ArtworkVATAmount=0&OriginalItemHeight=&OriginalItemWidth=&UniqueFoldingStyle=&AmendInstructions=&PrePressDesc=&PressDesc=&FinishingDesc=&Kinds=1&ProofingOption=" |
---|
86 | }, |
---|
87 | "url": { |
---|
88 | "raw": "https://stagingpayment.solopress.com/?/webform/create/orderitem/aa172210396567f5c491e4d99f782f28", |
---|
89 | "protocol": "https", |
---|
90 | "host": [ |
---|
91 | "stagingpayment", |
---|
92 | "solopress", |
---|
93 | "com" |
---|
94 | ], |
---|
95 | "path": [ |
---|
96 | "" |
---|
97 | ], |
---|
98 | "query": [ |
---|
99 | { |
---|
100 | "key": "/webform/create/orderitem/aa172210396567f5c491e4d99f782f28", |
---|
101 | "value": null |
---|
102 | } |
---|
103 | ] |
---|
104 | } |
---|
105 | }, |
---|
106 | "response": [] |
---|
107 | }, |
---|
108 | { |
---|
109 | "_postman_id": "500c7f89-d7ea-4c07-ac32-7ecc1cdbdd1f", |
---|
110 | "name": "Add order item address", |
---|
111 | "event": [ |
---|
112 | { |
---|
113 | "listen": "test", |
---|
114 | "script": { |
---|
115 | "id": "5855fbd5-b0cb-46e6-aaac-213d1ccaa342", |
---|
116 | "type": "text/javascript", |
---|
117 | "exec": [ |
---|
118 | "pm.test(\"Address created\", function () {", |
---|
119 | " pm.expect(pm.response.text()).to.include(\"Operation successful\");", |
---|
120 | "});" |
---|
121 | ] |
---|
122 | } |
---|
123 | } |
---|
124 | ], |
---|
125 | "request": { |
---|
126 | "method": "POST", |
---|
127 | "header": [ |
---|
128 | { |
---|
129 | "key": "Content-Type", |
---|
130 | "value": "application/x-www-form-urlencoded" |
---|
131 | } |
---|
132 | ], |
---|
133 | "body": { |
---|
134 | "mode": "raw", |
---|
135 | "raw": "Address=123%20Some%20Road&Address2=&Address3=&CompanyName=Test%20Company&ContactFirstName=Frederic&ContactLastName=Spooner&ContactName=Frederic%20Spooner&ContactTitle=Dr&County=Hampshire&DeliveryDate=03/03/2019&Courier=&DespatchDate=&Email=fred@msdev.co.uk&LineItemNo=123-1&Notes=&Postcode=SP10%3EL&Quantity=250&Service=&ServiceCode=&SMS=&TownCity=Andover&Phone=123%20456%207890&DespatchToday=yes" |
---|
136 | }, |
---|
137 | "url": { |
---|
138 | "raw": "https://stagingpayment.solopress.com/?/webform/create/orderitemdeliveryaddress/78cadf7d6d7598e2d97058e873e9a034", |
---|
139 | "protocol": "https", |
---|
140 | "host": [ |
---|
141 | "stagingpayment", |
---|
142 | "solopress", |
---|
143 | "com" |
---|
144 | ], |
---|
145 | "path": [ |
---|
146 | "" |
---|
147 | ], |
---|
148 | "query": [ |
---|
149 | { |
---|
150 | "key": "/webform/create/orderitemdeliveryaddress/78cadf7d6d7598e2d97058e873e9a034", |
---|
151 | "value": null |
---|
152 | } |
---|
153 | ] |
---|
154 | } |
---|
155 | }, |
---|
156 | "response": [] |
---|
157 | } |
---|
158 | ] |
---|
159 | } |
---|