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

Request Body

{"blocks"=>{"block_type"=>"email", "resource_reference"=>"example12345@example.com", "reason_type"=>"no_intent_to_pay", "reason_description"=>"test"}}

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