# Get a payment

`GET /v1/orgs/{orgId}/payments/{paymentId}`

**Get a payment** (Payments). Returns the payment, its status, and the status timeline. The same call reads a withdrawal, which is a payment with `purpose` `withdrawal`.

Prerequisite: Permission `payments:view`. `paymentId` is the id from create payment or create withdrawal.

**Get withdrawal status** (Withdrawal). There is no get-withdrawal endpoint. Create withdrawal returns a payment id. This call is that payment, including `status` and the timeline. `purpose` is `withdrawal`.

Prerequisite: Permission `payments:view`. Use the id from create withdrawal.

A payment with its status, fee, rail, failure details and status history.

Requires: permission payments:view

```bash
curl -X GET "https://sandbox-api.payezy.io/v1/orgs/$ORG_ID/payments/$PAYMENT_ID" \
  -H "Authorization: Bearer $PAYEZY_KEY"
```
