POST
Authorize a Card using TaaS

Authorizations

X-API-Key
string
header
required

Admins and Developers can obtain their Bolt API key from the Bolt Merchant Dashboard.

Headers

X-Bolt-Forward-To
string
required

The fully qualified URL of the payment service provider (PSP) endpoint to which the request should be proxied. This URL must be whitelisted in advance by Bolt.

Example:

"https://api.stripe.com/v1/payment_methods"

X-Bolt-Taas-Id
string
required

Provide your Tokenizer-as-a-Service (TaaS) identifier. This value tells Bolt which stored payment method to use when injecting sensitive data into the proxied request. The value must be in the following format:

  • bolt_token:{token} - Reference a Bolt-issued short-term token

Merchant-scoped long-term tokens will be supported in a future release. Example usage allows Bolt to securely inject PAN, CVV, and expiration into the forwarded request body.

Example:

"bolt_token:your_bolt_token_here"

X-Bolt-Forward-Verb
enum<string>
required

The HTTP method to use when forwarding the request to the payment service provider (PSP) endpoint. This allows merchants to specify the appropriate HTTP verb for their PSP's API requirements.

Available options:
POST,
PUT,
PATCH
Example:

"POST"

Body

application/json

Use this API to proxy an authorization request to a third-party PSP endpoint using Bolt's secure infrastructure.

  • Replace raw card fields (e.g., card[number]) with placeholders like {{tk:cc}}, {{tk:cvv}}, {{tk:exp_month}}, etc.
  • The placeholders will be securely replaced by Bolt using the identifier from x-bolt-taas-id.
  • The x-bolt-forward-to header must point to a whitelisted PSP URL.
  • The x-bolt-forward-verb header specifies the HTTP method (POST, PUT, or PATCH) for the PSP request.

Never submit raw PAN, CVV, or expiration directly. Use placeholders. Supported placeholders:

  • {{tk:cc}} – Full card number
  • {{tk:cvv}} – Card CVV
  • {{tk:exp_month}} – Expiration month
  • {{tk:exp_year}} – Expiration year

The body is of type object.

Response

Successful proxy to the PSP. Returns the PSP's response along with a unique proxy operation ID for tracking.

status_code
integer

HTTP status code returned by the PSP

Example:

200

body
string

Response body from the PSP (JSON string)

Example:

"{\"id\":\"pm_1NQzWT2eZvKYlo2C\",\"object\":\"payment_method\",\"type\":\"card\",\"card\":{\"last4\":\"4242\",\"brand\":\"visa\",\"exp_month\":12,\"exp_year\":2026}}"

header
object

Response headers from the PSP

Example:
proxy_operation_id
string

Unique identifier for this proxy operation

Example:

"PROXY-ABC123-DEF456-GHI789"