# Cancel Onboarding

Cancels a recipient. This action can be undone by unblocking the recipient.

**POST** `/recipients/{recipient_id}/onboardings/{onboarding_id}/cancel`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Cancel Onboarding

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `recipient_id` (string, required)
  The unique identifier of the recipient
- `onboarding_id` (string, required)
  The unique identifier of the onboarding associated with this action.

## Responses

### 200

Recipient cancelled successfully

- `id` (string)
  The unique identifier of the recipient.
- `account_id` (string)
  The account identifier associated with this recipient.
- `merchant_recipient_id` (string)
  Unique identifier of the recipient defined by the merchant.
- `national_entity` (string)
  Beneficiary's national entity type.
- `entity_type` (string)
  Beneficiary's type of organization.
- `first_name` (string)
  Beneficiary's name.
- `last_name` (string)
  Beneficiary's last name.
- `legal_name` (string,null)
  Beneficiary's legal name.
- `email` (string)
  The Beneficiary's email.
- `date_of_birth` (string)
  Beneficiary's date of birth.
- `country` (string)
  The Beneficiary's country.
- `website` (string)
  The seller's website URL.
- `industry` (string)
  The seller's industry.
- `merchant_category_code` (string)
  The merchant category code (MCC) (MAX 235; MIN 1).
- `document` (object)
  - `document_number` (string)
  - `document_type` (string)
- `phone` (object)
  - `country_code` (string)
  - `number` (string)
- `address` (object)
  - `address_line_1` (string)
  - `address_line_2` (string,null)
  - `city` (string)
  - `country` (string)
  - `state` (string)
  - `zip_code` (string)
  - `neighborhood` (string)
- `legal_representatives` (object[])
  - `merchant_reference` (string)
  - `first_name` (string)
  - `last_name` (string)
  - `email` (string)
  - `date_of_birth` (string)
  - `country` (string)
  - `nationality` (string)
  - `title` (string)
  - `publicly_exposed_person` (boolean)
  - `ultimate_beneficial_owner` (boolean)
  - `document` (object)
    - `document_type` (string)
    - `document_number` (string)
  - `phone` (object)
    - `country_code` (string)
    - `number` (string)
  - `address` (object)
    - `address_line_1` (string)
    - `address_line_2` (string,null)
    - `country` (string)
    - `state` (string)
    - `city` (string)
    - `zip_code` (string)
- `withdrawal_methods` (object)
  - `bank` (object)
    - `code` (string)
    - `branch` (string)
    - `branch_digit` (string,null)
    - `account` (string)
    - `account_digit` (string,null)
    - `account_type` (string)
    - `routing` (string)
    - `country` (string)
    - `currency` (string)
- `documentation` (object[])
  - `file_name` (string)
  - `content_type` (string)
  - `content_category` (string)
  - `content` (string)
- `onboardings` (object[])
  - `id` (string)
  - `type` (string)
  - `workflow` (string)
  - `status` (string)
  - `callback_url` (string)
  - `provider` (object)
    - `id` (string)
    - `connection_id` (string)
    - `recipient_id` (string,null)
    - `redirect_url` (string,null)
    - `onboarding_url` (string,null)
    - `legal_entity` (string,null)
    - `balance_account_id` (string,null)
    - `legal_entity_id` (string,null)
  - `documentation` (object[])
    - `file_name` (string)
    - `content_type` (string)
    - `content_category` (string)
    - `content` (string)
  - `legal_representatives` (object[])
  - `requirements` (object[])
    - `field` (string)
    - `message` (string)
    - `status` (string)
  - `withdrawal_methods` (object)
    - `bank` (object)
      - `code` (string)
      - `branch` (string)
      - `branch_digit` (string,null)
      - `account` (string)
      - `account_digit` (string,null)
      - `account_type` (string)
      - `routing` (string)
      - `country` (string)
      - `currency` (string)
  - `terms_of_service` (object)
    - `acceptance` (boolean)
    - `date` (string)
    - `ip` (string)
  - `created_at` (string<date-time>)
  - `updated_at` (string<date-time>)
- `split_configuration` (object)
  Rules for automatic split calculation at the recipient level.
  - `calculation_type` ("PERCENTAGE" | "FIXED" | "MIXED")
    The method used to calculate the split amount.
  - `percentage` (number)
    Percentage of the total payment amount to be split (0.01-100.00). Required if calculation_type is PERCENTAGE or MIXED.
  - `fixed_amount` (number)
    Fixed amount to be split. Required if calculation_type is FIXED or MIXED.
  - `currency` (string)
    ISO 4217 currency code. Required for all calculation types.
  - `rounding_mode` ("STANDARD" | "ROUND_UP" | "ROUND_DOWN")
    The rounding strategy for calculated amounts. Required for PERCENTAGE and MIXED.
