Skip to content

Instantly share code, notes, and snippets.

@rwest202
Last active July 7, 2021 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwest202/6739e94a2bf1943331941cb44073dde6 to your computer and use it in GitHub Desktop.
Save rwest202/6739e94a2bf1943331941cb44073dde6 to your computer and use it in GitHub Desktop.

Register customer

POST https://api.peoplevine.com/customer.asmx/registerCustomer

{
    "auth": {
        "api_username": "host",
        "api_password": "{{ _.host_api_password }}",
        "api_key": "27c3f7aa-7a48-416e-b315-2d39701dfe42",
        "company_no": 1104,
        "username": "ryan@peoplevine.com",
        "password": "{{ _.api_password }}"
    },
    "customer": {
	"customer_type": "customer",
	"first_name": "",
	"last_name": "",
	"address": "",
	"city": "",
	"state": "",
	"zip_code": "",
	"country": "US",
	"email": "",
	"password": "",
	"mobile_number": "",
	"opt_in_email": "Y",
	"opt_in_sms": "Y",
	"opt_in_updates": "Y",
	"company_no": 1104
    }
}

Example response

{
  "ip_address": "",
  "memberDirectoryEnabled": false,
  "enableHouseAccount": false,
  "keep_private": false,
  "customer_token": "",
  "member_discount": 0,
  "name": "",
  "cc_email": "",
  "isMember": false,
  "wasMember": false,
  "hasApplied": false,
  "member_since": "/Date(-2208988800000)/",
  "when_applied": "/Date(-2208988800000)/",
  "updateByReference": false,
  "addresses": null,
  "email2": "",
  "notes": [],
  "gender": "U",
  "company_title": "",
  "anniversary_date": "/Date(-2208988800000)/",
  "hasPassword": false,
  "last_login": "/Date(-2208988800000)/",
  "lastPageView": "/Date(-2208988800000)/",
  "lastEmailOpened": "/Date(-2208988800000)/",
  "lastNewsletter": "/Date(-2208988800000)/",
  "lastTouchpoint": "/Date(-2208988800000)/",
  "lastCommunication": "/Date(-2208988800000)/",
  "totalTouchpoints": 0,
  "user": {
    "business_location_no": 0,
    "employee_id": "",
    "user_no": 0,
    "first_name": "",
    "last_name": "",
    "mobile_number": "",
    "email": "",
    "username": "",
    "status": ""
  },
  "user_modified": {
    "business_location_no": 0,
    "employee_id": "",
    "user_no": 0,
    "first_name": "",
    "last_name": "",
    "mobile_number": "",
    "email": "",
    "username": "",
    "status": ""
  },
  "user_last_viewed": {
    "business_location_no": 0,
    "employee_id": "",
    "user_no": 0,
    "first_name": "",
    "last_name": "",
    "mobile_number": "",
    "email": "",
    "username": "",
    "status": ""
  },
  "last_viewed": "/Date(-2208988800000)/",
  "last_viewed_by": 0,
  "modified_by": 0,
  "affiliate_name": "",
  "affiliate_no": 0,
  "session_id": "",
  "password_expires": "/Date(253402300799000)/",
  "flag": "",
  "vip_flag": false,
  "last_contacted": "/Date(-2208988800000)/",
  "klout_score": 0,
  "linkedin_handle": "",
  "linkedin_id": "",
  "lifecycle_stage_no": 0,
  "customer_source": "",
  "timezone": "",
  "username": "",
  "settings": "",
  "generatePassword": false,
  "profile_photo": "",
  "foursquare_handle": "",
  "foursquare_id": "",
  "customer_status": "active",
  "attributes": null,
  "facebook_handle": "",
  "twitter_handle": "",
  "google_handle": "",
  "instagram_handle": "",
  "latitude": "",
  "longitude": "",
  "customer_no": 2793533,
  "first_name": "",
  "last_name": "",
  "address": "",
  "address2": "",
  "city": "",
  "state": "",
  "zip_code": "",
  "country": "US",
  "phone_number": "",
  "mobile_number": "",
  "email": "",
  "password": "",
  "created_on": "/Date(1625613023875)/",
  "device_type": "",
  "passbook_enabled": "N",
  "wallet_enabled": "N",
  "opt_in_email": "Y",
  "opt_in_sms": "Y",
  "opt_in_updates": "Y",
  "company_no": 1104,
  "user_no": 1387,
  "company_name": "",
  "birthdate": "/Date(-2208988800000)/",
  "modified_on": "/Date(1625613023875)/",
  "address3": "",
  "customer_reference": "",
  "facebook_id": "",
  "twitter_id": "",
  "google_id": "",
  "instagram_id": "",
  "middle_name": "",
  "website": "",
  "customer_type": "customer",
  "schema": null,
  "totalFavorite": 0,
  "skipTriggers": false,
  "includeObjects": false,
  "includeStats": false,
  "includeTotalRecords": false,
  "totalRecords": 0,
  "rows_per_page": 0,
  "page_number": 0,
  "updateFields": "",
  "includeCompany": false,
  "lightweight": false,
  "itemDetailsFields": null,
  "includeItemDetails": false,
  "search_value": null,
  "sort_by": null,
  "return_total": 0,
  "from_date": "/Date(-2208988800000)/",
  "to_date": "/Date(-2208988800000)/",
  "includeDetails": false,
  "timezone_offset": 0,
  "timezone_id": null
}

Login customer

POST https://api.peoplevine.com/customer.asmx/customerLogin

{
    "auth": {
        "api_username": "host",
        "api_password": "{{ _.host_api_password }}",
        "api_key": "27c3f7aa-7a48-416e-b315-2d39701dfe42",
        "company_no": 1104,
        "username": "ryan@peoplevine.com",
        "password": "{{ _.api_password }}"
    },
    "credentials": {
	"company_no": "1104",
	"email": "ryan@peoplevine.com",
	"password": "Pa55word!"
    }
}

Example response (same as above).

Create membership

POST https://api.peoplevine.com/membership.asmx/createMembershipCard

{
    "auth": {
        "api_username": "host",
        "api_password": "{{ _.host_api_password }}",
        "api_key": "27c3f7aa-7a48-416e-b315-2d39701dfe42",
        "company_no": 1104,
        "username": "ryan@peoplevine.com",
        "password": "{{ _.api_password }}"
    },
    "membershipCard": {
	"membership_no": 2376,
	"membership_id": "",
	"customer_no": 2793533,
	"expiration_date": "12/31/9999 11:59:59 PM",
	"card_status": "Active"
    }
}

Example reponse: Membership Id

458563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment