· 6 years ago · Apr 08, 2020, 08:30 PM
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 },
22 "url": {
23 "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=PUBLIC_KEY",
24 "protocol": "https",
25 "host": [
26 "api",
27 "mercadopago",
28 "com"
29 ],
30 "path": [
31 "v1",
32 "card_tokens"
33 ],
34 "query": [
35 {
36 "key": "public_key",
37 "value": "PUBLIC_KEY"
38 }
39 ]
40 }
41 },
42 "response": []
43 },
44 {
45 "name": "1.2 - CRIAR PAGAMENTO CARTAO SIMPLES",
46 "request": {
47 "method": "POST",
48 "header": [
49 {
50 "key": "Content-Type",
51 "value": "application/json"
52 }
53 ],
54 "body": {
55 "mode": "raw",
56 "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}",
57 "options": {
58 "raw": {}
59 }
60 },
61 "url": {
62 "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
63 "protocol": "https",
64 "host": [
65 "api",
66 "mercadopago",
67 "com"
68 ],
69 "path": [
70 "v1",
71 "payments"
72 ],
73 "query": [
74 {
75 "key": "access_token",
76 "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
77 }
78 ]
79 }
80 },
81 "response": []
82 },
83 {
84 "name": "2.1 - CRIAR CLIENTE",
85 "request": {
86 "method": "POST",
87 "header": [
88 {
89 "key": "Content-Type",
90 "name": "Content-Type",
91 "type": "text",
92 "value": "application/json"
93 }
94 ],
95 "body": {
96 "mode": "raw",
97 "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"
98 },
99 "url": {
100 "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
101 "protocol": "https",
102 "host": [
103 "api",
104 "mercadopago",
105 "com"
106 ],
107 "path": [
108 "v1",
109 "customers"
110 ],
111 "query": [
112 {
113 "key": "access_token",
114 "value": "ACCESS_TOKEN"
115 }
116 ]
117 }
118 },
119 "response": []
120 },
121 {
122 "name": "2.3 - ASSOCIAR CARTAO AO CLIENTE",
123 "request": {
124 "method": "POST",
125 "header": [
126 {
127 "key": "Content-Type",
128 "name": "Content-Type",
129 "value": "application/json",
130 "type": "text"
131 }
132 ],
133 "body": {
134 "mode": "raw",
135 "raw": "{\n\t\"token\":\"b438bd024ad3138ea4d9eee457e9b140\"\n}\n"
136 },
137 "url": {
138 "raw": "https://api.mercadopago.com/v1/customers/462900062-SzzXKcTHKEwR8R/cards?access_token=ACCESS_TOKEN",
139 "protocol": "https",
140 "host": [
141 "api",
142 "mercadopago",
143 "com"
144 ],
145 "path": [
146 "v1",
147 "customers",
148 "462900062-SzzXKcTHKEwR8R",
149 "cards"
150 ],
151 "query": [
152 {
153 "key": "access_token",
154 "value": "ACCESS_TOKEN"
155 }
156 ]
157 }
158 },
159 "response": []
160 },
161 {
162 "name": "2.4 - GERAR NOVO TOKEN",
163 "request": {
164 "method": "POST",
165 "header": [
166 {
167 "key": "Content-Type",
168 "name": "Content-Type",
169 "value": "application/json",
170 "type": "text"
171 }
172 ],
173 "body": {
174 "mode": "raw",
175 "raw": "{ \n\t\"card_id\":\"8747018861\"\n}\n"
176 },
177 "url": {
178 "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=ACCESS_TOKEN",
179 "protocol": "https",
180 "host": [
181 "api",
182 "mercadopago",
183 "com"
184 ],
185 "path": [
186 "v1",
187 "card_tokens"
188 ],
189 "query": [
190 {
191 "key": "public_key",
192 "value": "ACCESS_TOKEN"
193 }
194 ]
195 }
196 },
197 "response": []
198 },
199 {
200 "name": "Pagamento recorrente",
201 "request": {
202 "method": "POST",
203 "header": [
204 {
205 "key": "Content-Type",
206 "value": "application/json"
207 }
208 ],
209 "body": {
210 "mode": "raw",
211 "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}",
212 "options": {
213 "raw": {}
214 }
215 },
216 "url": {
217 "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
218 "protocol": "https",
219 "host": [
220 "api",
221 "mercadopago",
222 "com"
223 ],
224 "path": [
225 "v1",
226 "payments"
227 ],
228 "query": [
229 {
230 "key": "access_token",
231 "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
232 }
233 ]
234 }
235 },
236 "response": []
237 },
238 {
239 "name": "Buscar cliente",
240 "request": {
241 "method": "POST",
242 "header": [
243 {
244 "key": "Content-Type",
245 "name": "Content-Type",
246 "type": "text",
247 "value": "application/json"
248 }
249 ],
250 "body": {
251 "mode": "raw",
252 "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",
253 "options": {
254 "raw": {}
255 }
256 },
257 "url": {
258 "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
259 "protocol": "https",
260 "host": [
261 "api",
262 "mercadopago",
263 "com"
264 ],
265 "path": [
266 "v1",
267 "customers"
268 ],
269 "query": [
270 {
271 "key": "access_token",
272 "value": "ACCESS_TOKEN"
273 }
274 ]
275 }
276 },
277 "response": []
278 }
279 ],
280 "protocolProfileBehavior": {}
281}