# Payment requests (text and email)

Ask a customer to pay an amount; they get a link by email and/or text.

```bash
curl -X POST https://paylynks.io/api/v1/payment_requests -H "Authorization: Bearer $PAYLYNKS_SECRET_KEY" \
  -H "Content-Type: application/json" -d '{
    "amount": 12900, "description": "Drain cleaning",
    "name": "Pat Lee", "email": "pat@example.com", "phone": "+19135550142", "sms_consent": true
  }'
```

- Sends on every channel you have details for, unless `channels` is given. Texting requires `sms_consent: true`.
- `customer` uses a saved customer's contact details; `send: false` only creates it.
- `expires_in_days` (default 30); `reminders: {offsets_days: [2, 5]}` days after sending.
- `POST /:id/send` resends, `POST /:id/cancel` stops the link. `GET /api/v1/payment_requests`, `GET /:id`.

Events: `payment_request.created`, `.sent`, `.paid`, `.canceled`, `.expired`.
