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
- Upload - Send a square image (≥150×150, PNG/JPG) to set the profile picture.
- Display - Use the returned
profile_photoURL in your UI. - 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
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/sdk/customer/picture | Upload profile picture |
DELETE | /api/v1/sdk/customer/picture | Delete 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.
