| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

--- 
    
**Parameters:**

- **linkId**  
  `uuid`  
  *required*

- **brandId**  
  `uuid`  
  *required*

- **externalReference**  
  `string | null`

- **amountInMinorUnits**  
  `number`  
  *required*

- **purpose**  
  `string`  
  *enum*  
  Defaults to `PURCHASE`  
  Allowed:  
  `MERCHANT_TOPUP`, `PURCHASE`

- **expiresAt**  
  `date-time | null`

- **successUrl**  
  `uri | null`

- **failureUrl**  
  `uri | null`

- **cancelUrl**  
  `uri | null`

- **metadata**  
  `object | null`

- **billingAddress**  
  `object`

- **shippingAddress**  
  `object`

- **lineItems**  
  `array of objects | null`  
  ADD object

- **accept**  
  `string`  
  *enum*  
  Defaults to `application/json`  
  Allowed:  
  `application/json`, `application/problem+json`

---

# Response Codes

- **200**      Returns the updated payment link.
- **400**      Bad Request
- **401**      Unauthorized
- **402**      Payment Required
- **403**      Forbidden
- **404**      Not Found
- **409**      Conflict
- **500**      Internal Server Error

---

### Base URL  
`https://api.superpayments.com/2026-04-01/payment-links/{linkId}`

```bash
curl --request PUT \ 
     --url https://api.superpayments.com/2026-04-01/payment-links/linkId \ 
     --header 'accept: application/json' \ 
     --header 'content-type: application/json' \ 
     --data '{
  "purpose": "PURCHASE"
}'
```

---
