- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Post
/payments/v1/providers/{provider}/client-token
Create a single use client token for payment providers that support this operation.
Security
HTTP
Type bearer
Path parameters
provider
stringRequired
Valid values[ "\"braintree\"", "\"test\"" ]
Body parameters
object
customerId
string
A unique identifier for the customer to whom the payment method belongs. A customer can have multiple payments methods. The customerId here should be the same as the one used when adding a new payment method.
Min length1
Responses
201
Created Client Token
object
data
object
clientToken
string
A provider specific client token.
400
Invalid Request
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
401
Invalid Authentication Credentials
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
403
Invalid Authorization Credentials
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
404
Resource Not Found
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
429
Too Many Requests
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
500
Internal Server Error
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
502
Provider Error
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
504
Provider Unavailable
object
message
string
causes
Array of object
object
message
string
metadata
Array of object
object
key
string
value
Was this article helpful?