- `created_at` (string<date-time>)
  Recipient creation date (ISO 8601 MAX 27; MIN 27).
- `updated_at` (string<date-time>)
  Last Recipient updated date (ISO 8601 MAX 27; MIN 27).

Example:

```json
{
  "id": "3aaa4d82-11e8-48ce-8ef5-04eee3a10802",
  "account_id": "fe14c7c6-c75e-43b7-bdbe-4c87ad52c482",
  "merchant_recipient_id": "MERCHANT_182acf1d-faeb-4ff0-94cd-7fab11b282f6",
  "national_entity": "INDIVIDUAL",
  "entity_type": "PRIVATE",
  "first_name": "Juan",
  "last_name": "Perez",
  "legal_name": null,
  "email": "juan.perez@example.com",
  "date_of_birth": "1990-01-15",
  "country": "CO",
  "website": "https://juanperez.com",
  "industry": "Technology",
  "merchant_category_code": "5734",
  "document": {
    "document_number": "1234567890",
    "document_type": "CC"
  },
  "phone": {
    "country_code": "57",
    "number": "3001234567"
  },
  "address": {
    "address_line_1": "Carrera 7 # 32-16",
    "address_line_2": "Oficina 201",
    "city": "Bogota",
    "country": "CO",
    "state": "Cundinamarca",
    "zip_code": "110311",
    "neighborhood": "Centro"
  },
  "legal_representatives": [
    {
      "merchant_reference": "REP_001",
      "first_name": "Maria",
      "last_name": "Gonzalez",
      "email": "maria.gonzalez@example.com",
      "date_of_birth": "1985-05-20",
      "country": "CO",
      "nationality": "CO",
      "title": "CEO",
      "publicly_exposed_person": false,
      "ultimate_beneficial_owner": true,
      "document": {
        "document_type": "CC",
        "document_number": "0987654321"
      },
      "phone": {
        "country_code": "57",
        "number": "3109876543"
      },
      "address": {
        "address_line_1": "Calle 26 # 13-19",
        "address_line_2": null,
        "country": "CO",
        "state": "Cundinamarca",
        "city": "Bogota",
        "zip_code": "110311"
      }
    }
  ],
  "withdrawal_methods": {
    "bank": {
      "code": "001",
      "branch": "004",
      "branch_digit": "123",
      "account": "1234567890",
      "account_digit": "123",
      "account_type": "SAVINGS",
      "routing": "021000021",
      "country": "CO",
      "currency": "COP"
    }
  },
  "documentation": [
    {
      "file_name": "cc-front.pdf",
      "content_type": "application/pdf",
      "content_category": "IDENTIFICATION",
      "content": "JVBERi0xLjQKJ..."
    }
  ],
  "onboardings": [
    {
      "id": "84c42684-dbe5-4e0f-bd17-4d094e19762d",
      "type": "ONBOARD_ONTO_THE_PROVIDER",
      "workflow": "DIRECT",
      "status": "CANCELLED",
      "callback_url": "https://merchant.example.com/webhook/onboarding",
      "provider": {
        "id": "ALELO",
        "connection_id": "cc389b51-53a1-4a29-af40-c8cee26c3399",
        "recipient_id": null,
        "redirect_url": null,
        "onboarding_url": null,
        "legal_entity": null,
        "balance_account_id": null,
        "legal_entity_id": null
      },
      "documentation": [
        {
          "file_name": "utility-bill.pdf",
          "content_type": "application/pdf",
          "content_category": "ADDRESS_PROOF",
          "content": "JVBERi0xLjQKJ..."
        }
      ],
      "legal_representatives": [],
      "requirements": [
        {
          "field": "document.cc",
          "message": "Provide CC document image",
          "status": "PENDING"
        }
      ],
      "withdrawal_methods": {
        "bank": {
          "code": "002",
          "branch": "002",
          "branch_digit": null,
          "account": "9876543210",
          "account_digit": null,
          "account_type": "SAVINGS",
          "routing": "021000022",
          "country": "CO",
          "currency": "COP"
        }
      },
      "terms_of_service": {
        "acceptance": true,
        "date": "2025-07-21T20:43:54Z",
        "ip": "129.21.111.11"
      },
      "created_at": "2025-08-27T15:41:19.516982Z",
      "updated_at": "2025-08-27T15:41:19.516989Z"
    }
  ],
  "split_configuration": {
    "calculation_type": "PERCENTAGE",
    "percentage": 10.5,
    "fixed_amount": 5,
    "currency": "USD",
    "rounding_mode": "STANDARD"
  },
  "created_at": "2025-08-27T15:41:19.497413Z",
  "updated_at": "2025-08-27T15:41:19.497425Z"
}
```

### 401

Unauthorized

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```

### 403

Forbidden

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```

### 409

Conflict - Recipient cannot be cancelled

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```