Djungle App Backend API (1.1.0)

Download OpenAPI specification:Download

App backend API for Djungle projects

Authentication

AuthToken

User Firebase Authentication, see https://firebase.google.com/docs/auth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

Order

Place a user order for a given product

Place a user order for a given product

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

User

Send user search request

Send user search request

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Get user state

Get user state

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "user_state": {
    }
}

Get user invitation code

Get user invitation code

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "loyalty_invitation_code": "abcde"
}

Get user invited friends

Get user invited friends

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "invites_list": [
    ]
}

Sending friend code

Sending friend code

Authorizations:
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

User requested support

User requested support

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Return a list of available avatars

Return a list of available avatars

Authorizations:

Responses

Response samples

Content type
application/json
{}

Return a list of avatars for the user level

Return a list of avatars for the user level

Authorizations:

Responses

Response samples

Content type
application/json
{}

Promo code

Try to redeem a promod code, partecipate to a prom

Try to redeem a promod code, partecipate to a promo code campaign

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Campaign

Try to redeem a promod code, partecipate to a prom

Try to redeem a promod code, partecipate to a promo code campaign

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

get event list

Get campaign (event) list

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "campaigns": [
    ]
}

campaign partecipation

Partecipate to a campaign (event)

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

confirm payment for event

Send payment confirm for a campaign (event)

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Points threshold

Try to complete a points threshold objective

Try to complete a points threshold objective

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Objective

Try to complete a points threshold objective

Try to complete a points threshold objective

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Send scanned code

Send scanned code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Send scanned code

Send scanned code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Send answers to a survey

Send answers to a survey

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Get user state

Get user state

Authorizations:

Responses

Response samples

Content type
application/json
Example
{}

Send answer to mission with code (i.e. anagram, em

Send answer to mission with code (i.e. anagram, email validation ,etc)

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Send data for store data objective

Send data for store data objective

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Subject

Configure subject locale

Configure subject locale

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

set a subject property

Set a subject property

Authorizations:
Request Body schema: application/json
One of
required
object

Responses

Request samples

Content type
application/json
Example
{
  • "payload": {
    }
}

Notify user deleted

Notify user deleted

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Delete the user

Delete the user

Authorizations:
Request Body schema: application/json
payload
required
object
example
any

Responses

Request samples

Content type
application/json
{
  • "payload": { },
  • "example": null
}

District

Get district list

Get district list

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "districts": [
    ]
}

Validate email

Send email for validation

Send email for validation

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Send answer to mission with code (i.e. anagram, em

Send answer to mission with code (i.e. anagram, email validation ,etc)

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Survey

Send message after Google Survey completion

Send message after Google Survey completion

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": { },
  • "example": null
}

Get survey details

Get survey details

Authorizations:
query Parameters
objective_uuid
required
string
Example: objective_uuid=fffdb32a-a8a2-4031-9949-90c1c07f1948

Survey objective unique identifier

Responses

Response samples

Content type
application/json
{
  • "survey-objective": {
    }
}

Send answers to a survey

Send answers to a survey

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Products

Get products to vote from catalogue (already voted

Get products to vote from catalogue (already voted products are not recalled)

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "products_list": [
    ]
}

Get product details

Get product details

Authorizations:
query Parameters
id
required
string
Example: id=25

product id to vote

Responses

Response samples

Content type
application/json
{
  • "products_list": {
    }
}

Send request after product vote

Send request after product vote

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Send request after multiple product votes

Send request after multiple product votes

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Level

Try to level up

Try to level up

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": { },
  • "example": null
}

Privacy

Get privacy settings

Get privacy settings

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "privacy_settings": [
    ]
}

Configure privacy settings

Configure privacy settings

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Coupon

Get coupon list

Get coupon list

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "djungle_user_special_coupons": [
    ]
}

Get coupon list burned by me

Get coupon list burned by me

Authorizations:
query Parameters
language
string
Enum: "IT" "EN"
Examples:
  • language=IT - Default Value
  • language=EN -

Responses

Response samples

Content type
application/json
{
  • "coupons": [
    ]
}

Burn a coupon by QR code

Burn a coupon by QR code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Burn a coupon by UUID code

Burn a coupon by UUID code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Check In

Send scanned code

Send scanned code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Scan

Send scanned code

Send scanned code

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Notification

Notify push notification read

Notify push notification read

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Push notification detail

Push notification detail

Authorizations:
query Parameters
id
integer
Example: id=1

Id of the notification to retrieve

bulk_id
integer
Example: bulk_id=1

Id of the bulk_id last notification to retrieve

Responses

Response samples

Content type
application/json
{
  • "push_notification": {
    }
}

Push notification list

Push notification list

Authorizations:
query Parameters
start
integer

Index of the first notification to retrieve, default is 0

limit
integer
Example: limit=10

Number of notification to retrieve, default is 10

Responses

Response samples

Content type
application/json
{
  • "push_notifications": [
    ]
}

App session started, usually after login or after

App session started, usually after login or after app focus

Authorizations:
Request Body schema: application/json
required
object (Device)

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Anagram

Send answer to mission with code (i.e. anagram, em

Send answer to mission with code (i.e. anagram, email validation ,etc)

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Business

Create business profile

Create business profile

Authorizations:
Request Body schema: application/json
object (Business)

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Update business information

Update business information

Authorizations:
Request Body schema: application/json
object (Business)

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Return business information

Return business information

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "business": {
    }
}

Store data

Send data for store data objective

Send data for store data objective

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

News

Get active news

Get active news

Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "news": []
}

News is read

News is read

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "payload": {
    }
}

Profile

Create user profile

Create user profile

Authorizations:
Request Body schema: application/json
object (Profile)

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Update user profile property. Please note that: -

Update user profile property. Please note that:

  • avatar property is the avatar ID (see: /djungle_user_avatars)
  • birthday property has YYYY-MM-DD format
Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Return user profile data

Return user profile data

Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "loyalty_user_profile": {
    }
}

Cities

Return Store Cities

Return Store Cities

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "cities": [
    ]
}

Session

App session started, usually after login or after

App session started, usually after login or after app focus

Authorizations:
Request Body schema: application/json
payload
required
object
example
any

Responses

Request samples

Content type
application/json
{
  • "payload": { },
  • "example": null
}

App session closed, just before logout

App session closed, just before logout

Authorizations:
Request Body schema: application/json
payload
required
object
example
any

Responses

Request samples

Content type
application/json
{
  • "payload": { },
  • "example": null
}

Device

App session started, usually after login or after

App session started, usually after login or after app focus

Authorizations:
Request Body schema: application/json
required
object (Device)

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Support

User requested support

User requested support

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Quiz

Conclude daily quiz

Send points earned to conclude the daily quiz

Authorizations:
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "payload": {
    }
}

Return the daily quiz

Return the daily quiz

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "daily_quiz": {
    }
}

App

Return status for app

Return status for app

Authorizations:
query Parameters
version
required
string
Example: version=2099

App version number

platform
required
string
Enum: "ios" "android"
Example: platform=ios

App version number

application
string
Enum: "planet" "planet_manager" "planet_experiments" "tiger_engine"
Example: application=planet_manager

Application id

Responses

Response samples

Content type
application/json
{
  • "app_version_status": "FORCE_UPDATE"
}

Return the engine service status

Return the engine service status

Authorizations:

Responses

Response samples

Content type
application/json
Example
{
  • "service_status": "MAINTENANCE"
}

Mammt

retrieve the list of orders for a given user

Retrieve the list of orders for a given user

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "mammt_list_orders": [
    ]
}