get

/v2/customers/{customer_id}/token

Creates a token that can be used to initialize a Stronghold.Pay JS object for a particular customer.

The token is not intended to be stored and a new token should be requested per customer session. The token will expire after 12 hours.

Authorization

apiKey - SH-SECRET-KEY

Request Parameters

1 Path Parameter
1 Query Parameter

Responses

A new customer token.

Schema
object
$schema: http://json-schema.org/draft-04/schema#
response_id
string

The response ID.

1 validation + required
time
string

The response time.

1 validation + required
status_code
integer

The HTTP status code.

4 validations + required
result
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
1 path param not set
customer_id
$$.env
1 variable not set
SH-SECRET-KEY