UpdateMember
From ePrize Developers Wiki
(Difference between revisions)
(New page: ==updateMember== '''Summary''' Update members profile information '''Resource''' POST api/v1/updateMember '''Parameters''' firstName lastName address1 address2 city state zipCode member...) |
|||
(2 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | == | + | ==Summary== |
- | + | ||
- | + | ||
Update members profile information | Update members profile information | ||
Line 9: | Line 7: | ||
'''Parameters''' | '''Parameters''' | ||
- | firstName | + | * firstName |
- | lastName | + | * lastName |
- | address1 | + | * address1 |
- | address2 | + | * address2 |
- | city | + | * city |
- | state | + | * state |
- | zipCode | + | * zipCode |
- | memberId | + | * memberId |
- | emailAddress | + | * emailAddress |
- | emailOptIn | + | * emailOptIn |
- | mobileOptIn | + | * mobileOptIn |
- | '''Example Call''' | ||
- | http://demo-loyalty.promodev.eprize.com api/v1/updateMember | ||
- | { | + | { |
- | + | "memberId": 278000000118, | |
- | + | "firstName": "Jon", | |
- | + | "lastName": "Doe", | |
- | + | "address1": "1 ePrize Dr", | |
- | + | "address2": “This Bldg”, | |
- | + | "city": "Pleasant Ridge", | |
- | + | "state": "MI", | |
- | + | "zipCode": "48033", | |
- | + | "emailAddress": “jon.doe@helloworld.com”, | |
- | + | "emailOptIn": true, | |
- | + | "mobileOptIn": true, | |
- | } | + | } |
'''Example Response: Success''' | '''Example Response: Success''' | ||
- | { | + | { |
- | + | "success": true | |
- | } | + | } |
'''Example Response: Invalid Member Id''' | '''Example Response: Invalid Member Id''' | ||
- | { | + | { |
- | + | "Error": { | |
- | + | "Code": "error.business.Validation", | |
- | + | "Message": "Error for attribute: Member Id\nThis is an invalid code.\n" | |
+ | } | ||
} | } | ||
- | } |
Current revision
Summary
Update members profile information
Resource POST api/v1/updateMember
Parameters
- firstName
- lastName
- address1
- address2
- city
- state
- zipCode
- memberId
- emailAddress
- emailOptIn
- mobileOptIn
{ "memberId": 278000000118, "firstName": "Jon", "lastName": "Doe", "address1": "1 ePrize Dr", "address2": “This Bldg”, "city": "Pleasant Ridge", "state": "MI", "zipCode": "48033", "emailAddress": “jon.doe@helloworld.com”, "emailOptIn": true, "mobileOptIn": true, }
Example Response: Success
{ "success": true }
Example Response: Invalid Member Id
{ "Error": { "Code": "error.business.Validation", "Message": "Error for attribute: Member Id\nThis is an invalid code.\n" } }