Preview design profile values
/design_profile_previewsReturns a short-lived URL that shows the checkout with these values and sample items, at any width. Nothing is published, no session is created, and nothing on it can be paid.
Headers
AuthorizationstringRequiredParameters
valuesobjectRequiredWhat 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.
samplestringphysical adds an item that ships, so the preview shows shipping.
widthstringReturns
The preview.
resourcestringurlstringexpires_atstringAbout 10 minutes after it's made.
Errors
400401403422amount_mismatch: amount doesn't equal the line items' total.
- price_inactive, product_inactive: an item can't be sold.
- currency_mismatch: the items or rates use different currencies.
- no_shipping_rate: an item ships and no active rate covers the session's currency.
- checkout_not_open: the session is completed or expired.
- order_not_refundable: the order is fully refunded, or under a dispute.
- amount_exceeds_refundable: more than what's left to refund.
- quantity_exceeds_refundable: more of an item than was sold and not yet refunded.
- order_not_shippable: shipped_at was sent for an order with nothing that ships.
- shipping_rate_inactive: a rate in shipping_options is archived.
- tax_exceeds_amount: inclusive tax figures are more than an item's amount.
- refund_failed: the payment method refused the refund. Nothing was refunded.
- custom_css_not_approved: the draft's changed custom CSS isn't approved yet.
- default_profile: your default design profile can't be archived.
- profile_not_published: the design profile has nothing published yet, so sessions and links can't use it and it can't be your default.
- profile_archived: the design profile is archived, so new sessions and links can't use it and it can't be your default.
- display_name_required: the draft to publish has no display_name.
- low_contrast: white text on colors.accent, or colors.text on colors.background, is under 4.5:1.
- number_in_use: the next number is one the series has already used.
- tax_rate_required: a subscription sent with your own tax figures has a tax_breakdown entry without a percentage_decimal or a flat_amount, so it can't be applied to renewals.
- seller_engine_conflict: the request names an external engine for a sale that can resolve to Pay.com as seller.
- engine_not_allowed_for_seller: the engine can't run a subscription this seller sells.
- processor_not_allowed_for_seller: Pay.com sells only on accounts it controls, and the processor isn't one of them.
- engine_capability_missing: the engine or its connection can't do what the request needs.
- connection_not_ready: the engine's connection isn't connected, or needs action.
- product_refused: a product failed review for merchant of record, and you can't sell it yourself in this request.
Subscription and seller refusals come at creation, never at renewal.