# Retrieve Payment Link

**GET** `/payment-links/{code}`

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

Retrieve 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)
  - `device` (object)
    - `locale` (string)
    - `geolocation` (string)
    - `event_uuid` (string)
    - `user_agent` (string)
  - `payer_risk_data` (object)
    - `login_platform` (string)
    - `approved_transactions_2m` (integer)
    - `recent_transactions_3h` (integer)
    - `is_paid_user` (boolean)
    - `account_creation_date` (string)
- `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": "CREATED",
  "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,
    "device": {
      "locale": "es-CL",
      "geolocation": "string",
      "event_uuid": "string",
      "user_agent": "string"
    },
    "payer_risk_data": {
      "login_platform": "WEB",
      "approved_transactions_2m": 0,
      "recent_transactions_3h": 0,
      "is_paid_user": true,
      "account_creation_date": "20191005"
    }
  },
  "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
{}
```