{"info":{"_postman_id":"da60b145-f1c5-43f2-8b87-da14da2200da","name":"PayPal","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1238477","collectionId":"da60b145-f1c5-43f2-8b87-da14da2200da","publishedId":"RzfnkSKR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-12-18T14:19:48.000Z"},"item":[{"name":"Get Access Token","id":"399d5695-d7ed-455a-9716-a78a1350e232","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":"https://api.sandbox.paypal.com/v1/oauth2/token","description":"<p>Returns a bearer token</p>\n","urlObject":{"protocol":"https","path":["v1","oauth2","token"],"host":["api","sandbox","paypal","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"399d5695-d7ed-455a-9716-a78a1350e232"},{"name":"Get Invoices","id":"33ca33a7-8c30-4d27-a0f0-1e593fc9f3f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.sandbox.paypal.com/v1/invoicing/invoices","description":"<p>Returns invoices for a merchant</p>\n","urlObject":{"protocol":"https","path":["v1","invoicing","invoices"],"host":["api","sandbox","paypal","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"33ca33a7-8c30-4d27-a0f0-1e593fc9f3f8"},{"name":"Payment","id":"cf13a49b-952b-4242-8acf-1611e603f213","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"intent\": \"sale\",\n  \"payer\": {\n    \"payment_method\": \"paypal\"\n  },\n  \"transactions\": [\n    {\n      \"amount\": {\n        \"total\": \"30.11\",\n        \"currency\": \"USD\",\n        \"details\": {\n          \"subtotal\": \"30.00\",\n          \"tax\": \"0.07\",\n          \"shipping\": \"0.03\",\n          \"handling_fee\": \"1.00\",\n          \"shipping_discount\": \"-1.00\",\n          \"insurance\": \"0.01\"\n        }\n      },\n      \"description\": \"The payment transaction description.\",\n      \"custom\": \"EBAY_EMS_90048630024435\",\n      \"invoice_number\": \"48787589673\",\n      \"payment_options\": {\n        \"allowed_payment_method\": \"INSTANT_FUNDING_SOURCE\"\n      },\n      \"soft_descriptor\": \"ECHI5786786\",\n      \"item_list\": {\n        \"items\": [\n          {\n            \"name\": \"hat\",\n            \"description\": \"Brown hat.\",\n            \"quantity\": \"5\",\n            \"price\": \"3\",\n            \"tax\": \"0.01\",\n            \"sku\": \"1\",\n            \"currency\": \"USD\"\n          },\n          {\n            \"name\": \"handbag\",\n            \"description\": \"Black handbag.\",\n            \"quantity\": \"1\",\n            \"price\": \"15\",\n            \"tax\": \"0.02\",\n            \"sku\": \"product34\",\n            \"currency\": \"USD\"\n          }\n        ],\n        \"shipping_address\": {\n          \"recipient_name\": \"Brian Robinson\",\n          \"line1\": \"4th Floor\",\n          \"line2\": \"Unit #34\",\n          \"city\": \"San Jose\",\n          \"country_code\": \"US\",\n          \"postal_code\": \"95131\",\n          \"phone\": \"011862212345678\",\n          \"state\": \"CA\"\n        }\n      }\n    }\n  ],\n  \"note_to_payer\": \"Contact us for any questions on your order.\",\n  \"redirect_urls\": {\n    \"return_url\": \"https://example.com/return\",\n    \"cancel_url\": \"https://example.com/cancel\"\n  }\n}"},"url":"https://api.sandbox.paypal.com/v1/payments/payment","description":"<p>Creates a payment transactions/sale</p>\n","urlObject":{"protocol":"https","path":["v1","payments","payment"],"host":["api","sandbox","paypal","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf13a49b-952b-4242-8acf-1611e603f213"},{"name":"List Payments","id":"7689b2cf-b183-4411-8eba-04eb497e0efd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.sandbox.paypal.com/v1/payments/payment?count=10&start_index=0&sort_by=create_time&sort_order=desc","description":"<p>Get a list of payments</p>\n","urlObject":{"protocol":"https","path":["v1","payments","payment"],"host":["api","sandbox","paypal","com"],"query":[{"key":"count","value":"10"},{"key":"start_index","value":"0"},{"key":"sort_by","value":"create_time"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"7689b2cf-b183-4411-8eba-04eb497e0efd"},{"name":"Execute a payment accepted by a customer","id":"c19be39a-ca4d-49e6-b169-1f7d8109595b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"payer_id","value":"CR87QHB7JTRSC","type":"text","disabled":true}]},"url":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-68R7660985461581LLQMNOCQ/execute","urlObject":{"protocol":"https","path":["v1","payments","payment","PAY-68R7660985461581LLQMNOCQ","execute"],"host":["api","sandbox","paypal","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c19be39a-ca4d-49e6-b169-1f7d8109595b"}]}