Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoints for the resource - and available methods.

S. No.

Resource

HTTP Operation

Endpoint

Mandatory

Scope

Grant Type

Message Signing

Idempotency Key

Request Object

Response Object

2.1

file-payments

POST

POST /file-payments

Conditional

payments

Authorisation Code

Signed Request Signed Response

Yes

OBWriteFile

OBWriteFileResponse

2.2

file-payments

GET

GET /file-payments/{FilePaymentId}

Mandatory (if resource POST implemented)

payments

Client Credentials

Signed Response

No

NA

OBWriteFileResponse

2.3

file-payments

GET

GET /file-payments/{FilePaymentId}/report-file

Conditional

payments

Client Credentials

Signed Response

No

NA

File

2.4

payment-details

GET

GET /file-payments/{FilePaymentId}/payment-details

Optional

payments

Client Credentials

Signed Response

No

NA

OBWritePaymentDetailsResponse

 

2.1  POST/file-payments

Once the file-payment-consents has been authorised by the PSU, the PISP can proceed to submitting the file-payments for processing:

...

The file-payments resource must have one of the following Status codes:

Status

InitiationPending

InitiationFailed

InitiationCompleted

2.2  GET/file-payments/{FilePaymentId}

...

The file-payments resource must have one of the following Status codes:

Status

InitiationPending

InitiationFailed

InitiationCompleted

 2.3 GET /file-payments/{FilePaymentId}/report-file

...

The file-payments - payment-details must have one of the following PaymentStatusCode code-set enumerations:

Status

Accepted

AcceptedCancellationRequest

AcceptedTechnicalValidation

AcceptedCustomerProfile

AcceptedFundsChecked

AcceptedWithChange

Pending

Rejected

AcceptedSettlementInProcess

AcceptedSettlementCompleted

AcceptedWithoutPosting

AcceptedCreditSettlementCompleted

Cancelled

NoCancellationProcess

PartiallyAcceptedCancellationRequest

PartiallyAcceptedTechnicalCorrect

PaymentCancelled

PendingCancellationRequest

Received

RejectedCancellationRequest

2.5  State Model

 2.5.1 Payment Order

...

The definitions for the Status:

 S. No.

Status

Payment Status Description

1

InitiationPending

The initiation of the payment order is pending.

2

InitiationFailed

The initiation of the payment order has failed.

3

InitiationCompleted

The initiation of the payment order is complete.

3. Data Model

The data dictionary section gives the detail on the payload content for the File Payments API flows.

...

The Initiation section of the file-payments request must match the Initiation section of the corresponding file-payment-consent request

3.2.3 Data Dictionary

 

Name

Occurrence

XPath

EnhancedDefinition

Class

Codes

Pattern

OBWriteFile

 

OBWriteFile

 

OBWriteFile

 

 

Data

1..1

OBWriteFile/Data

 

OBWriteFile/Data

 

 

ConsentId

1..1

OBWriteFile/Data/ConsentId

OB: Unique identification as assigned by the ASPSP (Bank) to uniquely identify the consent resource.

String

 

 

Initiation

1..1

OBWriteFile/Data/Initiation

The Initiation payload is sent by the initiating party to the ASPSP (Bank). It is used to request movement of funds using a payment file.

OBFileInitiation

 

 

3.3  File Payment - Response

...

  • FilePaymentId.

  • ConsentId.

  • CreationDateTime the file-payments resource was created.

  • Status and StatusUpdateDateTime of the file-payments resource.

  • Charges array is used for the breakdown of applicable ASPSP (Bank) charges.

  • The Initiation object from the file-payment-consent.

  • An ASPSP (Bank) should conditionally provide Debtor/Name in the Payment Order Response, even when the Payer did not provide the Debtor Account via PISP

3.3.3 Data Dictionary

Name

Occurrence

XPath

EnhancedDefinition

Class

Codes

Pattern

OBWriteFileResponse

 

OBWriteFileResponse

 

OBWriteFileResponse

 

 

Data

1..1

OBWriteFileResponse/Data

 

OBWriteFileResponse/Data

 

 

FilePaymentId

1..1

OBWriteFileResponse/Data/FilePaymentId

