Payment
Create a payment#
/paymentsThis fails with a mandate_is_inactive error if the linked mandate is cancelled or has failed. Payments can be created against mandates with status of: pending_customer_approval, pending_submission, submitted, and active.
Request Body
paymentsobject11 properties
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
app_feeobject
The amount to be deducted from the payment as the OAuth app's fee, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
retry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
faster_achboolean
Set this to true or false in the request to create an ACH payment to explicitly choose whether the payment should be processed through Faster ACH or standard ACH, rather than relying on the presence or absence of the charge date to indicate that.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
psu_interaction_typestring
Indicates how a Variable Recurring Payment (VRP) is initiated, by or on behalf of the payer.
in_session: The payer is actively participating in the payment creation session.off_session: The payer is not present during the transaction, and the payment is initiated by the merchant based on an established consent (e.g., a recurring subscription payment).
in_sessionoff_sessionlinksobject
1 properties
mandatestring
ID of the mandate against which this payment should be collected.
Response 201
Resource created successfully
paymentsobject15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectList payments#
/paymentsReturns a cursor-paginated list of your payments.
Response 200
Successful response
paymentsarray15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
metaobject2 properties
limitintegercursorsobject
2 properties
beforestring
Cursor pointing to the end of the desired set.
afterstring
Cursor pointing to the start of the desired set.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectGet a single payment#
/payments/{payment_id}Retrieves the details of a single existing payment.
Path Parameters
| Name | Type | Description |
|---|---|---|
payment_idrequired | string | The payment id |
Response 200
Successful response
paymentsobject15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectUpdate a payment#
/payments/{payment_id}Updates a payment object. This accepts only the metadata parameter.
Path Parameters
| Name | Type | Description |
|---|---|---|
payment_idrequired | string | The payment id |
Request Body
paymentsobject2 properties
retry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
Response 200
Successful response
paymentsobject15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectCancel a payment#
/payments/{payment_id}/actions/cancelCancels the payment if it has not already been submitted to the banks. Any metadata supplied to this endpoint will be stored on the payment cancellation event it causes.
This will fail with a cancellation_failed error unless the payment's status is pending_submission.
Path Parameters
| Name | Type | Description |
|---|---|---|
payment_idrequired | string | The payment id |
Request Body
paymentsobject1 properties
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
Response 200
Action completed successfully
paymentsobject15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectRetry a payment#
/payments/{payment_id}/actions/retryRetries a failed payment if the underlying mandate is active. You will receive a resubmission_requested webhook, but after that retrying the payment follows the same process as its initial creation, so you will receive a submitted webhook, followed by a confirmed or failed event. Any metadata supplied to this endpoint will be stored against the payment submission event it causes.
This will return a retry_failed error if the payment has not failed.
Payments can be retried up to 3 times.
Path Parameters
| Name | Type | Description |
|---|---|---|
payment_idrequired | string | The payment id |
Request Body
paymentsobject2 properties
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
Response 200
Action completed successfully
paymentsobject15 properties
idstring
Unique identifier, beginning with "PM".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
Minimum and maximum amounts vary by payment scheme. For more information, see Transaction limits
For Variable Recurring Payments (VRP), this must not exceed the mandate's max_amount_per_payment
constraint.
amount_refundedobject
Amount refunded, in the lowest denomination for the currency (e.g. pence in GBP, cents in EUR).
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
AUDCADDKKEURGBPNZDSEKUSDdescriptionstring
A human-readable description of the payment. This will be included in the notification email GoCardless sends to your customer if your organisation does not send its own notifications (see compliance requirements).
charge_datestring
A future date on which the payment should be collected. If not specified, the payment will be collected as soon as possible. If the value is before the mandate's next_possible_charge_date creation will fail. If the value is not a working day it will be rolled forwards to the next available one.
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
statusstring
One of:
pending_customer_approval: we're waiting for the customer to approve this paymentpending_submission: the payment has been created, but not yet submitted to the bankssubmitted: the payment has been submitted to the banksconfirmed: the payment has been confirmed as collectedpaid_out: the payment has been included in a payoutcancelled: the payment has been cancelledcustomer_approval_denied: the customer has denied approval for the payment. You should contact the customer directlyfailed: the payment failed to be processed. Note that payments can fail after being confirmed if the failure message is sent late by the banks.charged_back: the payment has been charged back
pending_customer_approvalpending_submissionsubmittedconfirmedpaid_outcancelledcustomer_approval_deniedfailedcharged_backlinksobject
5 properties
mandatestring
ID of the mandate against which this payment should be collected.
creditorstring
ID of creditor to which the collected payment will be sent.
payoutstring
ID of payout which contains the funds from this payment.
Note: this property will not be present until the payment has been successfully collected.
subscriptionstring
ID of subscription from which this payment was created.
Note: this property will only be present if this payment is part of a subscription.
instalment_schedulestring
ID of instalment_schedule from which this payment was created.
Note: this property will only be present if this payment is part of an instalment schedule.
faster_achboolean
This field indicates whether the ACH payment is processed through Faster ACH or standard ACH.
It is only present in the API response for ACH payments.
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDretry_if_possibleboolean
On failure, automatically retry the payment using intelligent retries. Default is false.
Important: To be able to use intelligent retries, Success+ needs to be enabled in GoCardless dashboard.
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to", "sepa_core", "sepa_credit_transfer" and "sepa_instant_credit_transfer" are supported.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject