API version v1

PrizeNest Developer Documentation

Signed server-to-server purchase and refund events for approved partners. API keys stay separate in the partner dashboard.

Manage API Keys

Errors

Stable error codes with plain-language retry guidance.

Partner API errors return JSON with success false and a stable code. Authentication, signature, scope, partner status, validation, idempotency, funding/rule, refund, and rate-limit errors are logged for partner and admin review.

Error shape
{
  "success": false,
  "error": {
    "code": "INVALID_SIGNATURE",
    "message": "Invalid request signature."
  }
}

Reference

CodeHTTPMeaningHow to fixRetry
INVALID_API_KEY401Missing, unknown, malformed, or secret-less key.Fix credentials before retrying.No
CREDENTIAL_REVOKED403The credential was revoked.Create or rotate a credential.No
CREDENTIAL_EXPIRED403The credential expired.Generate a new credential.No
FORBIDDEN_SCOPE403The key lacks the required scope.Use a key with the endpoint scope.No
MISSING_SIGNATURE401X-PrizeNest-Signature is absent.Send a valid signature header.No
INVALID_SIGNATURE401The HMAC digest does not match.Check path, body hash, timestamp, and secret.No
TIMESTAMP_EXPIRED401The timestamp is outside the allowed clock window.Sync clocks and retry promptly.Yes
INVALID_REQUEST400JSON, schema, identifier, or forbidden field validation failed.Correct the payload.No
IDEMPOTENCY_CONFLICT409A key or event was reused with different data.Use stable keys only for identical retries.No
DUPLICATE_ORDER409A purchase order was already received with different data.Inspect original event.No
NO_ACTIVE_REWARD_RULE422No active rule matched the integration and mode.Create or enable a rule.No
ORDER_NOT_QUALIFYING422The purchase did not meet rule criteria.Adjust rule or order data.No
PARTNER_INACTIVE403The partner is not approved or active for API rewards.Complete review and activation.No
TEST_MODE_DISABLED403The partner disabled TEST mode.Re-enable TEST mode or use LIVE when authorized.No
ORDER_NOT_FOUND404A refund referenced an unknown order reward.Check externalOrderId and source integration.No
INVALID_REFUND422The reward state cannot be automatically refunded.Use admin review.No
RATE_LIMITED429Too many requests for the credential/partner/IP window.Wait before retrying.Yes

Rate limits

Common signature mistakes

  • Signing a pretty-printed body but sending minified JSON.
  • Including query strings instead of only the pathname.
  • Using lowercase method text instead of uppercase POST.
  • Using a stale timestamp outside the allowed window.
  • Putting the raw secret in the public API key header.