Profile picture

Overview

Manage the authenticated customer's profile picture — upload a new image or remove the existing one. Both endpoints return the shared customer resource with the updated profile_photo.


How It Works

  1. Upload - Send a square image (≥150×150, PNG/JPG) to set the profile picture.
  2. Display - Use the returned profile_photo URL in your UI.
  3. Delete - Remove the picture when the customer clears it.

Example: A customer sets an avatar during onboarding, then later removes it from account settings.


API Endpoints

MethodEndpointDescription
POST/api/v1/sdk/customer/pictureUpload profile picture
DELETE/api/v1/sdk/customer/pictureDelete profile picture

Important Behaviors

  • Authentication: Both endpoints require a bearer token.
  • Image requirements: The uploaded image must be square and at least 150×150 pixels (PNG or JPG).
  • Replacement: Uploading a new picture removes the previous one.