Skip to main content

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.

info

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:

  1. Sort code and account number (SCAN).
  2. A payee.
  3. A Griffin bank account.

For the creditor:

  • Set the creditor-type to "uk-domestic".
  • Set the account-number to that of the account you're sending money to.
  • Set the account-number-code to "bban".
  • Set the bank-id to the sort code of the account you're sending money to.
  • Set the bank-id-code to "gbdsc".
  • Set the account-holder to the name on the account that you're sending money to.
caution

Dashes are not currently accepted in sort codes.

For the payment-amount:

  • Set the value to your desired amount.
  • Set the currency to "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"
}
}'

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.

caution

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"}'

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"
}

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.

  1. Listen to events sent to your webhook.
  2. Poll the submission.

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"
}

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-reason is set when Griffin fails the submission before it reaches the scheme. Its values are insufficient-funds, bank-account-closed and submission-already-processed.
  • submission-scheme-information.scheme-status-code is 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 a scheme-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"
}
info

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:

  1. The original submission moves to returned. You receive a submission-updated event with submission-status set to returned. The scheme's return reason is carried in scheme-status-code, with a scheme-status-code-description where we recognise the code.
  2. A new inbound payment arrives, crediting the funds back. You receive payment-created, admission-created, transaction-created and admission-updated events, as for any inbound Faster Payment. Where the scheme provides them, the return's admission carries the unique-scheme-identifier of the submission being returned in original-unique-scheme-identifier, and the original payment's end-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.

note

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​

tip

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-url as the original debit.
  • A return is a new inbound payment whose admission carries the original-unique-scheme-identifier of 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)

CodeDescription
0000Accepted without qualification.
0080Accepted at an unspecified time and date within the PSD guidelines.
0081Accepted on the same day.
0082Accepted on the next calendar day.
0083Accepted on the next working day.
0084Accepted after the next working day within the PSD guidelines.

Rejection codes (on failed submissions)

CodeDescription
1100For business reasons only.
1114Beneficiary sort code / account number unknown.
1160Beneficiary account closed.
1161Beneficiary account stopped.
1162Beneficiary account name does not match beneficiary account number.
1163Account cannot be identified without data in reference information field.
1164Reference information is incorrect.
1165Account is not in currency quoted.
1166Account transferred.
1167Beneficiary deceased.
1169Payment cannot be applied due to beneficiary sensitivities.
1170Terms and conditions of account do not permit crediting of these funds.
1181Duplicate FPID.

Return reason codes (on returned submissions)

CodeDescription
00000001Beneficiary sort code / account number unknown
00000002Beneficiary account closed
00000003Beneficiary account stopped
00000004Beneficiary deceased
00000005Account cannot be identified without data in reference information field
00000006Beneficiary account name does not match beneficiary account number
00000007Return requested by sender of original payment
00000008Account is not in currency quoted
00000009Beneficiary not expecting funds / instructed return
00000010Terms and conditions of account do not permit crediting of these funds
00000011Fraudulent payment suspected
00000012Account transferred
00000013Reason not specified because of sensitivities
00000014Other

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.

CodeDescription
X001Payee sort code not valid for Faster Payments.
X005Credit 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.