Skip to content

Create a password

Request

Create a new password for the user identified by the user_id path parameter.

Security
apiKey
Path
user_idstring^[0-9]+$required

The unique identifier for the user.

Example:110747174434373672
Bodyapplication/jsonrequired
passwordobjectrequired

The user's password or passcode used to log in a user. Passwords must be:

  • between 8 and 30 characters
  • include a lowercase character
  • include an uppercase character
  • include a digit and a special character
  • different from any of the 5 last such passwords used.

For non-PCI compliant integrations, the password submitted must be tokenised.

curl -i -X POST \
  https://sandbox.weavr.io/payment-run/v1/password/110747174434373672 \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "password": {
      "value": "pa$$word"
    }
  }'

Responses

OK

Headers
request-refstringrequired

A request identifier. Providing this reference when contacting our support team will help us investigate your query.

Bodyapplication/json
passwordInfoobject

Additional information related to the user's password.

tokenstring

The authorisation token to be used in the Authorization header for secured operations.

Response
{ "passwordInfo": { "buyerId": "string", "expiryDate": 0 }, "token": "string" }