Elements
EPD Elements is the browser card-capture layer behind the epd.js browser SDK. These endpoints are authenticated with a publishable key and called by the SDK in the shopper's browser; you normally never call them directly.
The SDK boots from GET /elements/config, captures the card in a secure field, and exchanges it for a single-use card_token (cct_…) via POST /elements/tokens. Your backend then attaches that token to a customer with Add Payment Method using your secret key. Raw card data never touches your servers.
/elements/config Get Elements bootstrap config
Returns the public config the EPD Elements SDK needs to mount its secure card field: tenant identity, mode, and the public field key. Authenticated with a publishable key.
You normally do not call this directly; the SDK does it on EPD(publishableKey).
Responses
string"550e8400-e29b-41d4-a716-446655440000"booleantruestring"epd_connection_id"string"key_prod_xxx"objectenuminvalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorstring"validation_error"string"Request validation failed"string"email"string"req_a1b2c3d4e5f67890abcdef0123456789"array[object]/elements/tokens Create a card-capture token
Exchanges a tokenized card from the secure field for an opaque, single-use card_token (cct_…) bound to the merchant. Authenticated with a publishable key.
The EPD Elements SDK calls this for you and returns the card_token. Send that token to Add Payment Method from your backend with your secret key.
A per-IP rate limit applies in addition to the per-merchant limit.
Request body required
string"9f8c1b2a-3d4e-5f60-7182-93a4b5c6d7e8"Responses
string"cct_3f8a1c9e7b2d4a6f0e1c3b5d7f9a1c3e5b7d9f0a2c4e6b8d"integer900objectenuminvalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorstring"validation_error"string"Request validation failed"string"email"string"req_a1b2c3d4e5f67890abcdef0123456789"array[object]objectenuminvalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorstring"validation_error"string"Request validation failed"string"email"string"req_a1b2c3d4e5f67890abcdef0123456789"array[object]objectenuminvalid_request_errorauthentication_errorauthorization_errorrate_limit_erroridempotency_errorprocessing_errorwebhook_errorstring"validation_error"string"Request validation failed"string"email"string"req_a1b2c3d4e5f67890abcdef0123456789"array[object]