Kiwi User Manual
  • Introduction
  • Configuring Kiwi for your application
  • Analytics and KPIs
  • Sending Push Notifications
  • Making Subscriptions and Purchases
    • Google Play Store
    • iTunes App Store
    • SBS Purchases
    • Mozca Purchases
    • Stripe
    • Gift Card
    • Tim Engineering
    • Zoop Integration (Work in Progress)
    • Internal Subscription
  • Working with Customer Happiness and Zendesk
  • Using Scenarios for A/B testing and remote configuration
  • Using Plugins to trigger custom actions
  • Media Track Integration
  • Authentication
  • Accounts
Powered by GitBook
On this page
  1. Making Subscriptions and Purchases

Zoop Integration (Work in Progress)

PreviousTim EngineeringNextInternal Subscription

Last updated 6 years ago

Create Subscription

POST to

Header: x-kiwi-application-key, contentType = application/json

BODY:

{
  "buyer_template" : {
    "first_name" : "Test",
    "last_name" : "Surname",
    "taxpayer_id" : "324234",
    "description" : "description",
    "email" : "test.surname@email.com",
    "phone" : "5519987654321",
    "facebook" : "??",
    "twitter" : "@user",
    "address" : {
      "line1" : "line1",
      "line2" : "line2",
      "line3" : "line3",
      "neighborhood" : "neighborhood",
      "city" : "city",
      "state" : "ISO 3166-2",
      "postal_code" : "3423423",
      "country_code" : "BR"
    }
  },
  "card_template" : {
    "holder_name" : "TEST SURNAME",
    "expiration_month" : "08",
    "expiration_year" : "12",
    "card_number" : "34234234234",
    "security_code" : "123"
  },
  "sku" : "test.sku",
  "app_install_id" : "UUID",
  "user_id" : "UUID",
  "account_id" : "account_id",
  "session_media_info" : {
    "campaign_id" : "cid",
    "campaign_network" : "cnet",
    "campaign_name": "cname"
  },
  "installments" : 1
}

Response:

{
  "buyer" : {
    "id" : "234234",
    "first_name" : "Test",
    "last_name" : "Surname",
    "taxpayer_id" : "324234",
    "description" : "description",
    "email" : "test.surname@email.com",
    "phone" : "5519987654321",
    "facebook" : "??",
    "twitter" : "@user",
    "address" : {
      "line1" : "line1",
      "line2" : "line2",
      "line3" : "line3",
      "neighborhood" : "neighborhood",
      "city" : "city",
      "state" : "ISO 3166-2",
      "postal_code" : "3423423",
      "country_code" : "BR"
    },
    "delinquent" : false,
    "payment_methods" : ["asd", "sdf"],
    "default_debit" : "referenceToCardUsingItsId",
    "default_credit" : "referenceToCardUsingItsId",
    "default_receipt_delivery_method: "??"
  },
  "zoop_subscription" : {
   // TODO list attributes here
  },
  "zoop_subscription_status" : 1
}

Possible Subscription Status:

  • -1 : Error Unknown

  • 0 : SUCCESS

  • 1: ERROR MISSING PARAM

  • 2: ERROR MISSING APPLICATION CONFIG

  • 3: ERROR LINKING SUBSCRIPTION ON KIWI

  • 4: ERROR REGISTERING SUBSCRIPTION ON KIWI

https://purchase.kwsdk.io/subscription/zoop/create