Skip to Content
Docs
Design profiles

List a design profile's versions

GET/design_profiles/{design_profile_id}/versions

Every published version, newest first.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

design_profile_idstringRequired

The design profile's ID (dprof_).

Query parameters

limitinteger

Objects per page. Defaults to 10.

Default: 10

starting_afterinteger

A version number. Returns the versions before it. Mutually exclusive with ending_before.

ending_beforeinteger

A version number. Returns the versions after it.

Returns

A page of versions.

resourcestring
dataarray of objects
Show 5 child attributesHide child attributes
versioninteger
valuesobject

What a design profile sets. Sessions and payment links can override flow, collection and express_methods.

Show 14 child attributesHide child attributes
display_namestring

The business name buyers see.

flowstring

one_page shows everything on one page. steps splits it into Details, Shipping (only when something ships and there's more than one rate) and Payment, with no review step. Details asks for the country when tax needs it, so the total is final before Payment, and billing details sit in Payment. Defaults to the design profile's flow (in the checkout builder: Layout, Flow).

One of one_page or steps.

layoutstring

One of two_panes, one_column or compact.

Default: two_panes

summary_positionstring

One of left, right or top.

Default: left

blocksobject
Show 2 child attributesHide child attributes
shippingboolean

Shows the shipping section when an order has items that ship.

Default: true

header_imageboolean

Default: false

header_image_urlstring or null

The image shown when blocks.header_image is on.

colorsobject

Brand colors as #RRGGBB, or null for Pay.com's default look in light and dark.

Show 3 child attributesHide child attributes
accentstring or null
backgroundstring or null
textstring or null
themestring

One of light, dark or system.

Default: system

fontstring

One of system, google_sans or serif.

Default: google_sans

corner_radiusstring

One of none, small, medium or large.

Default: medium

express_methodsobject

Where Apple Pay, Google Pay and the other express methods show. Both default to true.

Show 2 child attributesHide child attributes
express_rowobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

method_listobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

collectionobject

The details the checkout asks for. Pay.com adds any a payment method or tax needs, and lists them in collection.added.

Show 6 child attributesHide child attributes
nameobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

emailobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

phone_numberobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

billing_addressobject
Show 1 child attributeHide child attributes
levelstring

One of none, country, postal_code or full.

Default: country

shipping_addressobject

Asked for whenever an item ships, even if you leave this out. Use it to limit countries, or to ask for an address with no shippable items.

Show 2 child attributesHide child attributes
enabledboolean
allowed_countriesarray of strings
tax_idobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

submit_labelstring

The word on the button before the total, such as Pay.

One of pay, buy, book or donate.

Default: pay

custom_cssstring or null

Applies only once approved: publishing changed CSS that isn't approved returns 422 with custom_css_not_approved. See Submit custom CSS for review.

published_atstring
published_bystring

The person, or api for an API key.

changesarray of strings

The groups that changed from the version before, as the Commerce tab names them. Layout covers layout and summary_position, Blocks covers blocks and header_image_url, Colors covers colors and theme, Fields is collection and Button is submit_label. The first version's is [].

has_moreboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
404
No such object in this workspace and environment.
Was this page helpful?