Issue a test Google Wallet pass (platform admins, test organizations in production)

Changed on

Issues, or issues again, a real Google Wallet loyalty pass for one member of the organization's program with its brand's issuer, and returns its signed Save to Google Wallet link. Internal test tooling: only platform administrators may call it, and in production only for a classified test organization. Refused with FORBIDDEN in production for an organization that is not a test organization and while the loyalty-wallet flag does not admit the organization, and with PRECONDITION_FAILED when the brand has no Google Wallet issuer key, the program is missing or not live, or the design has no https logo. The class goes through the Wallet class image gate first, so CONFLICT refuses it while an earlier request for the class may still reach Google or when it would show an image the organization no longer holds. The class and object ids are stable per environment, organization and member, so a retry reaches the same pass and updates its points. NOT_FOUND refuses a customer who is not an active member of this organization; BAD_GATEWAY reports a Google error by the call that failed. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

post/api/public/v1/loyalty/issueTestGoogleWalletPass

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required
customerId, string required

Response

OK

object required
classId, string required
objectId, string required
classState, 'pending' | 'confirmed' | 'unknown' | 'stale' required
saveUrl, string uri required

Changes