Create a design profile
/design_profilesCreates a profile with a draft and nothing published. Sessions can use it once you publish it.
Headers
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace. A retry with the same key, endpoint and body gets the first response. Another endpoint or body gets 400 idempotency_error, and a retry while the first is running gets 409.
Parameters
namestringRequiredis_defaultbooleanOnly once published: a profile with nothing published returns 422 with profile_not_published.
draftobjectWhat a design profile sets. Sessions and payment links can override flow, collection and express_methods.
Show 14 child parametersHide child parameters
display_namestringThe business name buyers see.
flowstringone_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).
layoutstringsummary_positionstringblocksobjectShow 2 child parametersHide child parameters
shippingbooleanShows the shipping section when an order has items that ship.
header_imagebooleanheader_image_urlstring or nullThe image shown when blocks.header_image is on.
colorsobjectBrand colors as #RRGGBB, or null for Pay.com's default look in light and dark.
Show 3 child parametersHide child parameters
accentstring or nullbackgroundstring or nulltextstring or nullthemestringfontstringcorner_radiusstringexpress_methodsobjectWhere Apple Pay, Google Pay and the other express methods show. Both default to true.
Show 2 child parametersHide child parameters
express_rowobjectShow 1 child parameterHide child parameters
enabledbooleanmethod_listobjectShow 1 child parameterHide child parameters
enabledbooleancollectionobjectThe details the checkout asks for. Pay.com adds any a payment method or tax needs, and lists them in collection.added.
Show 6 child parametersHide child parameters
nameobjectShow 1 child parameterHide child parameters
enabledbooleanemailobjectShow 1 child parameterHide child parameters
enabledbooleanphone_numberobjectShow 1 child parameterHide child parameters
enabledbooleanbilling_addressobjectShow 1 child parameterHide child parameters
levelstringshipping_addressobjectAsked 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 parametersHide child parameters
enabledbooleanallowed_countriesarray of stringstax_idobjectShow 1 child parameterHide child parameters
enabledbooleansubmit_labelstringThe word on the button before the total, such as Pay.
custom_cssstring or nullApplies only once approved: publishing changed CSS that isn't approved returns 422 with custom_css_not_approved. See Submit custom CSS for review.
metadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
Returns
The design profile.
idstringresourcestringnamestringFor you. The Commerce tab lists profiles by name.
is_defaultbooleanSessions and links that name no profile use it.
statusstringdraft until the first publish.
live_versioninteger or nullliveobject or nullWhat buyers see, or null before the first publish.
Show 2 child attributesHide child attributes
Option 1objectWhat a design profile sets. Sessions and payment links can override flow, collection and express_methods.
Show 14 child attributesHide child attributes
display_namestringThe business name buyers see.
flowstringone_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).
layoutstringsummary_positionstringblocksobjectShow 2 child attributesHide child attributes
shippingbooleanShows the shipping section when an order has items that ship.
header_imagebooleanheader_image_urlstring or nullThe image shown when blocks.header_image is on.
colorsobjectBrand colors as #RRGGBB, or null for Pay.com's default look in light and dark.
Show 3 child attributesHide child attributes
accentstring or nullbackgroundstring or nulltextstring or nullthemestringfontstringcorner_radiusstringexpress_methodsobjectWhere Apple Pay, Google Pay and the other express methods show. Both default to true.
Show 2 child attributesHide child attributes
express_rowobjectShow 1 child attributeHide child attributes
enabledbooleanmethod_listobjectShow 1 child attributeHide child attributes
enabledbooleancollectionobjectThe 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
nameobjectShow 1 child attributeHide child attributes
enabledbooleanemailobjectShow 1 child attributeHide child attributes
enabledbooleanphone_numberobjectShow 1 child attributeHide child attributes
enabledbooleanbilling_addressobjectShow 1 child attributeHide child attributes
levelstringshipping_addressobjectAsked 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
enabledbooleanallowed_countriesarray of stringstax_idobjectShow 1 child attributeHide child attributes
enabledbooleansubmit_labelstringThe word on the button before the total, such as Pay.
custom_cssstring or nullApplies only once approved: publishing changed CSS that isn't approved returns 422 with custom_css_not_approved. See Submit custom CSS for review.
Option 2nulldraftobject or nullUnpublished changes, or null when the draft equals the live version.
Show 2 child attributesHide child attributes
Option 1objectWhat a design profile sets. Sessions and payment links can override flow, collection and express_methods.
Show 14 child attributesHide child attributes
display_namestringThe business name buyers see.
flowstringone_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).
layoutstringsummary_positionstringblocksobjectShow 2 child attributesHide child attributes
shippingbooleanShows the shipping section when an order has items that ship.
header_imagebooleanheader_image_urlstring or nullThe image shown when blocks.header_image is on.
colorsobjectBrand colors as #RRGGBB, or null for Pay.com's default look in light and dark.
Show 3 child attributesHide child attributes
accentstring or nullbackgroundstring or nulltextstring or nullthemestringfontstringcorner_radiusstringexpress_methodsobjectWhere Apple Pay, Google Pay and the other express methods show. Both default to true.
Show 2 child attributesHide child attributes
express_rowobjectShow 1 child attributeHide child attributes
enabledbooleanmethod_listobjectShow 1 child attributeHide child attributes
enabledbooleancollectionobjectThe 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
nameobjectShow 1 child attributeHide child attributes
enabledbooleanemailobjectShow 1 child attributeHide child attributes
enabledbooleanphone_numberobjectShow 1 child attributeHide child attributes
enabledbooleanbilling_addressobjectShow 1 child attributeHide child attributes
levelstringshipping_addressobjectAsked 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
enabledbooleanallowed_countriesarray of stringstax_idobjectShow 1 child attributeHide child attributes
enabledbooleansubmit_labelstringThe word on the button before the total, such as Pay.
custom_cssstring or nullApplies only once approved: publishing changed CSS that isn't approved returns 422 with custom_css_not_approved. See Submit custom CSS for review.
Option 2nullShow 6 more attributesShow fewer attributes
draft_saved_atstring or nullcustom_css_reviewobjectShow 2 child attributesHide child attributes
statusstringreasonsarray of stringsWhy it wasn't approved.
metadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringupdatedstringtest_modebooleanErrors
400401403409