# Cancel Payment Link

**POST** `/payment-links/{code}/cancel`

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

Cancel Payment Link

## Authorization

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

## Path parameters

- `code` (string, required)
  The code of the payment link (UUID, 36 chars)

## Responses

### 200

200

- `code` (string)
- `country` (string)
- `availability` (object)
  - `start_at` (string)
  - `finish_at` (string)
- `status` (string)
- `description` (string)
- `amount` (object)
  - `currency` (string)
  - `value` (integer)
- `metadata` (object[])
  - `key` (string)
  - `value` (string)
- `split_payment_methods` (boolean)
- `payment_method_types` (string[])
- `one_time_use` (boolean)
- `callback_url` (string)
- `installments_plan` (any)
- `customer_payer` (any)
- `taxes` (any)
- `additional_data` (object)
  - `airline` (any)
  - `order` (any)
  - `seller_details` (any)
- `organization_code` (string)
- `account_code` (string)
- `checkout_url` (string)
- `payments_number` (integer)
- `merchant_image` (string)

Example:

```json
{
  "code": "aace3f6d-e26d-45d0-9a4f-66523909ddf9",
  "country": "US",
  "availability": {
    "start_at": "2023-01-15T14:00:12Z",
    "finish_at": "2023-10-29T14:00:12Z"
  },
  "status": "CANCELED",
  "description": "PRUEBA PAYMENT LINK 10/07",
  "amount": {
    "currency": "USD",
    "value": 5000
  },
  "metadata": [
    {
      "key": "some key",
      "value": "some value"
    }
  ],
  "split_payment_methods": false,
  "payment_method_types": [
    "PSE"
  ],
  "one_time_use": true,
  "callback_url": "https://checkout.sandbox.whitelabel.com/payment/status",
  "installments_plan": null,
  "customer_payer": null,
  "taxes": null,
  "additional_data": {
    "airline": null,
    "order": null,
    "seller_details": null
  },
  "organization_code": "b887a970-9722-44fe-ab17-106bf1b93577",
  "account_code": "8147da44-4de9-48ff-a194-51b2cd7d2a03",
  "checkout_url": "https://checkout.sandbox.whitelabel.com/payment?session=ac63a0d7-b2d7-4e72-9062-2e2e3a448359",
  "payments_number": 0,
  "merchant_image": ""
}
```

### 400

400

Example:

```json
{}
```