Projects V2

Save In-App Purchase Key

Changed on

Validates an App Store Server / In-App Purchase key (Key ID, Issuer ID, .p8, bundle ID) against Apple and, when accepted, persists it to the application with the private key sealed at rest. A rejection is returned as { valid: false, error }, not an HTTP error. With set_application_bundle_id: true, an app that has no bundle ID also gets bundle_id as its own, saved with the key in one transaction once Apple accepts the key; a bundle_id that isn't a valid bundle ID is a 400, and an app that already has a different bundle ID is a 409 with nothing saved. Requires applications:write scope.

put/v2/projects/{id}/applications/{application_id}/integrations/in-app-purchase/configuration

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/projects/{id}/applications/{application_id}/integrations/in-app-purchase/configuration
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required
application_idstring required

Request body

bundle_idstring required

App bundle ID the key must have access to

key_idstring required

In-App Purchase Key ID (10-char alphanumeric)

issuer_idstring required

App Store Connect Issuer ID (UUID)

private_keystring required

Contents of the downloaded .p8 private key (PEM)

set_application_bundle_idboolean

Also save bundle_id as the app's bundle ID when the app has none, in the same transaction as the key: both are saved, or neither is. Refused with a 409 when the app already has a different bundle ID. Left out, the app's bundle ID is not changed.

app_store_idstring

The App Store ID Apple gives for bundle_id, filled in on an app that has none, in the same transaction as the key and its bundle ID. Only read with set_application_bundle_id; an App Store ID already saved is never changed.

Response

Success

object'app_store_credentials_save_result' required
validboolean required
errorstring nullable required

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • info

      added the new optional request property