Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • 11.14 Schreckhorn
    • Terminology
    • Solutions
    • User Guide - Deutsch
    • User Guide - English
    • API Changelog
  2. Fotoware Veloz
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a CMS
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Fotoware Veloz releases
    • Activity Exports
    • Fotoware Example Workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • What is Flow?
    • Getting started
    • Flow dictionary
  5. Fotoware On-Premises
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • The Fotoware API
    • Creating integrations using embeddable widgets
    • Authorizing applications using OAuth
    • Auto-tagging
    • FotoWeb Drag and Drop export
    • Integration using webhooks
    • Optimizely and Episerver plugin documentation
    • User Interface Integrations
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support

Table of Contents

Field configuration
  • Home
  • Integrations and APIs
  • The Fotoware API
  • Orders

Custom Order Data

02. April 2025

Elaine Foley

Table of Contents

Field configuration

The orderData attribute of the order and the itemData field of an ordered item are both arrays that may contain custom order fields containing custom additional information about the order or each individual ordered item. These are key-value pairs that follow a schema that is defined in the site configuration. Custom order data may be entered by a customer when submitting an order. It may also be modified later by an administrator. API clients can also use custom order data to store additional context information in orders.

Values are arbitrary strings or boolean values, and IDs are opaque strings defined by the FotoWeb server:

1

2

3

4

5

6

7

8

[

{"id": "ID1", "value": "foo"},

{"id": "ID2", "value": "bar"},

{"id": "ID3", "value": true},

{"id": "ID4", "value": false},

{...},

...

]

where

Attribute Type Description
id String ID of the custom order field
value String or Boolean Value of the custom order field

Field configuration

The site configuration controls which fields are available, what their IDs are, and what values they can have. The configuration is separate for

  • The order as a whole (order fields). Values for order fields can be put into the orderData array of the shopping cart or an order.
  • Individual order items (order item fields). Values for order item fields can be put into the itemData array of each ordered item in the orderItems array of the shopping cart or an order.

For each item in orderData or itemData, a field ID must be given in the id attribute. These field IDs can be obtained from the field configuration.

The value of each field must be a string, unless the field is a checkbox field (of type checkbox). Then the value must be either true or false.

The following request can be used to query the field configuration. It is part of both the order management API and the shopping cart API, so it is available to all authenticated API clients:

Request Response
GET api_descriptor.order.config
Accept: application/vnd.fotoware.order-config+json
200 OK
Content-Type: application/vnd.fotoware.order-config+json

with the following response body:

1

2

3

4

{

"orderFields": [{...}, ...],

"itemFields": [{...}, ...]

}

 

The attributes orderFields and itemFields are both arrays of objects where each object describes one field and

  • orderFields is the set of order fields and
  • itemFields is the set of order item fields.

Each field object has the following format:

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

16

17

18

19

20

21

{

"id": "...",

"type": "text" | "checkbox" | "dropdown",

"label": "...",

"writable": true | false,

"required": true | false,

"multiValue": true | false,

"multiLine": true | false,

"validation": {

"maxLength": 40 | null,

"max": 500 | null,

"min": 100 | null,

"regex": "..." | null,

"taxonomy": {

"href": "..." | null,

"strict": true | false

} | null,

"values": [...],

"helpText": "..." | null

}

}

where

Attribute Type Description Example
id String

ID of the field.

This string is defined by FotoWeb and is not meant to be human-readable.

0c821e42-9c3f-445d-bf65-6a3e0c3d4045
type String

Type of the field. Must be one of:

  • text: Text input field. Allowed values are all strings that fulfill all validation criteria.
  • checkbox: Check box. Allowed values are true and false.
  • dropdown: Dropdown box. Allowed values are given in the values attribute.
 
label String Human-readable label of the field "Publication Date"
writable Boolean Field can be edited by user.  
required Boolean Customer must enter a value for this field.  
multiValue Boolean Field can have multiple values  
multiLine Boolean

Text field supports multi-line input.

User interface SHOULD provide a multi-line text input field

 
validation.maxLength Integer Maximum number of characters in text field or null for unlimited  
validation.min Integer

Minimum numeric value in text field or null.

If not null, then only numeric values (decimal numbers) are accepted.

 
validation.max Integer

Maximum numeric value in text field or null.

If not null, then only numeric values (decimal numbers) are accepted.

 
validation.regex String

Regular expression or null.

If not null, then value must match this ECMAScript regular expression.

"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
validation.taxonomy Object If not null, then a taxonomy is associated with the field. See fields below.  
validation.taxonomy.href Link (String)

URL of taxonomy. Refers to a "Taxonomy" representation.

A user interface SHOULD allow the user to choose items from that taxonomy which can be assigned to fields.

 
validation.taxonomy.strict

If true, then value MUST exist in the taxonomy. User must choose a value from the taxonomy or leave the field empty.

If false, then arbitrary values (that match all of the other validation criteria) can be entered alternatively to taxonomy items.

   
validation.values Array of Strings

If type is dropdown, this specifies the possible values that can be selected. All values must be strings.

It is not possible to enter other values. Other validation settings are ignored.

Set to null for types other than dropdown.

["Red", "Green", "Blue"]
validation.helpText String

Help text to display if validation fails.

If null, then the field does not have a specific help text, and a user interface SHOULD show a standard help text if validation fails.

"You must enter a valid date (YYYY-MM-DD)"

A user interface SHOULD perform all the validation specified by the field configuration. API requests to update an order or shopping cart will fail if

  • One or more fields do not fulfill their validation criteria OR
  • One or more required fields do not have a value.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Content Relation Items Changed Condition
  • Content Schema Condition
  • Using database lookup to populate metadata fields with photographer information
  • Order API Authentication
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
FotoWare Switzerland AG
Industriestrasse 25
5033 Buchs (AG)
Switzerland

Copyright 2025 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand