--- swagger: "2.0" info: title: Mock Data Account API x-ibm-name: mock-data-account-api version: 1.0.0 contact: name: openbanking@dssbank.no license: name: Copyright © 2018-2019 LILLESANDS SPAREBANK. All rights reserved. url: https://openbanking.lillesands-sparebank.no/terms description: "API for manipulating mock data. \nAll endpoints here are only meant for testing. \nAll endpoints here are only available in sandbox and not in production.\n[**Read the developer documentation before using this API** ](https://openbanking.lillesands-sparebank.no/portal-sandbox/documentation/)\n" basePath: / schemes: - https paths: /v1/sandbox/accounts: post: description: | Create a account for use with testing in the sandbox api. *customerNumber* connects a customer as a owner to this account. However creating an account has different implications for private and corporate users. > Private customers will have this account added automatically to their agreement so it will show up in the account list for the user. > Corporate customers needs to add accounts to agreements explicitly through POST /v1/sandbox/agreements to see the account in the account list. summary: /v1/sandbox/accounts tags: - /v1/sandbox/accounts operationId: AccountsPost deprecated: false produces: - application/json;charset=utf-8 parameters: - $ref: '#/parameters/Content-Type' - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/Digest' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' - name: Body in: body required: true description: "" schema: $ref: '#/definitions/v1SandboxAccountsRequest' responses: 201: description: "" schema: $ref: '#/definitions/v1SandboxAccounts' examples: application/json;charset=utf-8: id: enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD customerNumber: 01085800481 accountName: kontotest bban: "91351631959" iban: NO8591351631959 currency: NOK product: TEST PRODUKT cashAccountType: CACC creditLine: 0 balances: - balanceAmount: amount: 10000 currency: NOK balanceType: expected _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD verbs: - GET - DELETE transactions: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions verbs: - GET - POST - DELETE get: description: | Only for managing sandbox data, not part of the production API. Get list of all accounts created using POST /v1/sandbox/accounts. summary: /v1/sandbox/accounts tags: - /v1/sandbox/accounts operationId: AccountsGet deprecated: false produces: - application/json;charset=utf-8 parameters: - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 200: description: "" schema: type: array items: $ref: '#/definitions/v1SandboxAccounts' examples: application/json;charset=utf-8: - id: enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD customerNumber: 01085800481 accountName: kontotest bban: "91351631959" iban: NO8591351631959 currency: NOK product: TEST PRODUKT cashAccountType: CACC creditLine: 0 balances: - balanceAmount: amount: 10000 currency: NOK balanceType: expected _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD verbs: - GET - DELETE transactions: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions verbs: - GET - POST - DELETE /v1/sandbox/accounts/{mockAccountId}: get: description: | Only for managing sandbox data, not part of the production API. Get a single account created using POST /v1/sandbox/accounts. summary: /v1/sandbox/accounts/:id tags: - /v1/sandbox/accounts operationId: AccountsByMockAccountIdGet deprecated: false produces: - application/json;charset=utf-8 parameters: - name: mockAccountId in: path required: true type: string description: "" - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 200: description: "" schema: type: array items: $ref: '#/definitions/v1SandboxAccounts' examples: application/json;charset=utf-8: - id: enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD customerNumber: 01085800481 accountName: kontotest bban: "91351631959" iban: NO8591351631959 currency: NOK product: TEST PRODUKT cashAccountType: CACC creditLine: 0 balances: - balanceAmount: amount: 10000 currency: NOK balanceType: expected _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD verbs: - GET - DELETE transactions: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions verbs: - GET - POST - DELETE delete: description: Delete account previously created using POST /v1/sandbox/accounts. summary: /v1/sandbox/accounts/:id tags: - /v1/sandbox/accounts operationId: AccountsByMockAccountIdDelete deprecated: false produces: - application/json parameters: - name: mockAccountId in: path required: true type: string description: "" - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 204: description: "" schema: type: object /v1/sandbox/accounts/{mockAccountId}/transactions: post: description: |- Create a transaction on an account which was created using POST /v1/sandbox/accounts. **Transactions must have booking date and value date before current time and booking date must not be afte value date** summary: /v1/sandbox/accounts/:id/transactions tags: - /v1/sandbox/accounts operationId: AccountsTransactionsByMockAccountIdPost deprecated: false produces: - application/json parameters: - name: mockAccountId in: path required: true type: string description: "" - $ref: '#/parameters/Content-Type' - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/Digest' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' - name: Body in: body required: true description: "" schema: type: array items: $ref: '#/definitions/transactionsRequest' responses: 201: description: CREATED get: description: | Only for managing sandbox data, not part of the production API. Get all transactions on an account created using POST /v1/sandbox/accounts. This can include transactions created using POST /v1/sandbox/accounts/{mockCardAccountId}/transactions or from payments performed in the sandbox. summary: /v1/sandbox/accounts/:id/transactions tags: - /v1/sandbox/accounts operationId: AccountsTransactionsByMockAccountIdGet deprecated: false produces: - application/json;charset=utf-8 parameters: - name: mockAccountId in: path required: true type: string description: "" - name: fromDate in: query description: Advertises which date the client wishes to receive transactions from. required: false type: string format: date x-example: "2019-03-01" - name: toDate in: query description: Advertises which date the client wishes to receive transactions to. required: false type: string format: date x-example: "2019-04-01" - name: offset in: query type: number minimum: 0 format: Int32 description: Advertises how many transactions should be skipped before starting to count the limit. required: false x-example: 0 - name: limit in: query minimum: 1 format: Int32 type: number required: false description: Advertises how many transactions should be returned. x-example: 10 - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 200: description: "" schema: type: array items: $ref: '#/definitions/transaction' examples: application/json;charset=utf-8: - id: enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 amount: 1 currency: NOK valueDate: "1557446400000" remittanceInformationUnstructured: Ipsum lorem creditorName: Testperson 1 creditorAccount: bban: "90491105991" iban: NO6290491105991 debtorName: Testperson 2 debtorAccount: bban: "90491105991" iban: NO6290491105991 bankTransactionCode: Payments ultimateDebtor: test ultimateCreditor: Test purposeCode: code bookingDate: "1557446400000" _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 verbs: - GET - DELETE - id: enc!!d7HYAhRYWywk1GdrTGzsev8BeAvYvTB5Jqpn5fBkWpn5xNgcdTYEqdLsUslb2zg1 amount: 2 currency: NOK valueDate: "1557446400000" remittanceInformationUnstructured: Ipsum lorem creditorName: Testperson 1 creditorAccount: bban: "90491105991" iban: NO6290491105991 debtorName: Testperson 2 debtorAccount: bban: "90491105991" iban: NO6290491105991 bankTransactionCode: Payments ultimateDebtor: test ultimateCreditor: Test purposeCode: code bookingDate: "1557446400000" _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!d7HYAhRYWywk1GdrTGzsev8BeAvYvTB5Jqpn5fBkWpn5xNgcdTYEqdLsUslb2zg1 verbs: - GET - DELETE - id: enc!!bWaPqAXp6G_pocVnh_PZv8xty6Pzl8L4-JXpu_y3KHCtuZBxyFRfaX9Xbxn0CebA amount: 3 currency: NOK valueDate: "1557446400000" remittanceInformationUnstructured: Ipsum lorem creditorName: Testperson 1 creditorAccount: bban: "90491105991" iban: NO6290491105991 debtorName: Testperson 2 debtorAccount: bban: "90491105991" iban: NO6290491105991 bankTransactionCode: Payments ultimateDebtor: test ultimateCreditor: Test purposeCode: code bookingDate: "1557446400000" _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!bWaPqAXp6G_pocVnh_PZv8xty6Pzl8L4-JXpu_y3KHCtuZBxyFRfaX9Xbxn0CebA verbs: - GET - DELETE delete: description: Delete all transactions from an account created using POST /v1/sandbox/accounts summary: /v1/sandbox/accounts/:id/transactions tags: - /v1/sandbox/accounts operationId: AccountsTransactionsByMockAccountIdDelete deprecated: false produces: - application/json parameters: - name: mockAccountId in: path required: true type: string description: "" - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 204: description: "" schema: type: object /v1/sandbox/accounts/{mockAccountId}/transactions/{mockTransactionId}: get: description: | Only for managing sandbox data, not part of the production API. Get single transaction on an account created using POST /v1/sandbox/accounts. summary: /v1/sandbox/accounts/:id/transactions/:id tags: - /v1/sandbox/accounts operationId: AccountsTransactionsByMockAccountIdAndMockTransactionIdGet deprecated: false produces: - application/json;charset=utf-8 parameters: - name: mockAccountId in: path required: true type: string description: "" - name: mockTransactionId in: path required: true type: string description: "" - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 200: description: "" schema: $ref: '#/definitions/transaction' examples: application/json;charset=utf-8: id: enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 amount: 1 currency: NOK valueDate: "1557446400000" remittanceInformationUnstructured: Ipsum lorem creditorName: Testperson 1 creditorAccount: bban: "90491105991" iban: NO6290491105991 debtorName: Testperson 2 debtorAccount: bban: "90491105991" iban: NO6290491105991 bankTransactionCode: Payments ultimateDebtor: test ultimateCreditor: Test purposeCode: code bookingDate: "1557446400000" _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 verbs: - GET - DELETE delete: description: Delete a specific transaction from a account created using POST /v1/sandbox/accounts summary: /v1/sandbox/accounts/:id/transactions/:id tags: - /v1/sandbox/accounts operationId: AccountsTransactionsByMockAccountIdAndMockTransactionIdDelete deprecated: false produces: - application/json parameters: - name: mockAccountId in: path required: true type: string description: "" - name: mockTransactionId in: path required: true type: string description: "" - $ref: '#/parameters/Accept' - $ref: '#/parameters/Accept-Charset' - $ref: '#/parameters/Accept-Encoding' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/Host' - $ref: '#/parameters/X-Request-ID' - $ref: '#/parameters/TPP-Signature-Certificate' - $ref: '#/parameters/Signature' responses: 204: description: "" schema: type: object parameters: Accept: name: Accept in: header type: string required: false description: Advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. x-example: application/json Accept-Charset: name: Accept-Charset in: header type: string required: false description: Advertises which character set the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice within the Content-Type response header. x-example: utf-8 Accept-Encoding: name: Accept-Encoding in: header required: false type: string description: Advertises which content encoding, usually a compression algorithm, the client is able to understand. Using content negotiation, the server selects one of the proposals, uses it and informs the client of its choice with the Content-Encoding response header. x-example: deflate, gzip;q=1.0, *;q=0.5 Accept-Language: name: Accept-Language in: header description: Advertises which natural languages the client is able to understand, and which locale variant is preferred. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Language response header. required: false type: string x-example: en-US,en;q=0.7,nb;q=0.3 Host: name: Host in: header type: string required: false description: The domain name of the server (for virtual hosting), and (optionally) the TCP port number on which the server is listening. x-example: http://lbxp02vip.unix.cosng.net:20100/secesb/rest/era-psd2 Content-Type: name: Content-Type in: header required: false type: string description: Advertises what type of data is actually sent. X-Request-ID: name: X-Request-ID in: header type: string required: true description: Request identifier, unique to the call, as determined by the TPP. x-example: 4eba4445-1a4b-47b8-bdd5-4e56ef026b19 Digest: name: Digest in: header type: string required: true description: "Base64 encoded sha256 or sha512 hash of the message body, used with the signature.\n>\nThe Digest header is defined by RFC3230 and sha256/sha512 si defined by RFC5843. " x-example: MIFFTzCCAzegAkIBAgMJANnQVDLqktJUMA0GCS....8WLZOabcX3YxNoH4k== TPP-Signature-Certificate: name: TPP-Signature-Certificate in: header type: string required: true description: The certificate used for signing the request in base64 encoding. x-example: MIFFTzCCAzegAkIBAgMJANnQVDLqktJUMA0GCS....8WLZOX3YxNoH4k== Signature: name: Signature in: header type: string required: true description: | HTTP Message Signature as specified by https://tools.ietf.org/html/draft-cavage-http-signatures-10 with requirements imposed by Berlin Group's NextGenPSD2 Framework. - *keyId* must be formatted as `keyId="SN=XXX,CA=YYY"` where `XXX` is the serial number of the signing certificate in hexadecimal encoding and `YYY` is the ful Distinguished Name of the Certificate Authority having certificate - *algorithm* must identify the same algorithm for the signature as presented in the signing certificate and should be `rsa-sha256` - *headers* must contain `date`, `digest`, `x-request-id`, `psu-id`, `psu-corporate-id`, and `tpp-redirect-uri` when available - *signature* must be computed as `Base64(RSA-SHA256(signingString))` If any values in the signature header is ISO-8859-1 or UTF-8 encoded you need to URL encode the signature header according to RFC 2047 which means MIME encoding the signature. Also the signature must be wrapped using this format: =?charset?encoding?encoded signature?= Example of this encoding: `=?utf-8?B?a2V5QTQsQ0E9Mi41LjQuOTc9IzB........jMTM1MDUzNDQ0ZTRmMmQ0NjUz?=` Java example of how to implement encoding: ``` if (charset.equals(StandardCharsets.UTF_8)) { signature = String.format("=?utf-8?B?%s?=", Base64.getEncoder().encodeToString(signature.getBytes(StandardCharsets.UTF_8))); } ``` x-example: keyId="SN=6AEB4444FBAAD267,CA=O=PSDNO-FSA-ABCA,L=Trondheim,C=NO", algorithm="rsa-sha256", headers="date x-request-id tpp-redirect-uri psu-id", signature="***************" definitions: Links: title: Links example: self: href: /v1/sandbox/customers/enc!!IZ5FQKfTP6SdoIoD_nyvKlJt1cHv_JOIku7xUgmyui1a18SoQ0YA4nfH7c28PLxf verbs: - GET - DELETE type: object properties: self: $ref: '#/definitions/Self' required: - self Self: title: Self example: href: /v1/sandbox/agreements/enc!!9LnOfAAQ-HgKXsU61DSZc0b1M9k-2FkJ4Hunsoe4mfTD3AOU_Evq91NkmNgd1lK9RRT6jE7MV7aAPxm7gMrQLg== verbs: - GET - DELETE type: object properties: href: type: string verbs: type: array items: type: string required: - href - verbs BalanceAmount: title: BalanceAmount example: currency: NOK amount: 0 type: object properties: currency: example: NOK type: string amount: example: 0 type: integer format: int32 required: - currency - amount Links4: title: Links4 example: self: href: /v1/sandbox/card-accounts/enc!!M5MQTDLY3RnbIjLCnqo8HFapV73e7PSqio3iv7FrR0Y-J_hxh33lth6UEU4yq3a5rwENWfNrZWQ-BesB8lBwEcKP9Sd4-1MotV9QAz_MSv0= verbs: - GET - DELETE transactions: href: /v1/sandbox/card-accounts/enc!!M5MQTDLY3RnbIjLCnqo8HFapV73e7PSqio3iv7FrR0Y-J_hxh33lth6UEU4yq3a5rwENWfNrZWQ-BesB8lBwEcKP9Sd4-1MotV9QAz_MSv0=/transactions verbs: - GET - POST - DELETE type: object properties: self: $ref: '#/definitions/Self' transactions: $ref: '#/definitions/Transactions' required: - self - transactions Transactions: title: Transactions type: object properties: href: type: string verbs: type: array items: type: string required: - href - verbs Balance2: title: Balance2 example: balanceAmount: amount: 0 currency: NOK balanceType: expected type: object properties: balanceAmount: $ref: '#/definitions/BalanceAmount' balanceType: example: expected type: string enum: - closingBooked - expected required: - balanceAmount - balanceType v1SandboxAccountsRequest: title: /v1/sandbox/accountsRequest example: customerNumber: "12345678" accountName: kontotest bban: "26743379224" iban: NO8626743379224 currency: NOK product: TEST PRODUKT cashAccountType: CACC creditLine: 0 balances: - balanceType: EXPECTED balanceAmount: amount: 10000 currency: NOK type: object properties: customerNumber: type: string accountName: type: string bban: type: string iban: type: string currency: type: string product: type: string cashAccountType: type: string enum: - CACC - CASH - CHAR - CISH - COMM - CPAC - LLSV - LOAN - MGLD - MOMA - NREX - ODFT - ONDP - OTHR - SACC - SLRY - SVGS - TAXE - TRAN - TRAS creditLine: type: integer format: int32 balances: type: array items: $ref: '#/definitions/Balance4' required: - customerNumber - accountName - bban - iban - currency - product - cashAccountType - creditLine - balances Balance4: title: Balance4 type: object properties: balanceType: example: EXPECTED type: string balanceAmount: $ref: '#/definitions/BalanceAmount4' required: - balanceType - balanceAmount BalanceAmount4: title: BalanceAmount4 example: amount: 10000 currency: NOK type: object properties: amount: example: 10000 type: number format: double currency: example: NOK type: string required: - amount - currency v1SandboxAccounts: title: /v1/sandbox/accounts example: id: enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD customerNumber: 01085800481 accountName: kontotest bban: "91351631959" iban: NO8591351631959 currency: NOK product: TEST PRODUKT cashAccountType: CACC creditLine: 0 balances: - balanceAmount: amount: 10000 currency: NOK balanceType: expected _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD verbs: - GET - DELETE transactions: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions verbs: - GET - POST - DELETE type: object properties: id: type: string customerNumber: type: string accountName: type: string bban: type: string iban: type: string currency: type: string product: type: string cashAccountType: type: string enum: - CACC - CASH - CHAR - CISH - COMM - CPAC - LLSV - LOAN - MGLD - MOMA - NREX - ODFT - ONDP - OTHR - SACC - SLRY - SVGS - TAXE - TRAN - TRAS creditLine: type: integer format: int32 balances: type: array items: $ref: '#/definitions/Balance2' _links: $ref: '#/definitions/Links4' required: - id - customerNumber - accountName - bban - iban - currency - product - cashAccountType - creditLine - balances - _links transactionsRequest: title: /v1/sandbox/accounts/:id/transactionsRequest example: amount: 1 currency: NOK valueDate: "2018-06-07" bookingDate: "2019-05-12" remittanceInformationUnstructured: Ipsum lorem creditorId: "1" creditorName: Testperson 1 creditorAccount: iban: NO6290491105991 bban: "90491105991" ultimateCreditor: Test debtorName: Testperson 2 debtorAccount: iban: NO6290491105991 bban: "90491105991" ultimateDebtor: test purposeCode: code bankTransactionCode: Payments type: object properties: amount: example: 1 type: integer format: int32 currency: example: NOK type: string valueDate: example: "2018-06-07" type: string bookingDate: example: "2019-05-12" type: string remittanceInformationUnstructured: example: Ipsum lorem type: string creditorId: example: "1" type: string creditorName: example: Testperson 1 type: string creditorAccount: $ref: '#/definitions/CreditorAccount' ultimateCreditor: example: Test type: string debtorName: example: Testperson 2 type: string debtorAccount: $ref: '#/definitions/DebtorAccount' ultimateDebtor: example: test type: string purposeCode: example: code type: string bankTransactionCode: example: Payments type: string enum: - Payments - Cash Management - Derivatives - Loans - Deposits & Syndications - Foreign Exchange - Precious Metal - Commodities - Trade Services - Securities - Account Management - Extended Domain required: - amount - currency - valueDate - bookingDate - remittanceInformationUnstructured - creditorId - creditorName - creditorAccount - ultimateCreditor - debtorName - debtorAccount - ultimateDebtor - purposeCode - bankTransactionCode CreditorAccount: title: CreditorAccount example: iban: NO6290491105991 bban: "90491105991" type: object properties: iban: example: NO6290491105991 type: string bban: example: "90491105991" type: string required: - iban - bban DebtorAccount: title: DebtorAccount example: iban: NO6290491105991 bban: "90491105991" type: object properties: iban: example: NO6290491105991 type: string bban: example: "90491105991" type: string required: - iban - bban transaction: title: /v1/sandbox/accounts/:id/transaction example: id: enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 amount: 1 currency: NOK valueDate: "1557446400000" remittanceInformationUnstructured: Ipsum lorem creditorName: Testperson 1 creditorAccount: bban: "90491105991" iban: NO6290491105991 debtorName: Testperson 2 debtorAccount: bban: "90491105991" iban: NO6290491105991 bankTransactionCode: Payments ultimateDebtor: test ultimateCreditor: Test purposeCode: code bookingDate: "1557446400000" _links: self: href: /v1/sandbox/accounts/enc!!90hSjpSdpeftHiDSYiPaHVGoKHriD-6ARR4JlXcEebYbYa_WNwJvqevSrba4WtnD/transactions/enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 verbs: - GET - DELETE type: object properties: id: example: enc!!4c_ShWHL-8V71weszbvvxjXl76AZFJOp2tfV9l_Wth0re5ZeSwOhiXwLrQCmJqp4 type: string amount: example: 1 type: integer format: int32 currency: example: NOK type: string valueDate: example: "1557446400000" type: string remittanceInformationUnstructured: example: Ipsum lorem type: string creditorName: example: Testperson 1 type: string creditorAccount: $ref: '#/definitions/CreditorAccount' debtorName: example: Testperson 2 type: string debtorAccount: $ref: '#/definitions/DebtorAccount' bankTransactionCode: example: Payments type: string enum: - Payments - Cash Management - Derivatives - Loans - Deposits & Syndications - Foreign Exchange - Precious Metal - Commodities - Trade Services - Securities - Account Management - Extended Domain ultimateDebtor: example: test type: string ultimateCreditor: example: Test type: string purposeCode: example: code type: string bookingDate: example: "1557446400000" type: string _links: $ref: '#/definitions/Links' required: - id - amount - currency - valueDate - remittanceInformationUnstructured - creditorName - creditorAccount - debtorName - debtorAccount - bankTransactionCode - ultimateDebtor - ultimateCreditor - purposeCode - bookingDate - _links tags: - name: /v1/sandbox/accounts x-ibm-configuration: enforced: true testable: true phase: realized x-ibm-endpoints: - endpointUrl: https://openbanking.lillesands-sparebank.no/api-sandbox type: - production - development ...