OB: Unique identification as assigned by the ASPSP (Bank) to uniquely identify the file payments resource.

String

 

 

ConsentId

1..1

OBWriteFileResponse/Data/ConsentId

OB: Unique identification as assigned by the ASPSP (Bank) to uniquely identify the consent resource.

String

 

 

CreationDateTime

1..1

OBWriteFileResponse/Data/CreationDateTime

Date and time at which the message was created.

DateTime

 

 

Status

1..1

OBWriteFileResponse/Data/Status

Specifies the status of the payment order resource.

String

Enum:

  • InitiationCompleted

  • InitiationFailed

  • InitiationPending

 

StatusUpdateDateTime

1..1

OBWriteFileResponse/Data/StatusUpdateDateTime

Date and time at which the resource status was updated.

DateTime

 

 

Charges

0..n

OBWriteFileResponse/Data/Charges

Set of elements used to provide details of a charge for the payment initiation.

OBCharge

 

 

Initiation

1..1

OBWriteFileResponse/Data/Initiation

The Initiation payload is sent by the initiating party to the ASPSP (Bank). It is used to request movement of funds using a payment file.

OBFileInitiation

 

 

Debtor

0..1

OBWriteFileResponse/Data/Debtor

Set of elements used to identify a person or an organisation

OBWriteFileResponse/Data/Debtor

 

 

Name

1..1

OBWriteFileResponse/Data/Debtor/Name

The account name is the name or names of the account owner(s) represented at an account level, as displayed by the ASPSP’s (Bank's)online channels.

Note: The account name is not the product name or the nickname of the account.

String

 

 

3.4  File Payment - Payment Details - Response

...

3.4.1 UML Diagram

...

 

3.4.2 Data Dictionary

Name

Occurrence

XPath

EnhancedDefinition

Class

Codes

Pattern

OBWritePaymentDetailsResponse

 

OBWritePaymentDetailsResponse

 

OBWritePaymentDetailsResponse

 

 

Data

1..1

OBWritePaymentDetailsResponse/Data

 

OBWritePaymentDetailsResponse/Data

 

 

PaymentStatus

0..n

OBWritePaymentDetailsResponse/Data/PaymentStatus

Payment status details.

OBWritePaymentDetails

 

 

4.

...

The swagger code for the Bulk/Batch Payments API can be found on this link.

...

Usage Examples

...

4.1  POST /file-payments

...

4.1.1 Request

POST /file-payments

Authorisation: Bearer 4ZopnFZFKjr5zDsicSQpLL

x-idempotency-key: XYZ.51403.MLT.30

x-jws-signature: LMlmPSqzISEpar72ce5deMGue4RsZMDnZYG1bW6hdPlvriZ=..G1rrM18vVYBmdmRurS6nIR1yFHR8bGZyIJdvaB5nKGRvm35hTr==

x-fapi-auth-date: Tue, 18 Mar 2020 19:43:31 GMT+03:00

x-fapi-customer-ip-address: 204.35.213.15

x-fapi-interaction-id: 75bdc714-b2dg-7676-c759-780d6815689f

Content-Type: application/json

Accept: application/json

{
  "Data": {
    "ConsentId": "565656",
    "Initiation": {
      "FileContextFormat": "BH.OBF.pain.001.001.08",
      "FileHash": "jhkgas5768a/s78as",
      "FileReference": "41536789",
      "NumberOfTransactions": "10",
      "ControlSum": “10”,
      "RequestedExecutionDateTime": "2020-03-20T09:14:32.115+03:00",
      "LocalInstrument": "BH.OBF.DNS",
      "DebtorAccount": {
        "SchemeName": "BH.OBF.IBAN",
        "Identification": "BH10CBBU00100000008876",
        "Name": "Albert John",
      },
      "RemittanceInformation": {
        "RemittanceDescription": "External Ops Code 34251",
        "Reference": "XYZ-101"
      }
    }
  }
}

...

4.1.2 Response

201 Created

x-jws-signature: V2hhdCB3ZSBnb3QgaGVyZQ0K..aXMgZmFpbHVyZSB0byBjb21tdW5pY2F0ZQ0K

x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d

Content-Type: application/json

...