account.created

Last modified October 10, 2017

A server webhook fired when a customer account is created (e.g. when a customer whose email address does not match an existing account places a new order).  Customer Accounts and single sign-on provides detailed information regarding customer accounts.

About Webhook Expansion

account.created is not affected by webhook expansion.

Contents of Event Payload

Name Type Description
id string FastSpring-generated customer account ID
account string FastSpring-generated customer account ID
contact object contains customer contact details
contact.first string customer's first name
contact.last string customer's last name
contact.email string customer's email address
contact.company string customer's company name (may be null)
contact.phone string customer's telephone number (may be null)
language string two-character ISO code for the customer's language
country string two-character ISO code for the customer's country
lookup object parameters used to look up the account (e.g. via the FastSpring API)
lookup.global string customer-visible account ID
lookup.custom string optional custom account ID assigned by you (e.g. your internal ID for this customer)
lookup.url string default URL for the customer-facing account management page

Example

account.created webhook example
{ 
  "id":"TBODFuwPRX2OiZj3u0MlQw",
  "account":"TBODFuwPRX2OiZj3u0MlQw",
  "contact":{
    "first":"John",
    "last":"Doe",
    "email":"ne1@all.com",
    "company":null,
    "phone":"1-805-409-9008"
  },
  "language":"en",
  "country":"US",
  "lookup":{
    "global":"lc3PZF_mSIiwV2ZUvcoZSQ",
    "custom" : "8675309"
    "url":"https://furiousfalcon.onfastspring.com/account"
  }
}