For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a cancellation request image

Attaches an image to a cancellation request, identified by its uuid.

Supply the image in one of the two ways described under Supplying the Image: send the base64-encoded file content in image, or reference an already stored file with image_path. A request that sends neither is rejected with the business error cancellation_request_image_100_1. If both are sent, image takes precedence.

A file sent in image must not exceed FILE_UPLOAD_MAX_MEMORY_SIZE, and its width and height must be strictly lower than the limits of the MAX_IMAGE_DIMENSIONS dynamic setting; see Dynamic Settings & Environment Variables. Neither check is applied to image_path.

The created image is always stored with is_uploaded_by_user set to false; see Uploader Flag.

post
/cancellation_request_images/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The image to attach to a cancellation request. Supply the base64-encoded file content in image, or reference an already stored file with image_path. See Supplying the Image.

cancellation_requeststring · uuidRequired

The uuid of the cancellation request to attach the image to. A uuid that does not match any cancellation request is rejected with 400.

Example: 74fc3776-1cd2-4564-b33b-22ac8ff8c4e5
imagestringOptional

The file content, base64-encoded, optionally prefixed with data:image/<type>;base64,. Accepted types: jpeg, jpg, png, gif, webp. Limited by FILE_UPLOAD_MAX_MEMORY_SIZE and the MAX_IMAGE_DIMENSIONS dynamic setting. An empty string is rejected. Takes precedence over image_path if both are sent.

Example: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==
image_pathstringOptional

Path of a file already present in the platform's media storage. Stored as sent without any check. Accepted in requests only; never returned in a response.

Example: cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg
descriptionstring · nullableOptional

Free-text description of the image.

Example: Scratch on the left side of the product.
attributesobject · nullableOptional

Free-form JSON object. Defaults to {}.

Example: {"angle":"front"}
Responses
201

The cancellation request image was created.

application/json

An image attached to a cancellation request.

idintegerRequired

Unique identifier of the cancellation request image.

Example: 42
cancellation_requeststring · uuidRequired

The uuid of the cancellation request the image belongs to.

Example: 74fc3776-1cd2-4564-b33b-22ac8ff8c4e5
imagestring · nullableRequired

Absolute URL of the stored image file.

Example: https://cdn.example.com/media/cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg
descriptionstring · nullableRequired

Free-text description of the image.

Example: Scratch on the left side of the product.
attributesobject · nullableRequired

Free-form JSON object.

Example: {"angle":"front"}
is_uploaded_by_userbooleanRequired

true when the customer attached the image through the storefront cancellation flow; false when it was created or last updated through these endpoints. See Uploader Flag.

Example: false
created_datestring · date-timeRequired

When the record was created.

Example: 2026-09-30T11:30:31.855997Z
modified_datestring · date-timeRequired

When the record was last changed.

Example: 2026-09-30T11:30:31.856171Z
post/cancellation_request_images/
POST /api/v1/remote/1/cancellation_request_images/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 375

{
  "cancellation_request": "74fc3776-1cd2-4564-b33b-22ac8ff8c4e5",
  "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
  "image_path": "cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg",
  "description": "Scratch on the left side of the product.",
  "attributes": {
    "angle": "front"
  }
}
{
  "id": 42,
  "cancellation_request": "74fc3776-1cd2-4564-b33b-22ac8ff8c4e5",
  "image": "https://cdn.example.com/media/cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg",
  "description": "Scratch on the left side of the product.",
  "attributes": {
    "angle": "front"
  },
  "is_uploaded_by_user": false,
  "created_date": "2026-09-30T11:30:31.855997Z",
  "modified_date": "2026-09-30T11:30:31.856171Z"
}

Last updated

Was this helpful?