> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/objects/payment.md).

# Payment

A Payment usually represents a transaction at a Payment Service Provider. A Payment can also represent a retry attempt. In this case it is linked to an original or top-level Payment record. A top-level payment record is then associated with an Invoice or Order.

### Fields

#### amountCents ([Int](/graphql-api/api-reference/objects/int.md)!)

Payment amount in cents.

#### amountWithSymbol ([String](/graphql-api/api-reference/objects/string.md)!)

Payment amount with currency symbol.

#### createdAt ([ISO8601DateTime](/graphql-api/api-reference/objects/iso-8601-date-time.md)!)

When the payment record was first created.

#### currency ([String](/graphql-api/api-reference/objects/string.md))

Payment currency

#### id ([ID](/graphql-api/api-reference/objects/id.md)!)

The database ID of the payment.

#### invoice ([Invoice](/graphql-api/api-reference/objects/invoice.md))

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

#### paymentId ([ID](/graphql-api/api-reference/objects/id.md))

The external payment reference from the payment service provider.

#### paymentStatus ([PaymentStatusEnum](/graphql-api/api-reference/objects/payment-status-enum.md)!)

Status of the payment.

#### paymentType ([PaymentTypeEnum](/graphql-api/api-reference/objects/payment-type-enum.md)!)

The type of transaction that this payment represents

#### refunds (\[[Refund](/graphql-api/api-reference/objects/refund.md)!])

The refunds for this payment.

#### retryPaymentUrl ([String](/graphql-api/api-reference/objects/string.md))

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~~](/graphql-api/api-reference/objects/string.md)~~)~~

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

#### subscription ([Subscription](/graphql-api/api-reference/objects/subscription.md))

The subscription associated with this payment.

#### token ([ID](/graphql-api/api-reference/objects/id.md)!)

Token to identify the payment with

#### updatedAt ([ISO8601DateTime](/graphql-api/api-reference/objects/iso-8601-date-time.md)!)

When the payment record was last updated.
