Palbase IAP · API
/iap/apple/xcode-offer-keySet Xcode’s offer key
Keeps the Subscription Offers Key of Xcode's StoreKit configuration (Editor › Subscription Offers Key), sealed: an app run there buys a promotional offer with Palbase's signature. The Xcode certificate is set first.
Called by your server, with the project's secret key.
Headers
Idempotency-Keystring · optionalMakes the write safe to send again (at most 255 characters). A retry with the same key and the same request gets the first answer back, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.Request body
key_idstring · requiredIts id.private_keystring · requiredIts .p8 (PEM).curl -X PUT "https://<your-ref>.palbase.studio/iap/apple/xcode-offer-key" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"key_id":"string","private_key":"string"}'Responses
200The key kept
400The request is malformed, or a field breaks a rule (the error names which)
401No key, not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key (`secret_key_required`)
409No Xcode certificate is set (`no_xcode_certificate`), or a request with this Idempotency-Key is still running
422The key is not one (`key_id_invalid`, `not_a_key`), or the Idempotency-Key was sent with another request
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation SetXcodeOfferKey of iap's contract.