apple_get_iap
Retrieve in-app purchase details from App Store Connect using the purchase ID to verify product information and manage app monetization.
Instructions
Get in-app purchase details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iapId | Yes | In-App Purchase ID |
Implementation Reference
- src/apple/tools.ts:1141-1143 (handler)The handler function for apple_get_iap which makes a request to the Apple API.
handler: async (client, args) => { return client.request(`${V2_BASE}/inAppPurchases/${args.iapId}`); }, - src/apple/tools.ts:1138-1140 (schema)The Zod schema definition for apple_get_iap input parameters.
schema: z.object({ iapId: z.string().describe('In-App Purchase ID'), }), - src/apple/tools.ts:1135-1144 (registration)The full ToolDef definition for apple_get_iap.
const getIAP: ToolDef = { name: 'apple_get_iap', description: 'Get in-app purchase details', schema: z.object({ iapId: z.string().describe('In-App Purchase ID'), }), handler: async (client, args) => { return client.request(`${V2_BASE}/inAppPurchases/${args.iapId}`); }, };