arrow_back Back to all endpoints
POST https://test-api.finerworks.com/v3/frame_builder

Frame Builder

This allows you to submit details to validate a framing option, get pricing and info as well as return base64 data you can use to display your frame package.

Body

Name Description Type Additional information
product_code Optional - this will override the config paramter. text None.
config Optional - if a product code is not provided, you build your own frame using these options frame_config None.
render Optional - can be used to return a base 64 data string which can be used to dislay a frame in your app. Note this will slow down the return response so should only be used if needed for your application. frame_render_config None.

Example JSON Body

application/json, text/json

{
  "product_code": null,
  "config": {
    "frame_id": 458,
    "width": 18.0,
    "height": 20.0,
    "mats": [
      {
        "id": 1,
        "windows": [
          {
            "width": 10.0,
            "height": 12.0,
            "window_x": 0.0,
            "window_y": 0.0,
            "mat_image_to_display_url": null
          }
        ]
      },
      {
        "id": 2,
        "windows": [
          {
            "width": 12.0,
            "height": 14.0,
            "window_x": 0.0,
            "window_y": 0.0,
            "mat_image_to_display_url": null
          }
        ]
      }
    ],
    "glazing": {
      "id": 1
    },
    "units": 0
  },
  "render": {
    "content_type": 0,
    "render_size": 500,
    "squared": false,
    "shadow_inner": false,
    "prompt_image": false,
    "frame_image_to_display_url": null
  }
}

Sample Code Library

curl --location --request POST 'https://test-api.finerworks.com/v3/frame_builder' \
--header 'Content-Type: application/json' \
--header 'web_api_key: my-web-api-key-goes-here' \
--header 'app_key: my-app-key-goes-here' \
--data-raw '{
  "product_code": null,
  "config": {
    "frame_id": 458,
    "width": 18.0,
    "height": 20.0,
    "mats": [
      {
        "id": 1,
        "windows": [
          {
            "width": 10.0,
            "height": 12.0,
            "window_x": 0.0,
            "window_y": 0.0,
            "mat_image_to_display_url": null
          }
        ]
      },
      {
        "id": 2,
        "windows": [
          {
            "width": 12.0,
            "height": 14.0,
            "window_x": 0.0,
            "window_y": 0.0,
            "mat_image_to_display_url": null
          }
        ]
      }
    ],
    "glazing": {
      "id": 1
    },
    "units": 0
  },
  "render": {
    "content_type": 0,
    "render_size": 500,
    "squared": false,
    "shadow_inner": false,
    "prompt_image": false,
    "frame_image_to_display_url": null
  }
}'