Stripe -> Create an Invoice Item
Readonly
Action summary
Stripe - Create an Invoice Item
How to Get the Stripe API Key
To retrieve your Stripe API key, follow these steps:
- Log in to your Stripe dashboard at https://dashboard.stripe.com.
- Navigate to Developers > API keys.
- Locate the Secret Key under the Standard keys section.
- Click Reveal test key (for testing) or use the live key for production.
- Copy the API key and store it securely.
Note: Never expose your API key in client-side applications.
1. Inputs
Specify if this function accepts any inputs or query parameters:
- customer_id (text)
- price_id (text)
- stripe_api_key (registry text from Settings Registry)
2. Function Stack
- Stripe API Request
- API Request to:
https://api.stripe.com/v1/invoiceitems - Returns as:
stripe_api
- API Request to:
- Precondition
- Condition:
var: stripe_api.response.status = 200
- Condition:
3. Response
- Key: As Self
- Value:
var: stripe_api.response.result
This function allows creating an invoice item in Stripe by making a request to the Stripe API with the necessary inputs. The API request ensures that a valid response (status 200) is received before proceeding.
Example Response
{
"id": "ii_123456789",
"object": "invoiceitem",
"customer": "cus_ABC123",
"invoice": "in_987654321",
"price": "price_001",
"amount": 2000,
"currency": "usd",
"description": "Service Charge",
"created": 1700000000,
"livemode": false
}
Version notes
2025-03-31 18:02:39
Current