RORK LABJP
BUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verifyBUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verify
Articles/Dev Tools
Dev Tools/2026-06-30Advanced

Answering a Refund Request Within 12 Hours: Handling CONSUMPTION_REQUEST in Cloudflare Workers

How to receive the App Store CONSUMPTION_REQUEST notification for your Rork subscription app in Cloudflare Workers and respond to the Send Consumption Information API within 12 hours — with field-by-field mapping and the operational judgment behind it.

App Store Server API4RefundsCloudflare Workers24Subscriptions15StoreKit 216

Premium Article

I first noticed it while scanning subscription cancellation reasons: a handful of transactions where a refund went through right after the content had clearly been used up. This was around the time the revenue from my Rork-built apps had finally become predictable on a monthly basis. Refunds are a user's right, and I have no interest in fighting them. But when refunds keep clearing automatically even after someone has obviously consumed everything the purchase offered, it quietly eats into indie revenue.

That was when I first took CONSUMPTION_REQUEST seriously. When a user requests a refund through the App Store, Apple asks your app, "How much did this user consume this purchase?" If you answer honestly within 12 hours, your answer becomes part of how Apple decides the refund. There's no penalty for staying silent — but staying silent means giving up one of the few levers you have against "refund-after-full-use."

This guide builds that response flow entirely inside Cloudflare Workers, covering both how to fill the fields and the judgment behind them. I'll assume you already have a receiver for App Store Server Notifications V2; if you don't, read the self-hosted App Store Server Notifications V2 setup first, and you'll be able to bolt this Worker straight onto it.

When CONSUMPTION_REQUEST arrives, and the deadline

This notification only arrives when several conditions line up. First, you must have enabled Consumption Request delivery under "App Information" in App Store Connect. Second, the user must have filed a refund, and the transaction must be consumable, non-consumable, or a subscription. Auto-renewal transactions are included.

The deadline is 12 hours from the notification's signedDate. Miss it and your response is rejected. If a Cloudflare Worker does heavy synchronous work before returning a receipt response, Apple may time out, so the safe design is to return 200 immediately and push the actual API call to the background. Twelve hours is generous, so handling it behind the receive handler with waitUntil is more than enough.

ItemDetail
Notification typeCONSUMPTION_REQUEST
Response APIPUT /inApps/v1/transactions/consumption/{transactionId}
DeadlineWithin 12 hours of signedDate
Hard requirementBeing able to send customerConsented as true
If you don't respondNo penalty, but you lose one refund-deterrent signal

Without customerConsented, your data is ignored

This is the pitfall to internalize before anything else. The Send Consumption Information request has a boolean called customerConsented, and unless it is true, Apple ignores every other field no matter how accurately you fill it in. It is a declaration that "the customer has consented to provide consumption data to Apple."

So before you implement anything, you need to have collected that consent somewhere — in your terms of service, your privacy policy, or onboarding — with language like "we may share usage information with Apple to support fair handling of refund requests." In my own wallpaper and relaxation apps, I placed a link to that clause in the footer of the subscription purchase screen, and treat agreement to the terms as the basis for setting customerConsented. For users from whom I haven't obtained consent, I think it's more honest to skip the response entirely rather than send customerConsented: false.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Build a minimal Cloudflare Workers setup that receives the CONSUMPTION_REQUEST notification and answers the Send Consumption Information API within the 12-hour window — with working code
Get a mapping table for filling all twelve fields (consumptionStatus, deliveryStatus, refundPreference, and more) from the subscription and usage logs you already keep in KV
Define, as an operational rule, where to draw the line so honest data curbs abusive refunds without blocking refunds for users who genuinely need them
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Dev Tools2026-04-25
Outgrowing RevenueCat: A Self-Hosted Guide to App Store Server Notifications V2 for Rork Apps
A complete implementation guide for receiving App Store Server Notifications V2 in Cloudflare Workers without RevenueCat — covering JWS verification, idempotent state updates, user binding, and production testing for Rork apps.
Dev Tools2026-05-20
Rork × StoreKit 2 × App Store Server API — A Three-Layer Subscription Architecture for Indie Apps
How to combine StoreKit 2 and Apple's App Store Server API to protect subscription revenue in Rork iOS apps with three coordinated layers: client verification, server-side JWS validation, and notification reconciliation.
Dev Tools2026-07-11
Verifying StoreKit 2 Signed Transactions in a Cloudflare Worker
If you trust whatever the device says about its purchase state, a tampered entitlement walks right through. This walks through verifying StoreKit 2 signed transactions (JWS) in a Cloudflare Worker so you grant entitlements without trusting the client, with working code.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →