Current Loyalty session token, represents a 'signed-in' member
Vista Digital Platform (V1)
Request
The photo is uploaded via a form-data key/value pair with type file and the key being "MemberPhoto".
The Photo file should be uploaded using the HTTP request body type form-data set to File, with a Key of MemberPhoto and Value of the photo file to be uploaded.
Supported photo file formats are: JPEG, BMP, PNG, HEIC, WebP. File size limit and photo dimensions are configured in Loyalty. The file size limit specifies and upper-bound on file size, while photo dimensions are an exact requirement.
An HTTP Bad Request is returned in the following cases:
- No Loyalty member is currently logged in.
- No photo is uploaded.
- Based on Loyalty configuration, the Loyalty member isn't eligible to update their photo
- The photo file size is too large.
- The photo dimensions don't match the dimensions configured in Loyalty.
- The photo format isn't accepted.
An HTTP Bad Gateway is returned if the connection to Loyalty times out.
- Vista.Ocapi
- Vista.Loyalty.MemberPhotos
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/photo
- cURL
- JavaScript
- Node.js
curl -i -X PUT \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/photo \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: multipart/form-data' \
-H 'loyaltySessionToken: string' \
-F ContentType=string \
-F ContentDisposition=string \
-F 'Headers[property1]=string' \
-F 'Headers[property2]=string' \
-F Length=0 \
-F Name=string \
-F FileName=string{ "memberPhoto": { "isUpdatable": true, "canBeUpdatedAt": "2019-08-24T14:15:22Z", "uriExpiresAt": "2019-08-24T14:15:22Z", "uri": "http://example.com" } }
- application/json
- text/json
- application/*+json
- application/json-patch+json
Details to validate email availability
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/email-availability
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/email-availability \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"email": "string"
}'{ "isAvailable": true }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/maximum-member-balance
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/maximum-member-balance' \
-H 'Connect-Region-Code: string' \
-H 'loyaltySessionToken: string'Success
Gets the order maximum member balance payment entity
Gets the related data for the order maximum member balance payment entity
Gets the related balance type entity
Gets the name text, and its translations
Gets the translations of the translatable Text in other languages
Gets a value indicating whether this is the primary balance type
Gets the name of the balance units
Gets the conversion rate that applies when using balance units for an order member balance payment, if applicable
{ "payment": { "balanceTypeId": 0, "maximumValue": 0.1, "maximumUnits": 0.1, "availableUnits": 0.1 }, "relatedData": { "balanceType": { … } } }