{"info":{"_postman_id":"605e1ec1-928e-47cf-a99c-13b55fe2cd52","name":"Modelo de Aplicações","description":"<html><head></head><body><p>Esta collection permite que você faça todo o fluxo de autorização de aplicações.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13365079","collectionId":"605e1ec1-928e-47cf-a99c-13b55fe2cd52","publishedId":"TVYQ1Djm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-11-05T01:49:49.000Z"},"item":[{"name":"Sandbox","item":[{"name":"Solicitando autorização","id":"d27b5365-db3a-48ab-83e0-60fab80532c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/xml","type":"text"}],"body":{"mode":"raw","raw":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n<authorizationRequest>\r\n    <reference>REF1234</reference>\r\n    <permissions>\r\n        <code>CREATE_CHECKOUTS</code>\r\n        <code>RECEIVE_TRANSACTION_NOTIFICATIONS</code>\r\n        <code>SEARCH_TRANSACTIONS</code>\r\n        <code>MANAGE_PAYMENT_PRE_APPROVALS</code>\r\n        <code>DIRECT_PAYMENT</code>\r\n    </permissions>\r\n    <redirectURL>http://seusite.com.br/redirect</redirectURL>\r\n    <notificationURL>http://seusite.com.br/notification</notificationURL>\r\n</authorizationRequest>"},"url":"https://ws.sandbox.pagseguro.uol.com.br/v2/authorizations/request/?appId=INFORME_SEU_APPID&INFORME_SEU_APP_KEY","urlObject":{"protocol":"https","path":["v2","authorizations","request",""],"host":["ws","sandbox","pagseguro","uol","com","br"],"query":[{"key":"appId","value":"INFORME_SEU_APPID"},{"key":"INFORME_SEU_APP_KEY","value":""}],"variable":[]}},"response":[],"_postman_id":"d27b5365-db3a-48ab-83e0-60fab80532c4"},{"name":"Direcionando para autorização","id":"63e0f4c0-1371-40b6-bdcb-5fb8e337f13f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sandbox.pagseguro.uol.com.br/v2/authorization/request.jhtml?code=CODIGO_DE_AUTORIZAÇÃO","urlObject":{"protocol":"https","path":["v2","authorization","request.jhtml"],"host":["sandbox","pagseguro","uol","com","br"],"query":[{"key":"code","value":"CODIGO_DE_AUTORIZAÇÃO"}],"variable":[]}},"response":[],"_postman_id":"63e0f4c0-1371-40b6-bdcb-5fb8e337f13f"},{"name":"Consultando uma autorização pelo código de notificação","id":"538e3218-278f-484f-9d73-23e99d907c92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ws.sandbox.pagseguro.uol.com.br/v2/authorizations/notifications/CODE_NOTIFICATION?appId=INFORME_SEU_APPID&appKey=INFORME_SEU_APPKEY","urlObject":{"protocol":"https","path":["v2","authorizations","notifications","CODE_NOTIFICATION"],"host":["ws","sandbox","pagseguro","uol","com","br"],"query":[{"key":"appId","value":"INFORME_SEU_APPID"},{"key":"appKey","value":"INFORME_SEU_APPKEY"}],"variable":[]}},"response":[],"_postman_id":"538e3218-278f-484f-9d73-23e99d907c92"}],"id":"e499b848-12ad-4a35-82eb-87f2d60bbe33","_postman_id":"e499b848-12ad-4a35-82eb-87f2d60bbe33","description":""},{"name":"Produção","item":[{"name":"Solicitando autorização","id":"77c372f7-bb3e-41d7-9522-12cedfbae25f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/xml","type":"text"}],"body":{"mode":"raw","raw":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n<authorizationRequest>\r\n    <reference>REF1234567</reference>\r\n    <permissions>\r\n        <code>CREATE_CHECKOUTS</code>\r\n        <code>RECEIVE_TRANSACTION_NOTIFICATIONS</code>\r\n        <code>SEARCH_TRANSACTIONS</code>\r\n        <code>MANAGE_PAYMENT_PRE_APPROVALS</code>\r\n        <code>DIRECT_PAYMENT</code>\r\n    </permissions>\r\n    <redirectURL>https://www.pagseguro.uol.com.br</redirectURL>\r\n    <notificationURL>SUA_URL_NOTIFICACAO</notificationURL>\r\n</authorizationRequest>"},"url":"https://ws.pagseguro.uol.com.br/v2/authorizations/request/?appId=INFORME_SEU_APPID&INFORME_SEU_APP_KEY","urlObject":{"protocol":"https","path":["v2","authorizations","request",""],"host":["ws","pagseguro","uol","com","br"],"query":[{"key":"appId","value":"INFORME_SEU_APPID"},{"key":"INFORME_SEU_APP_KEY","value":""}],"variable":[]}},"response":[],"_postman_id":"77c372f7-bb3e-41d7-9522-12cedfbae25f"},{"name":"Direcionando para autorização","id":"b1be5e73-687c-490f-85a7-32d78d5080b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pagseguro.uol.com.br/v2/authorization/request.jhtml?code=CODIGO_DE_AUTORIZAÇÃO","urlObject":{"protocol":"https","path":["v2","authorization","request.jhtml"],"host":["pagseguro","uol","com","br"],"query":[{"key":"code","value":"CODIGO_DE_AUTORIZAÇÃO"}],"variable":[]}},"response":[],"_postman_id":"b1be5e73-687c-490f-85a7-32d78d5080b9"},{"name":"Consultando uma autorização pelo código de notificação","id":"7764cde2-1c1d-4aba-a8ce-71d1165d7f7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://ws.pagseguro.uol.com.br/v2/authorizations/notifications/NOTIFICATION_CODE?appId=INFORME_SEU_APPID&INFORME_SEU_APP_KEY","urlObject":{"protocol":"https","path":["v2","authorizations","notifications","NOTIFICATION_CODE"],"host":["ws","pagseguro","uol","com","br"],"query":[{"key":"appId","value":"INFORME_SEU_APPID"},{"key":"INFORME_SEU_APP_KEY","value":""}],"variable":[]}},"response":[],"_postman_id":"7764cde2-1c1d-4aba-a8ce-71d1165d7f7a"}],"id":"bc237c68-cb06-474c-80b0-c14f4ba61bef","_postman_id":"bc237c68-cb06-474c-80b0-c14f4ba61bef","description":""},{"name":"Enviando XML para cadastro","id":"14d613cd-728d-4b87-a53b-9cd7d2c3ec70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/xml","type":"text"}],"body":{"mode":"raw","raw":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n<authorizationRequest>\r\n<reference>123</reference>\r\n<permissions>\r\n<code>CREATE_CHECKOUTS</code>\r\n<code>SEARCH_TRANSACTIONS</code>\r\n<code>RECEIVE_TRANSACTION_NOTIFICATIONS</code>\r\n</permissions>\r\n<redirectURL>http://seusite.com.br/redirect</redirectURL>\r\n<notificationURL>http://seusite.com.br/notification</notificationURL>\r\n<account>\r\n<email>usuario@seusite.com.br</email>\r\n<type>SELLER</type>\r\n<person>\r\n<name>Antonio Carlos</name>\r\n<documents>\r\n<document>\r\n<type>CPF</type>\r\n<value>CPF_SELLER</value>\r\n</document>\r\n</documents>\r\n<birthDate>1982-02-05</birthDate>\r\n<phones>\r\n<phone>\r\n<type>HOME</type>\r\n<areaCode>11</areaCode>\r\n<number>30302323</number>\r\n</phone>\r\n<phone>\r\n<type>MOBILE</type>\r\n<areaCode>11</areaCode>\r\n<number>976302323</number>\r\n</phone>\r\n</phones>\r\n<address>\r\n<postalCode>01452002</postalCode>\r\n<street>Av. Brig. Faria Lima</street>\r\n<number>1384</number>\r\n<complement>5o andar</complement>\r\n<district>Jardim Paulistano</district>\r\n<city>Sao Paulo</city>\r\n<state>SP</state>\r\n<country>BRA</country>\r\n</address>\r\n</person>\r\n</account>\r\n</authorizationRequest>"},"url":"https://ws.pagseguro.uol.com.br/v2/authorizations/request/?appId=INFORME_SEU_APPID&INFORME_SEU_APP_KEY","urlObject":{"protocol":"https","path":["v2","authorizations","request",""],"host":["ws","pagseguro","uol","com","br"],"query":[{"key":"appId","value":"INFORME_SEU_APPID"},{"key":"INFORME_SEU_APP_KEY","value":""}],"variable":[]}},"response":[],"_postman_id":"14d613cd-728d-4b87-a53b-9cd7d2c3ec70"}]}