· 6 years ago · Mar 21, 2020, 12:20 AM
1{
2 "info": {
3 "_postman_id": "1e653dba-ef5b-40df-87f2-cfb9c335501f",
4 "name": "MercadoPago",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6 },
7 "item": [
8 {
9 "name": "1.1 - CRIAR TOKEN",
10 "request": {
11 "method": "POST",
12 "header": [
13 {
14 "key": "Content-Type",
15 "value": "application/json"
16 }
17 ],
18 "body": {
19 "mode": "raw",
20 "raw": "{\n\t\"card_number\": \"4235647728025682\",\n\t\"expiration_year\": 2023,\n\t\"expiration_month\": 06,\n\t\"security_code\": \"311\",\n\t\"cardholder\": {\n\t \"identification\":{\n\t \"type\": \"CPF\",\n\t \"number\": \"19119119100\"\n\t },\n\t \"name\": \"Nome do cartao\"\n\t}\n}",
21 "options": {
22 "raw": {}
23 }
24 },
25 "url": {
26 "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=PUBLIC_KEY",
27 "protocol": "https",
28 "host": [
29 "api",
30 "mercadopago",
31 "com"
32 ],
33 "path": [
34 "v1",
35 "card_tokens"
36 ],
37 "query": [
38 {
39 "key": "public_key",
40 "value": "PUBLIC_KEY"
41 }
42 ]
43 }
44 },
45 "response": []
46 },
47 {
48 "name": "1.2 - CRIAR PAGAMENTO CARTAO SIMPLES",
49 "request": {
50 "method": "POST",
51 "header": [
52 {
53 "key": "Content-Type",
54 "value": "application/json"
55 }
56 ],
57 "body": {
58 "mode": "raw",
59 "raw": "{\n \"token\": \"efe0d821ba140c6e289b0bfd13041c22\",\n \"transaction_amount\": 121.00,\n \"description\":\"Teste de assinatura\",\n \"external_reference\":\"Teste-1\",\n \"payment_method_id\":\"visa\",\n \"installments\": 1,\n \"payer\": {\n \"email\": \"gerando@gmail.com\",\n\t \"first_name\": \"Geraldo\",\n\t \"last_name\" : \"Luíz\",\n\t \"identification\": {\n\t\t \"type\": \"CPF\",\n\t\t \"number\": \"13525394462\"\n\t },\n\t \"address\": {\n\t \"zip_code\": \"55020810\",\n\t \"street_name\": \"Rua goiás\",\n\t \"street_number\": \"101\"\n\t }\n }\n}",
60 "options": {
61 "raw": {}
62 }
63 },
64 "url": {
65 "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
66 "protocol": "https",
67 "host": [
68 "api",
69 "mercadopago",
70 "com"
71 ],
72 "path": [
73 "v1",
74 "payments"
75 ],
76 "query": [
77 {
78 "key": "access_token",
79 "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
80 }
81 ]
82 }
83 },
84 "response": []
85 },
86 {
87 "name": "2.1 - CRIAR CLIENTE",
88 "request": {
89 "method": "POST",
90 "header": [
91 {
92 "key": "Content-Type",
93 "name": "Content-Type",
94 "type": "text",
95 "value": "application/json"
96 }
97 ],
98 "body": {
99 "mode": "raw",
100 "raw": "{\n\t\"email\":\"test_user_47425368@testuser.com\",\n\t\"first_name\":\"payer\",\n\t\"last_name\":\"teste\",\n\t\"phone\":{\n\t\t\"area_code\":\"011\",\n\t\t\"number\":\"911111111\"\n\t},\n\t\"identification\":{\n\t\t\"type\":\"CPF\",\n\t\t\"number\":\"19119119100\"\n\t}\n}\n",
101 "options": {
102 "raw": {}
103 }
104 },
105 "url": {
106 "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
107 "protocol": "https",
108 "host": [
109 "api",
110 "mercadopago",
111 "com"
112 ],
113 "path": [
114 "v1",
115 "customers"
116 ],
117 "query": [
118 {
119 "key": "access_token",
120 "value": "ACCESS_TOKEN"
121 }
122 ]
123 }
124 },
125 "response": []
126 },
127 {
128 "name": "2.3 - ASSOCIAR CARTAO AO CLIENTE",
129 "request": {
130 "method": "POST",
131 "header": [
132 {
133 "key": "Content-Type",
134 "name": "Content-Type",
135 "value": "application/json",
136 "type": "text"
137 }
138 ],
139 "body": {
140 "mode": "raw",
141 "raw": "{\n\t\"token\":\"b438bd024ad3138ea4d9eee457e9b140\"\n}\n",
142 "options": {
143 "raw": {}
144 }
145 },
146 "url": {
147 "raw": "https://api.mercadopago.com/v1/customers/462900062-SzzXKcTHKEwR8R/cards?access_token=ACCESS_TOKEN",
148 "protocol": "https",
149 "host": [
150 "api",
151 "mercadopago",
152 "com"
153 ],
154 "path": [
155 "v1",
156 "customers",
157 "462900062-SzzXKcTHKEwR8R",
158 "cards"
159 ],
160 "query": [
161 {
162 "key": "access_token",
163 "value": "ACCESS_TOKEN"
164 }
165 ]
166 }
167 },
168 "response": []
169 },
170 {
171 "name": "2.4 - GERAR NOVO TOKEN",
172 "request": {
173 "method": "POST",
174 "header": [
175 {
176 "key": "Content-Type",
177 "name": "Content-Type",
178 "value": "application/json",
179 "type": "text"
180 }
181 ],
182 "body": {
183 "mode": "raw",
184 "raw": "{ \n\t\"card_id\":\"8747018861\"\n}\n",
185 "options": {
186 "raw": {}
187 }
188 },
189 "url": {
190 "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=ACCESS_TOKEN",
191 "protocol": "https",
192 "host": [
193 "api",
194 "mercadopago",
195 "com"
196 ],
197 "path": [
198 "v1",
199 "card_tokens"
200 ],
201 "query": [
202 {
203 "key": "public_key",
204 "value": "ACCESS_TOKEN"
205 }
206 ]
207 }
208 },
209 "response": []
210 },
211 {
212 "name": "Pagamento recorrente",
213 "request": {
214 "method": "POST",
215 "header": [
216 {
217 "key": "Content-Type",
218 "value": "application/json"
219 }
220 ],
221 "body": {
222 "mode": "raw",
223 "raw": "{\n \"token\": \"efe0d821ba140c6e289b0bfd13041c22\",\n \"transaction_amount\": 121.00,\n \"description\":\"Teste de assinatura\",\n \"external_reference\":\"Teste-1\",\n \"payment_method_id\":\"visa\",\n \"installments\": 1,\n \"payer\": {\n \"email\": \"gerando@gmail.com\",\n\t \"first_name\": \"Geraldo\",\n\t \"last_name\" : \"Luíz\",\n\t \"identification\": {\n\t\t \"type\": \"CPF\",\n\t\t \"number\": \"13525394462\"\n\t },\n\t \"address\": {\n\t \"zip_code\": \"55020810\",\n\t \"street_name\": \"Rua goiás\",\n\t \"street_number\": \"101\"\n\t }\n }\n}",
224 "options": {
225 "raw": {}
226 }
227 },
228 "url": {
229 "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
230 "protocol": "https",
231 "host": [
232 "api",
233 "mercadopago",
234 "com"
235 ],
236 "path": [
237 "v1",
238 "payments"
239 ],
240 "query": [
241 {
242 "key": "access_token",
243 "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
244 }
245 ]
246 }
247 },
248 "response": []
249 },
250 {
251 "name": "Buscar cliente",
252 "request": {
253 "method": "POST",
254 "header": [
255 {
256 "key": "Content-Type",
257 "name": "Content-Type",
258 "type": "text",
259 "value": "application/json"
260 }
261 ],
262 "body": {
263 "mode": "raw",
264 "raw": "{\n\t\"email\":\"test_user_47425368@testuser.com\",\n\t\"first_name\":\"payer\",\n\t\"last_name\":\"teste\",\n\t\"phone\":{\n\t\t\"area_code\":\"011\",\n\t\t\"number\":\"911111111\"\n\t},\n\t\"identification\":{\n\t\t\"type\":\"CPF\",\n\t\t\"number\":\"19119119100\"\n\t}\n}\n",
265 "options": {
266 "raw": {}
267 }
268 },
269 "url": {
270 "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
271 "protocol": "https",
272 "host": [
273 "api",
274 "mercadopago",
275 "com"
276 ],
277 "path": [
278 "v1",
279 "customers"
280 ],
281 "query": [
282 {
283 "key": "access_token",
284 "value": "ACCESS_TOKEN"
285 }
286 ]
287 }
288 },
289 "response": []
290 }
291 ],
292 "protocolProfileBehavior": {}
293}