App Store Server Notifications v2
POST
/v1/app-store/notifications
const url = 'https://api.pocketbell.dev/v1/app-store/notifications';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"signedPayload":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pocketbell.dev/v1/app-store/notifications \ --header 'Content-Type: application/json' \ --data '{ "signedPayload": "example" }'For Apple only. Signed by the App Store; anything else is refused.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
signedPayload
required
string
Examplegenerated
{ "signedPayload": "example"}Responses
Section titled “Responses”Processed.
Not a valid notification.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Which fields were wrong, for invalid_request.
Array<object>
object
field
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}