# createInvoicedOneTimeCharge

If initiating the charge succeeds, an invoice is also created. When initiating the charge fails, no invoice is created. It's possible that the payment and invoice status are open or pending until a final succesful payment status is received from your Payment Service Provider. This could take a couple of business days for certain payment methods, like SEPA direct debit.

### Arguments

| Argument                                                                                                                                             | Description                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| input ([CreateInvoicedOneTimeChargeInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/create-invoiced-one-time-charge-input)!) | Parameters for CreateInvoicedOneTimeCharge |

### CreateInvoicedOneTimeChargeInput Arguments

| Argument                                                                                          | Description                                     |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| subscriptionId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)      | ID of the subscription to charge and invoice.   |
| description ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)!) | Description to put as single invoice line item. |
| amountCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int)!)       | Amount in cents to charge and invoice.          |

### Return fields

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

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

#### paymentErrors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error)!]!)

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