POST /domestic-payment-consentsThis endpoint allows the PISP to ask an ASPSP to create a new domestic-payment-consent resource. The ASPSP creates the domestic-payment-consent resource and responds with a unique ConsentId to refer to the resource. Use the following format in the request body. Code Block |
---|
{
"Data": {
"Initiation": {
"InstructionIdentification": "ANSM023",
"EndToEndIdentification": "UKFRESCO.21302.OBIEGFX.MoneyTransfer37",
"InstructedAmount": "UK.OBIE.Paym",{
"Amount": "UK20.OBIE.SEPACreditTransfer00",
"Currency": "UK.OBIE.SEPAInstantCreditTransferGBP",
},
"UK.OBIE.SWIFT",
"UK.OBIE.Target2DebtorAccount": {
], "InstructedAmountSchemeName": {"UK.OBIE.SortCodeAccountNumber",
"AmountIdentification": "string11280001234567",
"CurrencyName": "stringAndrea Smith"
},
"DebtorAccountCreditorAccount": {
"SchemeName": [
"UK.OBIE.BBANSortCodeAccountNumber",
"Identification": "UK.OBIE.IBAN08080021325698",
"Name": "Bob "UK.OBIE.PAN",Clements"
},
"UK.OBIE.Paym",
RemittanceInformation": {
"Reference": "UK.OBIE.SortCodeAccountNumber"
]FRESCO-037",
"IdentificationUnstructured": "string",Internal ops "Name": "string",code 5120103"
}
"SecondaryIdentification": "string"
}
},
"CreditorAccountRisk": {
"SchemeNamePaymentContextCode": [
"UK.OBIE.BBAN","PartyToParty"
"UK.OBIE.IBAN",
"UK.OBIE.PAN",
"UK.OBIE.Paym",
"UK.OBIE.SortCodeAccountNumber"
],
"Identification": "string",
"Name": "string",
"SecondaryIdentification": "string"
},
"CreditorPostalAddress": {
"AddressType": "Business",
"Department": "string",
"SubDepartment": "string",
"StreetName": "string",
"BuildingNumber": "string",
}
} |
- Add all mandatory headers:
A sample request follows the format given below. Code Block |
---|
curl POST /
https://<WSO2_OB_APIM_HOST>:8243/open-banking/v3.1/pisp/domestic-payment-consents \
-H 'Authorization: Bearer <APPLICATION_ACCESS_TOKEN>' \
-H 'x-idempotency-key: FRESCO.21302.GFX.20' \
-H 'x-jws-signature: TGlmZSdzIGEgam91cm5leSBub3QgYSBkZXN0aW5hdGlvbiA=..T2ggZ29vZCBldmVuaW5nIG1yIHR5bGVyIGdvaW5nIGRvd24gPw==' \
-H 'x-fapi-financial-id: open-bank' \
-H 'x-fapi-customer-last-logged-time: Sun, 10 Sep 2017 19:43:31 GMT' \
-H 'x-fapi-customer-ip-address: 104.25.212.99' \
-H 'x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--cert <PUBLIC_KEY_FILE_PATH> --key <PRIVATE_KEY_FILE_PATH> \
-d '{
"Data": {
"Initiation": {
"InstructionIdentification": "ANSM023",
"PostCodeEndToEndIdentification": "stringFRESCO.21302.GFX.37",
"TownNameInstructedAmount": "string",{
"CountrySubDivisionAmount": "string20.00",
"CountryCurrency": "string",GBP"
},
"AddressLineDebtorAccount": [{
"SchemeName": "stringUK.OBIE.SortCodeAccountNumber",
]
"Identification": "11280001234567",
}, "Name": "Andrea Smith"
"RemittanceInformation },
"CreditorAccount": {
"UnstructuredSchemeName": "stringUK.OBIE.SortCodeAccountNumber",
"ReferenceIdentification": "string08080021325698",
}, "Name": "Bob Clements"
"SupplementaryData": {} },
}, "AuthorisationRemittanceInformation": {
"AuthorisationTypeReference": "AnyFRESCO-037",
"CompletionDateTimeUnstructured": "2019-07-26T06:03:44.272Z"Internal ops code 5120103"
}
}
},
"Risk": {
"PaymentContextCode": "BillPaymentPartyToParty",
"MerchantCategoryCode": "string",}
}' |
The response will bear the ConsentId . Code Block |
---|
{
"Data": {
"MerchantCustomerIdentificationConsentId": "string7290",
"DeliveryAddressStatus": {"AwaitingAuthorisation",
"AddressLineCreationDateTime": ["2017-06-05T15:15:13+00:00",
"string""StatusUpdateDateTime": "2017-06-05T15:15:13+00:00",
"Initiation": {
],
"StreetNameInstructionIdentification": "stringANSM023",
"BuildingNumberEndToEndIdentification": "stringFRESCO.21302.GFX.37",
"PostCodeInstructedAmount": "string",{
"TownNameAmount": "string20.00",
"CountrySubDivision"Currency": "GBP"
},
"DebtorAccount": [{
"SchemeName": "string"UK.OBIE.SortCodeAccountNumber",
],"Identification": "11280001234567",
"CountryName": "stringAndrea Smith"
},
}
} |
- Add all mandatory headers:
A sample request follows the format given below. Code Block |
---|
curl -X POST \
https://<WSO2_OB_APIM_HOST>:8243/open-banking/v3.1/pisp/domestic-payment-consents \
-H 'Authorization: Bearer <APPLICATION_ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'x-fapi-financial-id: open-bank' \
-H 'x-idempotency-key: 188610727' \
-H 'x-jws-signature: fdffv' \
-d '{
"Data": {
"Initiation "CreditorAccount": {
"SchemeName": "UK.OBIE.SortCodeAccountNumber",
"Identification": "08080021325698",
"Name": "Bob Clements"
},
"RemittanceInformation": {
"Reference": "FRESCO-037",
"Unstructured": "Internal ops code 5120103"
}
}
},
"Risk": {
"InstructionIdentificationPaymentContextCode": "ACME412PartyToParty",
"EndToEndIdentification": "FRESCO.21302.GFX.20"},
"InstructedAmountLinks": {
"AmountSelf": "165.88",
"Currency": "GBP"
https://obank.com/open-banking/v3.1/pisp/domestic-payment-consents/7290"
},
"CreditorAccountMeta": {
"SchemeName": "UK.OBIE.SortCodeAccountNumber",
"Identification": "08080021325698",
"Name": "ACME Inc",
"SecondaryIdentification": "0002"
},
"DebtorAccount}
} |
GET /domestic-payment-consents/{ConsentId}A PISP is able to retrieve a payment consent resource that they have created to check its status. The PISP must have an access token issued by the ASPSP using a client credentials grant. - Add the mandatory headers.
- ConsentId - The unique id of the consent which you want to retrieve.
- x-fapi-financial-id - The unique id of the ASPSP to which the request is issued. This id will be issued by the OBIE.
- Authorization - An Authorisation Token as per https://tools.ietf.org/html/rfc6750. Enter the application access token, you generated from the above step.
|