Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The following is a guide to our objects on our database
- #-Customers-
- #Sample of customer objects, * notates a mandatory field if creating
- {
- "birthDay": 0,
- "birthMonth": 0,
- "birthYear": 0,
- "emails": [
- "example@example.com" //*only mandatory if no phone number was provided, return a 400 error with message "No contact method"
- ],
- "firstName": " ",
- "id": " ",
- "initialReferral": {
- "offerID": " ", //* can be null or empty string
- "used": false, //*needs to be false if no referredBy id is specified - Return 400 error, "Bad Initial Refferal Object"
- "referredBy": "customer_id" //Customer's ID that reffered this customer
- },
- "lastName": " ",
- "orders": {
- "merchant_id": {
- "G5HJ4S5B4J4U":["SAMPLE1","SAMPLE2","SAMPLE"]
- }
- },
- "phoneNumber": 0, //* Unless an email was set, it's a mandatory field
- "prefContactMethod": 0
- }
Add Comment
Please, Sign In to add comment