{"info":{"_postman_id":"8f1553aa-1c94-4cb3-9f6c-22169faaa098","name":"myPay API","description":"<html><head></head><body><p>Here are the list of Transaction details api.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10575878","collectionId":"8f1553aa-1c94-4cb3-9f6c-22169faaa098","publishedId":"SzS7Q6UB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-20T11:23:17.000Z"},"item":[{"name":"login","id":"c654e3d9-7efe-437f-bd8c-460876c97623","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"<string>\",\n    \"password\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/portal/login","description":"<p>This endpoint used to login. User will be provided with access token.</p>\n","urlObject":{"path":["portal","login"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"d4159701-174d-490f-ae63-d0376ab4eb4f","name":"It will responde with the user's token.","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"<string>\",\n    \"password\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/portal/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"token\": \"<string>\"\n}"}],"_postman_id":"c654e3d9-7efe-437f-bd8c-460876c97623"},{"name":"get transactions","id":"048d1426-fd34-4bb2-89ba-b11e887b5cc4","request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"<string>","description":"<p>(Required) myPay Access key</p>\n"}],"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/transactions","description":"<p>This endpoint provides the transaction deatils.You need to provide the signature to access the transaction api The keys have the prefix of username_accesskey:.Authentication to the API is performed via HTTP Basic Auth.You need to authenticate via MP auth (e.g., for a cross-origin request), use -H \"Authorization MP username_accesskey:4eC39HqLyjWDarjtT1zdp7dc\".All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.</p>\n","urlObject":{"path":["transactions"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"8588a9ad-99b8-46d5-8d15-cccd7488cc8f","name":"The model response for response 200.","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"<string>","description":"(Required) myPay Access key"}],"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"amount\": \"<integer>\",\n \"currency\": \"<string>\",\n \"items\": \"<string>\",\n \"provider\": \"<string>\",\n \"last4_digit\": \"<integer>\",\n \"tx_auth_no\": \"<integer>\",\n \"cross_ref\": \"<integer>\",\n \"merchant_id\": \"<integer>\"\n}"}],"_postman_id":"048d1426-fd34-4bb2-89ba-b11e887b5cc4"},{"name":"temp Transactions","id":"a435a012-0ade-4dce-9986-b61446152fa7","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"<p>(Required) myPay access key</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": \"<integer>\",\n    \"currency_code\": \"<integer>\",\n    \"user_order_ref\": \"<string>\",\n    \"items\": [\n        \"schema type not provided\",\n        \"schema type not provided\"\n    ],\n    \"shoppers\": {\n        \"first_name\": \"<string>\",\n        \"last_name\": \"<string>\",\n        \"email\": \"<string>\",\n        \"address\": \"<string>\"\n    }\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/tempTransactions","description":"<p>This endpoint provides the Temporary transaction deatils.You need to provide the signature to access the Temporary Transaction api.The keys have the prefix of username_accesskey:.Authentication to the API is performed via HTTP Basic Auth.You need to authenticate via MP auth (e.g., for a cross-origin request), use -H \"Authorization MP username_accesskey:4eC39HqLyjWDarjtT1zdp7dc\".All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.</p>\n","urlObject":{"path":["tempTransactions"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"8895aaa7-d2b1-4e3a-9fee-09eb1ceb0bb4","name":"The model response for response 200.","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"(Required) myPay access key"}],"body":{"mode":"raw","raw":"{\n    \"amount\": \"<integer>\",\n    \"currency_code\": \"<integer>\",\n    \"user_order_ref\": \"<string>\",\n    \"items\": [\n        \"schema type not provided\",\n        \"schema type not provided\"\n    ],\n    \"shoppers\": {\n        \"first_name\": \"<string>\",\n        \"last_name\": \"<string>\",\n        \"email\": \"<string>\",\n        \"address\": \"<string>\"\n    }\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/tempTransactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"body\": {\n  \"request_id\": \"<integer>\",\n  \"message\": \"<string>\",\n  \"data\": {\n   \"sessionId\": \"<string>\"\n  }\n }\n}"}],"_postman_id":"a435a012-0ade-4dce-9986-b61446152fa7"},{"name":"final sale1","id":"7ee58c96-d490-4a32-a59e-c602f847ce8f","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"<p>(Required) myPay access key</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"payment_id\": \"<integer>\",\n    \"card_number\": \"<string>\",\n    \"card_exp_month\": \"<string>\",\n    \"card_exp_year\": \"<string>\",\n    \"card_cvv\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/sale1","description":"<p>This endpoint is for create sale api.The myPay API uses API keys to authenticate requests.Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.The keys have the prefix of username_accesskey:.Authentication to the API is performed via HTTP Basic Auth.You need to authenticate via MP auth (e.g., for a cross-origin request), use -H \"Authorization MP username_accesskey:4eC39HqLyjWDarjtT1zdp7dc\".All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.</p>\n","urlObject":{"path":["sale1"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"2ca57443-7d2a-4766-8e9b-db1ade7ea2cd","name":"The model response for response 200.","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"(Required) myPay access key"}],"body":{"mode":"raw","raw":"{\n    \"payment_id\": \"<integer>\",\n    \"card_number\": \"<string>\",\n    \"card_exp_month\": \"<string>\",\n    \"card_exp_year\": \"<string>\",\n    \"card_cvv\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/sale1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"body\": {\n  \"request_id\": \"<integer>\",\n  \"message\": \"<string>\",\n  \"data\": {\n   \"success\": \"<string>\",\n   \"transactionRef\": \"<string>\"\n  }\n }\n}"}],"_postman_id":"7ee58c96-d490-4a32-a59e-c602f847ce8f"},{"name":"refund sale","id":"c70896a6-8ba1-4a4d-9d30-0b30815812dd","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"<p>(Required) JWT token</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"tansaction_id\": \"<string>\",\n    \"amount\": \"<integer>\",\n    \"reason\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/refund","description":"<p>For Refund api user need to first login with their credentials to get access token.That access token need to pe pass as an Authorization header via Bearer. User -H \"Authorization Bearer eyJhbGciOiR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo0NTYsInVzZ.RmNLXDfhsLvuZMt4dKJAMgJ4\" like this.</p>\n","urlObject":{"path":["refund"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"24923631-7b1b-4e7f-b6b3-db18b72d6ccb","name":"The model response for response 200, you can also use multiple line as well.","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"<string>","description":"(Required) JWT token"}],"body":{"mode":"raw","raw":"{\n    \"tansaction_id\": \"<string>\",\n    \"amount\": \"<integer>\",\n    \"reason\": \"<string>\"\n}"},"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"body\": {\n  \"request_id\": \"<integer>\",\n  \"message\": \"<string>\",\n  \"data\": {\n   \"message\": \"<string>\"\n  }\n }\n}"}],"_postman_id":"c70896a6-8ba1-4a4d-9d30-0b30815812dd"},{"name":"get Stats","id":"be307970-32ee-4d42-9766-8e42bbfed9db","request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"<string>","description":"<p>(Required) JWT token</p>\n"}],"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/stats-api","description":"<p>The stats api will provide the data for  sale amount and refund amount on monthly, weekly and daily basis.User need to first login with their credentials to get access token. Use -H \"Authorization Bearer eyJhbGciOiR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo0NTYsInVzZ.RmNLXDfhsLvuZMt4dKJAMgJ4\" like this.</p>\n","urlObject":{"path":["stats-api"],"host":["https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev"],"query":[],"variable":[]}},"response":[{"id":"9a907f7c-4642-4352-9f2c-df2adad08dbf","name":"The model response for response 200.","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"<string>","description":"(Required) JWT token"}],"url":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev/stats-api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"request_id\": \"<integer>\",\n \"message\": \"<string>\",\n \"data\": {\n  \"month\": [\n   \"<object>\",\n   \"<object>\"\n  ],\n  \"week\": [\n   \"<object>\",\n   \"<object>\"\n  ],\n  \"day\": [\n   [\n    \"<object>\",\n    \"<object>\"\n   ],\n   [\n    \"<object>\",\n    \"<object>\"\n   ]\n  ]\n }\n}"}],"_postman_id":"be307970-32ee-4d42-9766-8e42bbfed9db"}],"variable":[{"id":"baseUrl","key":"baseUrl","value":"https://l5rx5bvji5.execute-api.eu-west-1.amazonaws.com/dev","type":"string"}]}