Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Use your Straddle API Key in the Authorization header as Bearer to authorize API requests.

Headers

Straddle-Account-Id
string<uuid>

For use by platforms to specify an account id and set scope of a request.

Request-Id
string

Optional client generated identifier to trace and debug a request.

Correlation-Id
string

Optional client generated identifier to trace and debug a series of requests.

Idempotency-Key
string

Optional client generated value to use for idempotent requests.

Required string length: 10 - 40

Body

customer_id
string<uuid>
required

The Straddle generated unique identifier of the customer to create a bridge token for.

config
object | null

Configuration object for the paykey, including sandbox outcome settings.

external_id
string | null

Unique identifier for the paykey in your database, used for cross-referencing between Straddle and your systems.

paykey_id
string<uuid> | null

Optional identifier of an existing paykey to bind to the Bridge session. Must belong to the specified customer and have Straddle source and Mastercard provider. Omit to start a new-connection session.

Response

Created

meta
object
required

Metadata about the API request, including an identifier and timestamp.

response_type
enum<string>
required

Indicates the type of data returned.

Available options:
object,
array,
error,
none
data
object
required