# getPayment

### Arguments

| Argument                                                                           | Description |
| ---------------------------------------------------------------------------------- | ----------- |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id))    |             |
| token ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)) |             |

### Return fields

#### amountCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int)!)

Payment amount in cents.

#### amountWithSymbol ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)!)

Payment amount with currency symbol.

#### createdAt ([ISO8601DateTime](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date-time)!)

When the payment record was first created.

#### currency ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))

Payment currency

#### id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)

The database ID of the payment.

#### invoice ([Invoice](https://developer.firmhouse.com/graphql-api/api-reference/objects/invoice))

The invoice associated with this payment. The original payment and all its retry attempts are associated with one invoice.

#### paymentId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id))

The external payment reference from the payment service provider.

#### paymentStatus ([PaymentStatusEnum](https://developer.firmhouse.com/graphql-api/api-reference/objects/payment-status-enum)!)

Status of the payment.

#### paymentType ([PaymentTypeEnum](https://developer.firmhouse.com/graphql-api/api-reference/objects/payment-type-enum)!)

The type of transaction that this payment represents

#### refunds (\[[Refund](https://developer.firmhouse.com/graphql-api/api-reference/objects/refund)!])

The refunds for this payment.

#### retryPaymentUrl ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))

Send your customer to this URL to allow them to retry the failed payment. Append ?return\_url=<https://your-url> to send the customer back after a successful payment.

#### ~~status (~~[~~String~~](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)~~)~~

*`Deprecated: Use the 'payment_status' field instead.`*

#### subscription ([Subscription](https://developer.firmhouse.com/graphql-api/api-reference/objects/subscription)!)

The subscription associated with this payment.

#### token ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)

Token to identify the payment with

#### updatedAt ([ISO8601DateTime](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date-time)!)

When the payment record was last updated.
