diff --git a/insomnia-collections/payments-v3.yaml b/insomnia-collections/payments-v3.yaml index 152452b..c1b3e07 100644 --- a/insomnia-collections/payments-v3.yaml +++ b/insomnia-collections/payments-v3.yaml @@ -1,11 +1,11 @@ _type: export __export_format: 4 -__export_date: 2022-07-15T11:49:15.981Z +__export_date: 2022-07-20T22:16:24.298Z __export_source: insomnia.desktop.app:v2022.4.2 resources: - _id: req_42dac02e96cd4c4180227e29310e56a3 parentId: fld_7e168157562c428cbbee8fb513a2142d - modified: 1657812001190 + modified: 1658355020079 created: 1647879472539 url: "{{ _.AUTH_SERVER_URI }}/connect/token" name: Generate Access Token @@ -117,7 +117,7 @@ resources: _type: request - _id: req_17e8ec73a25548ad8657547a526d9cc8 parentId: fld_685a90a90c564e41bef77672333cd817 - modified: 1657812023884 + modified: 1658355340047 created: 1647879472555 url: "{{ _.ENVIRONMENT_URI }}/payments/{% prompt 'Payment ID', '', '', '', false, true %}" @@ -140,9 +140,19 @@ resources: settingRebuildPath: true settingFollowRedirects: global _type: request + - _id: fld_685a90a90c564e41bef77672333cd817 + parentId: wrk_fc294ae71e294c70bf66e45fab7ae6cd + modified: 1647879472549 + created: 1647879472549 + name: Payments + description: "" + environment: {} + environmentPropertyOrder: null + metaSortKey: -1635961782146.5 + _type: request_group - _id: req_9ca271a494db4427a451601202bbef97 parentId: fld_685a90a90c564e41bef77672333cd817 - modified: 1657885324100 + modified: 1658355339610 created: 1657884889075 url: "{{ _.ENVIRONMENT_URI }}/payments/{% prompt 'Payment ID', '', '', '', false, true %}/actions/cancel" @@ -173,19 +183,9 @@ resources: settingRebuildPath: true settingFollowRedirects: global _type: request - - _id: fld_685a90a90c564e41bef77672333cd817 - parentId: wrk_fc294ae71e294c70bf66e45fab7ae6cd - modified: 1647879472549 - created: 1647879472549 - name: Payments - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1635961782146.5 - _type: request_group - _id: req_048348aee09146739f5d32e51400e4aa parentId: fld_dadb7a5ed8f54883ad8c82214bf7d54f - modified: 1657812025821 + modified: 1658355358937 created: 1647879472556 url: "{{ _.ENVIRONMENT_URI }}/payments" name: Create Payment @@ -203,18 +203,7 @@ resources: "countries": [ "GB" ], - "release_channel": "private_beta", - "customer_segments": [ - "retail" - ], - "provider_ids": [ - "mock-payments-gb-redirect" - ], - "excludes": { - "provider_ids": [ - "ob-exclude-this-bank" - ] - } + "release_channel": "private_beta" }, "type": "user_selected" }, @@ -273,63 +262,39 @@ resources: environmentPropertyOrder: null metaSortKey: -1647883794652 _type: request_group - - _id: req_32bb6380796a48c585096b7eb38b735c + - _id: req_968d84de2d464b25878ee2410f5d6d40 parentId: fld_a05d9a7136b14dde8da79b6907ea12d5 - modified: 1657812027397 + modified: 1658355337579 created: 1647879472551 - url: "{{ _.ENVIRONMENT_URI }}/payments" - name: Create Payment - description: > - Use the GET \merchant-accounts end point from the Merchants API to get - your Account ID + url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', + 'req_32bb6380796a48c585096b7eb38b735c', 'b64::JC5pZA==::46b', 'never', 60 + %}/authorization-flow" + name: Start Authorization Flow + description: "" method: POST body: mimeType: application/json - text: >- + text: |- { - "amount_in_minor": 1990, - "currency": "GBP", - "payment_method": { - "type": "bank_transfer", - "provider_selection": { - "type": "preselected", - "provider_id": "mock-payments-gb-redirect", - "scheme_id": "faster_payments_service", - "remitter": { - "account_holder_name": "Remit name", - "account_identifier": { - "type": "sort_code_account_number", - "sort_code": "123456", - "account_number": "12345678" - } - } - }, - "beneficiary": { - "type": "merchant_account", - "name": "Merchant Account name", - "merchant_account_id": "{% prompt 'Beneficiary Merchant Account ID', 'Please get your merchant_account_id by calling the GET List Merchant Accounts endpoint. ', '', '', false, true %}" - } - }, - "user": { - "id": "{% uuid 'v4' %}", - "name": "{% prompt 'Name', '', '', '', false, true %}", - "email": "{% prompt 'User Email', '', '', '', false, true %}", - "phone": "{% prompt 'Phone', 'Please prefix with + and country code', '', '', false, true %}" - } + "provider_selection": {}, + "redirect": { + "return_uri": "{{ _.RETURN_URI }}" + }, + "consent": {} } parameters: [] headers: - - id: pair_ff62c1f7c32447d3a9b115ad30f51397 + - id: pair_0b18789451764fa894e064ba24319128 name: Content-Type value: application/json - - id: pair_10df9895c4f342d89cda2ee20cb1b67a + - id: pair_2ef7fbc8766b49368d506fca11ff31fd name: Idempotency-Key value: "{% uuid 'v4' %}" authentication: token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" type: bearer - metaSortKey: -1635871886652.5 + metaSortKey: -1647885074701.75 isPrivate: false settingStoreCookies: true settingSendCookies: true @@ -358,39 +323,63 @@ resources: environmentPropertyOrder: null metaSortKey: -1647885019961 _type: request_group - - _id: req_968d84de2d464b25878ee2410f5d6d40 + - _id: req_32bb6380796a48c585096b7eb38b735c parentId: fld_a05d9a7136b14dde8da79b6907ea12d5 - modified: 1657811899899 + modified: 1658355117850 created: 1647879472551 - url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', - 'req_32bb6380796a48c585096b7eb38b735c', 'b64::JC5pZA==::46b', 'never', 60 - %}/authorization-flow" - name: Start Authorization Flow - description: "" + url: "{{ _.ENVIRONMENT_URI }}/payments" + name: Create Payment + description: > + Use the GET \merchant-accounts end point from the Merchants API to get + your Account ID method: POST body: mimeType: application/json - text: |- + text: >- { - "provider_selection": {}, - "redirect": { - "return_uri": "{{ _.RETURN_URI }}" - }, - "consent": {} + "amount_in_minor": 1990, + "currency": "GBP", + "payment_method": { + "type": "bank_transfer", + "provider_selection": { + "type": "preselected", + "provider_id": "mock-payments-gb-redirect", + "scheme_id": "faster_payments_service", + "remitter": { + "account_holder_name": "Remit name", + "account_identifier": { + "type": "sort_code_account_number", + "sort_code": "123456", + "account_number": "12345678" + } + } + }, + "beneficiary": { + "type": "merchant_account", + "name": "Merchant Account name", + "merchant_account_id": "{% prompt 'Beneficiary Merchant Account ID', 'Please get your merchant_account_id by calling the GET List Merchant Accounts endpoint. ', '', '', false, true %}" + } + }, + "user": { + "id": "{% uuid 'v4' %}", + "name": "{% prompt 'Name', '', '', '', false, true %}", + "email": "{% prompt 'User Email', '', '', '', false, true %}", + "phone": "{% prompt 'Phone', 'Please prefix with + and country code', '', '', false, true %}" + } } parameters: [] headers: - - id: pair_0b18789451764fa894e064ba24319128 + - id: pair_ff62c1f7c32447d3a9b115ad30f51397 name: Content-Type value: application/json - - id: pair_2ef7fbc8766b49368d506fca11ff31fd + - id: pair_10df9895c4f342d89cda2ee20cb1b67a name: Idempotency-Key value: "{% uuid 'v4' %}" authentication: token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" type: bearer - metaSortKey: -1647885074701.75 + metaSortKey: -1635871886577.5 isPrivate: false settingStoreCookies: true settingSendCookies: true @@ -401,7 +390,7 @@ resources: _type: request - _id: req_92b9d5eb325842a881fb2afba1580f33 parentId: fld_a05d9a7136b14dde8da79b6907ea12d5 - modified: 1656629157479 + modified: 1658355180054 created: 1656322628945 url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', 'req_32bb6380796a48c585096b7eb38b735c', 'b64::JC5pZA==::46b', 'never', 60 @@ -424,7 +413,7 @@ resources: token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" type: bearer - metaSortKey: -1647885074651.75 + metaSortKey: -1635871886527.5 isPrivate: false settingStoreCookies: true settingSendCookies: true @@ -1181,399 +1170,9 @@ resources: settingRebuildPath: true settingFollowRedirects: global _type: request - - _id: req_dd5c3dcb7ec14dc48ac519de61888226 - parentId: fld_08f631a0fec44e079ed99cb675b2a40b - modified: 1657812030452 - created: 1647879472553 - url: "{{ _.ENVIRONMENT_URI }}/payments" - name: Create the Payment - description: "" - method: POST - body: - mimeType: application/json - text: >- - { - "amount_in_minor": 1, - "currency": "GBP", - "payment_method": { - "type": "bank_transfer", - "provider_selection": { - "type": "user_selected" - }, - "beneficiary": { - "type": "merchant_account", - "name": "Merchant Account name", - "merchant_account_id": "{% prompt 'Beneficiary Merchant Account ID', 'Please get your merchant_account_id by calling the GET List Merchant Accounts endpoint. ', '', '', false, true %}" - } - }, - "user": { - "id": "{% uuid 'v4' %}", - "name": "{% prompt 'Name', '', '', '', false, true %}", - "email": "{% prompt 'User Email', '', '', '', false, true %}", - "phone": "{% prompt 'Phone', 'Please prefix with + and country code', '', '', false, true %}" - } - } - parameters: [] - headers: - - id: pair_f069c547d8b342218f3701fe8ed1fcff - name: Content-Type - value: application/json - - id: pair_6505fd0840c049e4b31557790e5af161 - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1635871887052.5 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: fld_08f631a0fec44e079ed99cb675b2a40b - parentId: fld_06413a707d944cefbd84d226bbc6727a - modified: 1647885056123 - created: 1647885056123 - name: When the PSU is required to select a provider - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1647885056123 - _type: request_group - - _id: req_925f0bb447d64c95a282fdcb6fe97096 - parentId: fld_08f631a0fec44e079ed99cb675b2a40b - modified: 1657811986867 - created: 1647879472553 - url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', - 'req_dd5c3dcb7ec14dc48ac519de61888226', 'b64::JC5pZA==::46b', 'never', 60 - %}/authorization-flow" - name: Start Authorization Flow - description: "" - method: POST - body: - mimeType: application/json - text: |- - { - "provider_selection": {}, - "redirect": { - "return_uri": "{{ _.RETURN_URI }}" - } - } - parameters: [] - headers: - - id: pair_87edbef26ebf46b1a6d5ec3bc7975333 - name: Content-Type - value: application/json - - id: pair_dd071d987a8a459195b9d38261f75034 - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1635871887002.5 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: req_78e5e7987f634ba0970b4f4fea5f076a - parentId: fld_08f631a0fec44e079ed99cb675b2a40b - modified: 1657811987455 - created: 1647879472554 - url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', - 'req_dd5c3dcb7ec14dc48ac519de61888226', 'b64::JC5pZA==::46b', 'never', 60 - %}/authorization-flow/actions/provider-selection" - name: Submit Provider Selection - description: "" - method: POST - body: - mimeType: application/json - text: |- - { - "provider_id": "mock-payments-gb-redirect" - } - parameters: [] - headers: - - id: pair_eecb6f7f55d54b9a8a9d6ccc5d67d96b - name: Content-Type - value: application/json - - id: pair_bee4bcbc8d09415c98605075f4777144 - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1635871886952.5 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: req_092648dd85784ebca98c9cadf7382d5c - parentId: fld_928a5e99adc54d1fb159f578cb058cf6 - modified: 1657812034145 - created: 1647881398287 - url: "{{ _.ENVIRONMENT_URI }}/payments" - name: Create Payment - description: "" - method: POST - body: - mimeType: application/json - text: >- - { - "amount_in_minor": 1, - "currency": "GBP", - "payment_method": { - "provider_selection": { - "filter": { - "countries": [ - "GB" - ], - "release_channel": "private_beta", - "customer_segments": [ - "retail" - ], - "provider_ids": [ - "mock-payments-gb-redirect" - ], - "excludes": { - "provider_ids": [ - "ob-exclude-this-bank" - ] - } - }, - "type": "user_selected" - }, - "type": "bank_transfer", - "beneficiary": { - "type": "external_account", - "account_holder_name": "Beneficiary Name", - "reference": "RefTest", - "account_identifier": { - "type": "sort_code_account_number", - "sort_code": "123456", - "account_number": "12345678" - } - } - }, - "user": { - "id": "{% uuid 'v4' %}", - "name": "{% prompt 'Name', '', '', '', false, true %}", - "email": "{% prompt 'User Email', '', '', '', false, true %}", - "phone": "{% prompt 'Phone', 'Please prefix with + and country code', '', '', false, true %}" - } - } - parameters: [] - headers: - - id: pair_7c8e00b083cd4aad9c620b508f98ffd1 - name: Content-Type - value: application/json - - id: pair_602ca6c94aec43dbb42d6d4c60c1df9e - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1612882494398.3125 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: fld_928a5e99adc54d1fb159f578cb058cf6 - parentId: fld_78e13cc91ada4c35889ef5f4f4333975 - modified: 1647883897616 - created: 1647881156231 - name: Using TrueLayer's Hosted Payment Page for provider selection - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1647882182551 - _type: request_group - - _id: fld_78e13cc91ada4c35889ef5f4f4333975 - parentId: fld_685a90a90c564e41bef77672333cd817 - modified: 1647881114665 - created: 1647879472550 - name: Create a payment to an External Account - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1635952895766 - _type: request_group - - _id: req_dabce4e38a0e4a889aa07a1c29f38702 - parentId: fld_2b13d8e4a3c54fe88ba5fcb2b75399e7 - modified: 1657812060667 - created: 1647879472560 - url: "{{ _.ENVIRONMENT_URI }}/payments" - name: Create Payment - description: "" - method: POST - body: - mimeType: application/json - text: >- - { - "amount_in_minor": 1, - "currency": "GBP", - "payment_method": { - "type": "bank_transfer", - "provider_selection": { - "type": "user_selected" - }, - "beneficiary": { - "type": "external_account", - "account_holder_name": "Beneficiary Name", - "reference": "RefTest-1", - "account_identifier": { - "type": "sort_code_account_number", - "sort_code": "123456", - "account_number": "12345678" - } - } - }, - "user": { - "id": "{% uuid 'v4' %}", - "name": "{% prompt 'Name', '', '', '', false, true %}", - "email": "{% prompt 'User Email', '', '', '', false, true %}", - "phone": "{% prompt 'Phone', 'Please prefix with + and country code', '', '', false, true %}" - } - } - parameters: [] - headers: - - id: pair_8a0ded88a4814fca885bf44b2e068212 - name: Content-Type - value: application/json - - id: pair_0653d93f26f6428f9bdad33a20164dfb - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1641877034776.75 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: fld_2b13d8e4a3c54fe88ba5fcb2b75399e7 - parentId: fld_dd09d1c7f3324a3b8a321045991130e8 - modified: 1647977926365 - created: 1647882357056 - name: When the PSU is required to select a provider - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1647882357056 - _type: request_group - - _id: fld_dd09d1c7f3324a3b8a321045991130e8 - parentId: fld_78e13cc91ada4c35889ef5f4f4333975 - modified: 1647882182501 - created: 1647882182501 - name: Using your own UI for Provider Selection - description: "" - environment: {} - environmentPropertyOrder: null - metaSortKey: -1647882182501 - _type: request_group - - _id: req_bef2eed3975a4a998d0ed2066df54204 - parentId: fld_2b13d8e4a3c54fe88ba5fcb2b75399e7 - modified: 1657811967002 - created: 1647879472561 - url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', - 'req_dabce4e38a0e4a889aa07a1c29f38702', 'b64::JC5pZA==::46b', 'never', 60 - %}/authorization-flow" - name: Start Authorization Flow - description: "" - method: POST - body: - mimeType: application/json - text: |- - { - "provider_selection": {}, - "redirect": { - "return_uri": "{{ _.RETURN_URI }}" - } - } - parameters: [] - headers: - - id: pair_3ae1762972674f7e9f6f51ce0d262ea4 - name: Content-Type - value: application/json - - id: pair_7f09bcd5230b4636b9c7e8997ac2ed08 - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1641877034764.25 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - - _id: req_7213698f6dee4eef89c7a1cc6ebddc77 - parentId: fld_2b13d8e4a3c54fe88ba5fcb2b75399e7 - modified: 1657811968072 - created: 1647879472562 - url: "{{ _.ENVIRONMENT_URI }}/payments/{% response 'body', - 'req_dabce4e38a0e4a889aa07a1c29f38702', 'b64::JC5pZA==::46b', 'never', 60 - %}/authorization-flow/actions/provider-selection" - name: Submit Provider selection - description: "" - method: POST - body: - mimeType: application/json - text: |- - { - "provider_id": "ob-monzo" - } - parameters: [] - headers: - - id: pair_0bfb84323428483f9728d32cc2ceaaa5 - name: Content-Type - value: application/json - - id: pair_b29d132bfd3544b994b9b38850da3212 - name: Idempotency-Key - value: "{% uuid 'v4' %}" - authentication: - token: "{% response 'body', 'req_42dac02e96cd4c4180227e29310e56a3', - 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'when-expired', 3600 %}" - type: bearer - metaSortKey: -1641877034751.75 - isPrivate: false - settingStoreCookies: true - settingSendCookies: true - settingDisableRenderRequestBody: false - settingEncodeUrl: true - settingRebuildPath: true - settingFollowRedirects: global - _type: request - _id: req_29f3b81c7b53432bb8abdd4abca785e2 parentId: fld_3491aae2efcc469785c45e3ad9b11a80 - modified: 1657895173399 + modified: 1658355053533 created: 1647879472564 url: "{{ _.ENVIRONMENT_URI }}/payments" name: Create Payment @@ -2641,7 +2240,7 @@ resources: _type: environment - _id: env_2dcd76732d304b21a925a108618bf92d parentId: env_8c79365dec4643bbb4c64566d83f8780 - modified: 1654071608410 + modified: 1658354971921 created: 1647974620406 name: TrueLayer data: