Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "info": {
- "_postman_id": "1e653dba-ef5b-40df-87f2-cfb9c335501f",
- "name": "MercadoPago",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "1.1 - CRIAR TOKEN",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=PUBLIC_KEY",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "card_tokens"
- ],
- "query": [
- {
- "key": "public_key",
- "value": "PUBLIC_KEY"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "1.2 - CRIAR PAGAMENTO CARTAO SIMPLES",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}",
- "options": {
- "raw": {}
- }
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "payments"
- ],
- "query": [
- {
- "key": "access_token",
- "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "2.1 - CRIAR CLIENTE",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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"
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "customers"
- ],
- "query": [
- {
- "key": "access_token",
- "value": "ACCESS_TOKEN"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "2.3 - ASSOCIAR CARTAO AO CLIENTE",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "value": "application/json",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\t\"token\":\"b438bd024ad3138ea4d9eee457e9b140\"\n}\n"
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/customers/462900062-SzzXKcTHKEwR8R/cards?access_token=ACCESS_TOKEN",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "customers",
- "462900062-SzzXKcTHKEwR8R",
- "cards"
- ],
- "query": [
- {
- "key": "access_token",
- "value": "ACCESS_TOKEN"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "2.4 - GERAR NOVO TOKEN",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "value": "application/json",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{ \n\t\"card_id\":\"8747018861\"\n}\n"
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/card_tokens?public_key=ACCESS_TOKEN",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "card_tokens"
- ],
- "query": [
- {
- "key": "public_key",
- "value": "ACCESS_TOKEN"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "Pagamento recorrente",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}",
- "options": {
- "raw": {}
- }
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/payments?access_token=TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "payments"
- ],
- "query": [
- {
- "key": "access_token",
- "value": "TEST-7735614433926832-050909-9def50d2a7c1e9f14049cfde6feb8660-183837808"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "Buscar cliente",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "type": "text",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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",
- "options": {
- "raw": {}
- }
- },
- "url": {
- "raw": "https://api.mercadopago.com/v1/customers?access_token=ACCESS_TOKEN",
- "protocol": "https",
- "host": [
- "api",
- "mercadopago",
- "com"
- ],
- "path": [
- "v1",
- "customers"
- ],
- "query": [
- {
- "key": "access_token",
- "value": "ACCESS_TOKEN"
- }
- ]
- }
- },
- "response": []
- }
- ],
- "protocolProfileBehavior": {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement