Block
Blocks are created to prevent certain customer details from being used when creating mandates.
The details used to create blocks can be exact matches, like a bank account or an email, or a more generic match such as an email domain or bank name. Please be careful when creating blocks for more generic matches as this may block legitimate payers from using your service.
New block types may be added over time.
A block is in essence a simple rule that is used to match against details in a newly created mandate. If there is a successful match then the mandate is transitioned to a "blocked" state.
Please note:
- Payments and subscriptions cannot be created against a mandate in blocked state.
- A mandate can never be transitioned out of the blocked state.
The one exception to this is when blocking a 'bank_name'. This block will prevent bank accounts from being created for banks that match the given name. To ensure we match bank names correctly an existing bank account must be used when creating this block. Please be aware that we cannot always match a bank account to a given bank name.
Create a block#
/blocksCreates a new Block of a given type. By default it will be active.
Request Body
blocksobject5 properties
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
Response 201
Resource created successfully
blocksobject8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectList multiple blocks#
/blocksReturns a cursor-paginated list of your blocks.
Response 200
Successful response
blocksarray8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
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 block#
/blocks/{block_id}Retrieves the details of an existing block.
Path Parameters
| Name | Type | Description |
|---|---|---|
block_idrequired | string | The block id |
Response 200
Successful response
blocksobject8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectDisable a block#
/blocks/{block_id}/actions/disableDisables a block so that it no longer will prevent mandate creation.
Path Parameters
| Name | Type | Description |
|---|---|---|
block_idrequired | string | The block id |
Response 200
Action completed successfully
blocksobject8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectEnable a block#
/blocks/{block_id}/actions/enableEnables a previously disabled block so that it will prevent mandate creation
Path Parameters
| Name | Type | Description |
|---|---|---|
block_idrequired | string | The block id |
Response 200
Action completed successfully
blocksobject8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectCreate blocks by reference#
/blocks/block_by_refCreates new blocks for a given reference. By default blocks will be active. Returns 201 if at least one block was created. Returns 200 if there were no new blocks created.
Request Body
blocksobject5 properties
reference_typestring
Type of entity we will seek to get the associated emails and bank accounts to create blocks from. This can currently be one of 'customer' or 'mandate'.
customermandatereference_valuestring
This field is a reference to the entity you wish to block based on its emails and bank accounts. This may be the ID of a customer or a mandate. This means in order to block by reference the entity must have already been created as a resource.
reason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
Response 201
Resource created successfully
blocksarray8 properties
idstring
Unique identifier, beginning with "BLC".
block_typestring
Type of entity we will seek to match against when blocking the mandate. This can currently be one of 'email', 'email_domain', 'bank_account', or 'bank_name'.
emailemail_domainbank_accountbank_namereason_typestring
The reason you wish to block this payer, can currently be one of 'identity_fraud', 'no_intent_to_pay', 'unfair_chargeback'. If the reason isn't captured by one of the above then 'other' can be selected but you must provide a reason description.
identity_fraudno_intent_to_payunfair_chargebackotherreason_descriptionstring
This field is required if the reason_type is other. It should be a description of the reason for why you wish to block this payer and why it does not align with the given reason_types. This is intended to help us improve our knowledge of types of fraud.
resource_referencestring
This field is a reference to the value you wish to block. This may be the raw value (in the case of emails or email domains) or the ID of the resource (in the case of bank accounts and bank names). This means in order to block a specific bank account (even if you wish to block generically by name) it must already have been created as a resource.
activeboolean
Shows if the block is active or disabled. Only active blocks will be used when deciding if a mandate should be blocked.
created_atstring
Fixed timestamp, recording when this resource was created.
updated_atstring
Fixed timestamp, recording when this resource was updated.
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_idstringtypestringmetadataobjectlinksobject