How do you get user consent for ConsumptionRequest?

https://developer.apple.com/documentation/appstoreserverapi/send_consumption_information

If the customer provided consent, respond by calling this API and sending the consumption data in the ConsumptionRequest to the App Store. If not, respond by calling this API and setting the customerConsented value to false in the ConsumptionRequest; don't send any other information.

Since our server would be receiving CONSUMPTION_REQUEST server notifications and will be the one calling the Consumption API, how do we know if the user has provided consent? That info doesn't seem to be in the server notification or anywhere else.

Hello @crauss77 ,

Apple’s CONSUMPTION_REQUEST server notification does not include any indication of user consent (customerConsented). That’s by design Apple expects your app, not your server, to collect and confirm the user’s consent before sending consumption data to Apple.

Here’s how it’s meant to work 👇

  1. App receives refund request sheet prompt

When the user initiates a refund through Apple (for example, via the “Report a Problem” link or refund sheet), Apple sends a CONSUMPTION_REQUEST notification to your server.

This is Apple saying: “Please send us details about how this user consumed their purchase.”

  1. Your app is responsible for obtaining consent

Before your server calls the Consumption API, you must collect the user’s consent within the app.

Apple requires that customerConsented = true be included in your API call; otherwise, Apple rejects the request.

There is no fallback or assumption Apple will not process a consumption update without explicit consent.

How do you get user consent for ConsumptionRequest?
 
 
Q