Send a Faster Payment
This guide will walk you through making a payment to a UK bank account. Payment processing is a multi-step process which requires interacting with several resource types. Learn about payments, transactions, submissions and admissions here
Prerequisites
You have already set up a bank account to make the payment from - if you haven’t, you can learn more about bank accounts here.
Create a payment
When creating a payment, you need to set the payment-amount and the creditor. The creditor is the account the payment will be sent to.
You have the option to set a payment-reference to identify or categorise the payment. This is limited to 35 characters.
If you don't supply a payment-reference, it will default to "Sent from X", where X is the legal person who owns the account. This will be the entity-name or business-name for companies, or the given-name and surname for individuals. This is also subject to a 35 character limit, so longer names may be cut off.
When making a payment to a payee with an associated Confirmation of Payee request containing secondary reference data (SRD), the SRD will take precedence over any payment-reference set in the payment creation request.
Next, choose your creditor-type:
- Sort code and account number (SCAN).
- A payee.
- A Griffin bank account.
- Pay to a SCAN
- Pay a payee
- Pay to a Griffin account
For the creditor:
- Set the
creditor-typeto"uk-domestic". - Set the
account-numberto that of the account you're sending money to. - Set the
account-number-codeto"bban". - Set the
bank-idto the sort code of the account you're sending money to. - Set the
bank-id-codeto"gbdsc". - Set the
account-holderto the name on the account that you're sending money to.
Dashes are not currently accepted in sort codes.
For the payment-amount:
- Set the
valueto your desired amount. - Set the
currencyto"GBP".
curl "https://api.griffin.com/${BANK_ACCOUNT_PAYMENTS_URL}" \
-X 'POST' \
-H 'Content-Type: application/json' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY" \
--data '
{
"creditor": {
"creditor-type": "uk-domestic",
"account-number": "35890906",
"account-number-code": "bban",
"bank-id": "000000",
"bank-id-code": "gbdsc",
"account-holder": "John Doe"
},
"payment-amount": {
"currency": "GBP",
"value": "20.00"
}
}'
For the creditor:
- Set the
creditor-typeto "payee". - Set the
payee-urlto thepayee-urlthat you captured from the previous response.
For the payment-amount:
- Set the
valueto your desired amount. - Set the
currencyto"GBP".
curl 'https://api.griffin.com/v0/bank/accounts/ac.svcsUO4KS3uz0ChEr5l9zA/payments' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY" \
--data '
{
"creditor": {
"creditor-type": "payee",
"payee-url": "$PAYEE_URL"
},
"payment-amount": {
"currency": "GBP",
"value": "20.00"
}
}'
For the creditor:
- Set the
creditor-typeto"griffin-bank-account". - Set the
account-urlto that of another Griffin bank account in your organisation.
For the payment-amount:
- Set the
valueto your desired amount. - Set the
currencyto"GBP".
curl 'https://api.griffin.com/v0/bank/accounts/ac.svcsUO4KS3uz0ChEr5l9zA/payments' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY" \
--data '
{
"creditor": {
"creditor-type": "griffin-bank-account",
"account-url": "$DESTINATION_GRIFFIN_ACCOUNT_URL"
},
"payment-amount": {
"currency": "GBP",
"value": "20.00"
}
}'
A successful response indicates that an "outbound-payment" has been created. At this point the payment is recorded in our system, but no movement of funds has occurred. To send the payment for processing, you must submit it using the returned payment-submissions-url.
{
"creditor": {
"creditor-type": "uk-domestic",
"account-holder": "John Doe",
"account-number": "35890906",
"account-number-code": "bban",
"bank-id": "000000",
"bank-id-code": "gbdsc"
},
"payment-submissions-url": "/v0/payments/pm.hSJXUxRZT7KGzVrn1bAAdg/submissions",
"payment-amount": {
"currency": "GBP",
"value": "20.00"
},
"payment-direction": "outbound-payment",
"payment-type": "credit-transfer",
"created-at": "2023-11-20T16:11:48.283Z",
"debtor": {
"account-holder": "Funds",
"account-number": "97144921",
"account-number-code": "bban",
"bank-id": "000000",
"bank-id-code": "gbdsc",
"account-url": "/v0/bank/accounts/ba.2Xmn1OCvTzGvC-SmWx2Zrg"
},
"payment-url": "/v0/payments/pm.hSJXUxRZT7KGzVrn1bAAdg"
}
Submit the payment using the faster payments scheme
To submit the payment for processing, create a new submission using the payment-submissions-url from the response above.
You must set payment-scheme to "fps". If no value is provided for payment-scheme the payment will be rejected.
Payment schemes may apply a limit to the amount that a single payment may transfer. Griffin will reject your payment submission if the amount in the payment you are trying to submit exceeds the chosen payment scheme's limit.
For FPS, the limit is 1,000,000.00 GBP.
curl 'https://api.griffin.com${PAYMENT_SUBMISSION_URL}' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY"\
--data '
{"payment-scheme": "fps"}'
- Single immediate payments
- Scheduled payments
A successful response contains a submission-url that you can query to track the submission-status. Initially the submission-status is processing which indicates that funds still haven't moved.
{
"submission-url": "/v0/submissions/ps.nsy0zkWEXlWecCgoRsUuug",
"submission-scheme-information": {
"payment-scheme": "fps",
"end-to-end-identification": "24NENI24TROEBLRUOB55DD6P2E"
},
"created-at": "2023-11-22T17:01:54.359Z",
"submission-status": "processing",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A"
}
Payments made from bare trust and easy access savings accounts are subject to a withdrawal schedule, which introduces a delay between payment submission and payment processing, making them future dated payments. A future dated payment is indicated by a submission with submission-status set to scheduled and the presence of a scheduled-at field, which defines the earliest time at which payment processing can start. Once the scheduled-at time has passed you can track the progression of the payment by querying the submission-url for changes in submission-status.
{
"submission-url": "/v0/submissions/ps.nsy0zkWEXlWecCgoRsUuug",
"submission-scheme-information": {
"payment-scheme": "fps",
"end-to-end-identification": "24NENI24TROEBLRUOB55DD6P2E"
},
"created-at": "2023-11-22T17:01:54.359Z",
"submission-status": "scheduled",
"scheduled-at": "2023-11-23T17:00:00.000Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A"
}
Track the submission
Payment processing is asynchronous. Once you have triggered processing by creating a submission you have two options for tracking that submission until the payment is delivered.
- Listen to events sent to your webhook.
- Poll the submission.
- webhook based tracking
- poll based tracking
After creating the submission you will initially receive a submission-created event.
{
"event-url": "/v0/events/ev._GXe6VjtU-ykVVAbjMt2oQ",
"event-type": "submission-created",
"event-payload": {
"created-at": "2023-11-22T17:10:42.021Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A",
"submission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps"
},
"submission-status": "processing",
"submission-url": "/v0/submissions/ps.hnj5b1cHV9a5ezf0Zcjt_A"
},
"created-at": "2023-11-22T17:10:42.021Z"
}
If your payment is a future dated payment, you will promptly receive a submission-updated event with submission-status set to scheduled; payment processing will pause at this point as dictated by the withdrawal schedule. Otherwise, the payment will be processed immediately, the funds will be debited from your account, and you will receive a transaction-created event.
{
"event-url": "/v0/events/ev.r9EERwzIVVWzjTwcPe2pgA",
"event-type": "transaction-created",
"event-payload": {
"account-url": "/v0/bank/accounts/ba.Hdq7jeJvQomDbMFWfojj3A",
"balance-change": {
"currency": "GBP",
"value": "20.00"
},
"account-transaction-url": "/v0/bank/transactions/tr.itUux2E-Uqy18hUSeAkxBQ",
"account-balance": {
"currency": "GBP",
"value": "1940.00"
},
"transaction-origin-type": "payment",
"balance-change-direction": "debit",
"post-datetime": "2023-11-22T17:10:42.223Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A"
},
"created-at": "2023-11-22T17:10:42.021Z"
}
If payment processing succeeds you will receive a submission-updated event where submission-status is delivered. At this point the debit of funds from your account is confirmed and they are unlikely to be credited back.
Where the scheme provides an acceptance code, submission-scheme-information also includes a scheme-status-code and a human-readable scheme-status-code-description. 0000 indicates the payment was accepted without qualification; codes 0080 to 0084 indicate acceptance at a qualified time — for example, 0081 means the payment was accepted on the same day. See Scheme status codes for the codes you may see on failed and returned payments.
{
"event-url": "/v0/events/ev.xApuTv4iWpOEYlYXENVdnA",
"event-type": "submission-updated",
"event-payload": {
"created-at": "2023-11-22T17:10:42.021Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A",
"submission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps",
"scheme-status-code": "0000",
"scheme-status-code-description": "Accepted without qualification."
},
"submission-status": "delivered",
"submission-url": "/v0/submissions/ps.hnj5b1cHV9a5ezf0Zcjt_A"
},
"created-at": "2023-11-22T17:10:42.021Z"
}
Poll the submission-url returned in the previous response until the submission-status is delivered. At this point the debit of funds from your account is confirmed and they are unlikely to be credited back.
If the submission-status is scheduled you will see no further change in submission-status until after the scheduled-at time.
curl 'https://api.griffin.com${SUBMISSION_URL}' \
-H 'Content-Type: application/json' \
-H "Authorization: GriffinAPIKey $GRIFFIN_API_KEY"
{
"submission-url": "/v0/submissions/ps.zlN6XNfMUjOUxQZeLPYlHQ",
"submission-scheme-information": {
"payment-scheme": "fps",
"end-to-end-identification": "COJ3RENWIVJ5RIIAMBIO4MQAQ4",
"scheme-status-code": "0000",
"scheme-status-code-description": "Accepted without qualification."
},
"created-at": "2023-11-22T16:45:46.970Z",
"submission-status": "delivered",
"payment-url": "/v0/payments/pm.pKnif2DATdalIWbteD8W9w"
}
Failed payments
Payment processing may fail, in which case the submission moves to failed and you receive a submission-updated event. Failure can occur for many reasons, at two different points:
- Before we send the payment to the scheme. Griffin fails the payment itself, for example because the account has insufficient funds.
- After we send the payment to the scheme. The scheme or the receiving bank rejects the payment, for example because of an invalid sort code and account number combination.
The submission tells you why in one of two fields, depending on where the failure happened:
submission-status-reasonis set when Griffin fails the submission before it reaches the scheme. Its values areinsufficient-funds,bank-account-closedandsubmission-already-processed.submission-scheme-information.scheme-status-codeis set when the payment is rejected after Griffin has sent it, by the scheme or the receiving bank. Griffin passes the code through unchanged. Where we recognise the code, we add ascheme-status-code-description. See Scheme status codes.
Both fields are carried in the submission-updated event, so you don't need to fetch the submission to find out why it failed. They are also present when you fetch the submission.
Here is a submission-updated event for a payment rejected by the receiving bank:
{
"event-url": "/v0/events/ev.Qm1kzXK0R0e7jZC1bQy6Fg",
"event-type": "submission-updated",
"event-payload": {
"created-at": "2023-11-22T17:10:42.021Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A",
"submission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps",
"scheme-status-code": "1114",
"scheme-status-code-description": "Beneficiary sort code / account number unknown."
},
"submission-status": "failed",
"submission-url": "/v0/submissions/ps.hnj5b1cHV9a5ezf0Zcjt_A",
"unique-scheme-identifier": "PGIT2IS7AJG77D2HK23020240212826NatWes "
},
"created-at": "2023-11-22T17:10:43.512Z"
}
And here is one for a payment Griffin failed before sending it to the scheme:
{
"event-url": "/v0/events/ev.9bYy0Ta6Qf2m4jVYd5TtHA",
"event-type": "submission-updated",
"event-payload": {
"created-at": "2023-11-22T17:10:42.021Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A",
"submission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps"
},
"submission-status": "failed",
"submission-status-reason": "insufficient-funds",
"submission-url": "/v0/submissions/ps.hnj5b1cHV9a5ezf0Zcjt_A"
},
"created-at": "2023-11-22T17:10:42.350Z"
}
If funds were debited from the account during payment processing, they are credited back when the payment fails. The credit is a second transaction for the same payment: you receive another transaction-created event, with balance-change-direction set to credit and the same payment-url as the original debit. One payment can therefore be associated with multiple transactions.
Returned payments
A payment that was delivered can later be returned by the receiving bank: for example, because the beneficiary account has since been closed, or the beneficiary did not expect the funds. Timing is controlled by the receiving bank, not Griffin, within limits set by the scheme. A return typically arrives by the next working day, and at most three working days after the original payment.
A return surfaces in two ways:
- The original submission moves to
returned. You receive asubmission-updatedevent withsubmission-statusset toreturned. The scheme's return reason is carried inscheme-status-code, with ascheme-status-code-descriptionwhere we recognise the code. - A new inbound payment arrives, crediting the funds back. You receive
payment-created,admission-created,transaction-createdandadmission-updatedevents, as for any inbound Faster Payment. Where the scheme provides them, the return's admission carries theunique-scheme-identifierof the submission being returned inoriginal-unique-scheme-identifier, and the original payment'send-to-end-identification.
{
"event-url": "/v0/events/ev.sR4fqH3zQp6KcN1gXb7WmA",
"event-type": "submission-updated",
"event-payload": {
"created-at": "2023-11-22T17:10:42.021Z",
"payment-url": "/v0/payments/pm.ssvMhtYTTc6DTyX_R1kM4A",
"submission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps",
"scheme-status-code": "00000002",
"scheme-status-code-description": "Beneficiary Account Closed"
},
"submission-status": "returned",
"submission-url": "/v0/submissions/ps.hnj5b1cHV9a5ezf0Zcjt_A",
"unique-scheme-identifier": "PGIT2IS7AJG77D2HK23020240212826NatWes "
},
"created-at": "2023-11-24T09:02:15.117Z"
}
{
"event-url": "/v0/events/ev.Lk8dWz2nTq6pV0cYx3JhEA",
"event-type": "admission-created",
"event-payload": {
"account-url": "/v0/bank/accounts/ba.Hdq7jeJvQomDbMFWfojj3A",
"admission-scheme-information": {
"end-to-end-identification": "HEHYFKNFNRNW3OEN4W3KDEPDCU",
"payment-scheme": "fps"
},
"admission-status": "processing",
"admission-url": "/v0/admissions/pa.3fN0wQxaRtKcV8m2LbYd1g",
"created-at": "2023-11-24T09:02:14.980Z",
"original-unique-scheme-identifier": "PGIT2IS7AJG77D2HK23020240212826NatWes ",
"payment-url": "/v0/payments/pm.c4uK7pXvSgm9QwTzE2RnLA",
"unique-scheme-identifier": "PGIT2IS7AJG77D2HK23020240212826Griffi "
},
"created-at": "2023-11-24T09:02:14.980Z"
}
To match a return to the payment it returns, compare the original-unique-scheme-identifier on the inbound admission with the unique-scheme-identifier on your submissions. The return's end-to-end-identification also matches the original submission's, so you can use that as a secondary check.
Populating original-unique-scheme-identifier and end-to-end-identification on a return is best effort: it depends on what we receive from the scheme. If a return arrives without them and you can't tell which payment it returns, contact support@griffin.com.
Reconciling failures and returns
Match on identifiers, not on event order. Webhook events are not guaranteed to arrive in order, and the credit that reverses a failed or returned payment can reach you before the submission-updated event that says the payment failed or was returned. An integration that credits its end customer on every inbound credit, and again on every failure or return, can credit them twice.
Instead, treat each inbound credit and each submission-updated as evidence about one payment, and reconcile against the payment itself:
- A credit-back after a failure has the same
payment-urlas the original debit. - A return is a new inbound payment whose admission carries the
original-unique-scheme-identifierof your submission.
Decide what to do once you have matched the events to the original payment, whichever order they arrived in.
Submissions that stay in processing
A submission is typically processing for a few minutes. One that stays there for longer is usually waiting on Griffin: for example, because it has been held for a compliance check or because the scheme has not yet confirmed the outcome. There is no automatic timeout. The submission will always transition to delivered, failed or returned, so keep tracking it rather than creating a new payment, which could result in a duplicate.
If a submission has been processing for longer than a few minutes, raise it with support@griffin.com, quoting its submission-url.
Scheme status codes
The scheme-status-code on a submission is passed through by Griffin. It is not a Griffin error code. The codes are defined by the Faster Payments scheme. Most are sent by the scheme; a few are sent by the receiving bank, and are listed separately below. The scheme defines many more codes than are listed here; the tables below cover the ones you are most likely to see. Where Griffin recognises a code, the submission also carries a scheme-status-code-description. Don't rely on the description being present: for codes we don't recognise, only the code is returned.
Acceptance codes (on delivered submissions)
| Code | Description |
|---|---|
0000 | Accepted without qualification. |
0080 | Accepted at an unspecified time and date within the PSD guidelines. |
0081 | Accepted on the same day. |
0082 | Accepted on the next calendar day. |
0083 | Accepted on the next working day. |
0084 | Accepted after the next working day within the PSD guidelines. |
Rejection codes (on failed submissions)
| Code | Description |
|---|---|
1100 | For business reasons only. |
1114 | Beneficiary sort code / account number unknown. |
1160 | Beneficiary account closed. |
1161 | Beneficiary account stopped. |
1162 | Beneficiary account name does not match beneficiary account number. |
1163 | Account cannot be identified without data in reference information field. |
1164 | Reference information is incorrect. |
1165 | Account is not in currency quoted. |
1166 | Account transferred. |
1167 | Beneficiary deceased. |
1169 | Payment cannot be applied due to beneficiary sensitivities. |
1170 | Terms and conditions of account do not permit crediting of these funds. |
1181 | Duplicate FPID. |
Return reason codes (on returned submissions)
| Code | Description |
|---|---|
00000001 | Beneficiary sort code / account number unknown |
00000002 | Beneficiary account closed |
00000003 | Beneficiary account stopped |
00000004 | Beneficiary deceased |
00000005 | Account cannot be identified without data in reference information field |
00000006 | Beneficiary account name does not match beneficiary account number |
00000007 | Return requested by sender of original payment |
00000008 | Account is not in currency quoted |
00000009 | Beneficiary not expecting funds / instructed return |
00000010 | Terms and conditions of account do not permit crediting of these funds |
00000011 | Fraudulent payment suspected |
00000012 | Account transferred |
00000013 | Reason not specified because of sensitivities |
00000014 | Other |
Receiving bank rejection codes (on failed submissions)
These codes are defined by the Faster Payments scheme, but they are sent by the receiving bank rather than by the scheme itself.
| Code | Description |
|---|---|
X001 | Payee sort code not valid for Faster Payments. |
X005 | Credit account number fails modulus checking. |
Codes X001, X005 and 1114 are the most common error cases. All three mean the payee's details did not identify a valid Faster Payments account: the sort code is not reachable over Faster Payments, the account number fails the modulus check for that sort code, or the receiving bank does not recognise the account. A Confirmation of Payee check before the first payment to a new payee catches most of these.