Token Auth

Generate Token

Create a token, either for a bank or a card account, that can be used with the PromisePay.js package to securely send Assembly credit card details.

post/token_auths

Request

  • Base URL
    https://test.api.promisepay.com
  • URL
    https://test.api.promisepay.com/token_auths
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://au-0000.sandbox.auth.assemblypay.com/tokens

Request body

token_type'bank' | 'card' required

Token type ID. use bank or card

user_idstring required

Buyer or Seller ID (already created)

Example request

{
  "token_type": "bank",
  "user_id": "seller-68611249"
}

Response

OK

Changes

No recorded changes to this operation across all 2 revisions of this API.