Logo
GoCardless API API Documentation

Create a Block

POST {{url}}/blocks

Creates a new Block of a given type. By default it will be active.

Create a Block API Docs

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status Created

{ "blocks": { "id": "BLC000019891MTD", "block_type": "email", "reason_type": "no_intent_to_pay", "created_at": "2024-03-22T20:45:43.725Z", "updated_at": "2024-03-22T20:45:43.725Z", "reason_description": "test", "resource_reference": "example123457@example.com", "active": true } }



Curl
curl -X POST 'https://api-sandbox.gocardless.com/blocks' -d '{"blocks":{"block_type":"email","resource_reference":"example12345@example.com","reason_type":"no_intent_to_pay","reason_description":"test"}}'

ENDPOINTS