{ "info": { "_postman_id": "cbb8097b-65c8-491e-9d8f-54d673184c4e", "name": "SB Customer Sigin OAuth AppPlan", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "GetAuthorize", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "GET", "header": [], "url": { "raw": "{{url}}/v1/customer_signin/oauth2/authorize?response_type=code&redirect_uri=https://example.com/redirect&client_id={{Client_Id}}&scope=openid transfers account_balances&state=default&account_id={{masked_aid}}&uuid={{uuid}}", "host": [ "{{url}}" ], "path": [ "v1", "customer_signin", "oauth2", "authorize" ], "query": [ { "key": "response_type", "value": "code" }, { "key": "redirect_uri", "value": "https://example.com/redirect" }, { "key": "client_id", "value": "{{Client_Id}}" }, { "key": "scope", "value": "openid transfers account_balances" }, { "key": "state", "value": "default" }, { "key": "account_id", "value": "{{masked_aid}}" }, { "key": "uuid", "value": "{{uuid}}" } ] }, "description": "Customer Sign in OAuth API - Authorize endpoint" }, "response": [] }, { "name": "GenerateAccessTokenUsingAuthCode", "event": [ { "listen": "test", "script": { "exec": [ "var Json = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"access_token\", Json.access_token);", "postman.setEnvironmentVariable(\"refresh_token\", Json.refresh_token);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{Client_Secret}}", "type": "string" }, { "key": "username", "value": "{{Client_Id}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "authorization_code", "type": "text" }, { "key": "code", "value": "AAKk3D8tPpnxv3qBIMphX28eJ7Ptu6sLkJpAl_LQe5WlKvjkNbOhwlJjvG68QrwnRZfZJXX2s4Ib17SsZpa_NKxqdDhu8zxxGuG3y9W9T38kProGepIGLDYqN16sP5GrGKKzJHnzLKamTzGUflmPyNoinuLI3EpQuUmFhDjJrZhQv4F0nXarfA0qJgFv1Clc92M", "type": "text" } ] }, "url": { "raw": "{{url}}/v1/customer_signin/oauth2/token", "host": [ "{{url}}" ], "path": [ "v1", "customer_signin", "oauth2", "token" ] }, "description": "Customer Signin OAuth API - Token endpoint" }, "response": [] }, { "name": "GenerateAccessTokenUsingRefreshToken", "event": [ { "listen": "test", "script": { "exec": [ "var Json = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"access_token\", Json.access_token);", "postman.setEnvironmentVariable(\"refresh_token\", Json.refresh_token);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/x-www-form-urlencoded" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "{{basic_auth}}" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "refresh_token", "type": "text" }, { "key": "scope", "value": "beneficiary_management utility_fxrate send_money account_transactions account_balances", "type": "text" }, { "key": "refresh_token", "value": "{{refresh_token}}", "type": "text" } ] }, "url": { "raw": "{{url}}/v1/customer_signin/oauth2/token", "host": [ "{{url}}" ], "path": [ "v1", "customer_signin", "oauth2", "token" ] }, "description": "Customer Signin OAuth API - Token endpoint" }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }