# Retrieve a payment's payment method (/api/payments/get-payment-payment-method)

`GET https://api.comecero.com/api/v1/payments/{payment_id}/payment_method`

Returns the payment method used for the payment, with card details masked. Any token type may call it; a limited token only for a payment it is bound to.

## Parameters

- `payment_id` (path, required): The id of the payment.
- `show` (query): Comma-separated fields to return; all others are left out. Use dot notation for child fields (`customer.email`). You cannot send `show` and `hide` together (`400`). See [Customizing output](https://docs.comecero.com/docs/basic-concepts/customizing-output).
- `hide` (query): Comma-separated fields to leave out of the response. Use dot notation for child fields (`customer.email`). You cannot send `show` and `hide` together (`400`). See [Customizing output](https://docs.comecero.com/docs/basic-concepts/customizing-output).

Responses: 200, 400, 401, 403, 404, 500.

Full schemas: operation `get_payment_payment_method` in /openapi.json.