Skip to main content
Glama

mcp-google-sheets

retrieve-invoice.ts873 B
import { createAction } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod, AuthenticationType, } from '@activepieces/pieces-common'; import { stripeAuth } from '../..'; import { stripeCommon } from '../common'; export const stripeRetrieveInvoice = createAction({ name: 'retrieve_invoice', auth: stripeAuth, displayName: 'Retrieve an Invoice', description: 'Retrieves the details of an existing invoice by its ID.', props: { invoice_id: stripeCommon.invoice, }, async run(context) { const { invoice_id } = context.propsValue; const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: `${stripeCommon.baseUrl}/invoices/${invoice_id}`, authentication: { type: AuthenticationType.BEARER_TOKEN, token: context.auth, }, }); return response.body; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server