Block

Create a block

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

<p class="notice"><strong>Note</strong>: Block will be enabled if you try to create a block that already exists and is disabled.</p>
post/blocks

Request

  • Base URL
    https://api.gocardless.com
  • Auth
    HTTP bearer

Headers

GoCardless-Versionstring required

Request body

Example request

{
  "blocks": {
    "resource_reference": "example@example.com",
    "active": true
  }
}

Response

Resource created successfully

Example response

{
  "blocks": {
    "id": "BLC123",
    "resource_reference": "example@example.com",
    "active": true,
    "created_at": "2014-01-01T12:00:00.000Z",
    "updated_at": "2014-01-01T12:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.