Skip to content

Verify account

/me/verify_account

Target audience: Developers

Release version: 4.9.24

Verify account

Introduction

This endpoint verifies the authenticated account using a confirmation code from a previously created verification request. If the account is not already active, it will be activated.

Use Pending verification request to check the status of a verification request before completing it.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v1/me/verify_account
Production https://backend.worldoftulo.com/external/api/v1/me/verify_account

Requirements

Identity Scope
Yes /external/me/w

Parameters

Field Required Type Description
confirmation_code Required String The confirmation code received from the verification request

Curl Example

curl --request POST \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/me/verify_account \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token_with_identity>' \
  --header 'content-type: application/json' \
  --data '{
            "confirmation_code": "89bd6d78-4ace-4a0c-a517-afbbbc97c659"
          }'

Response

Field Description
account_id The id of the verified account
status The verification status of the account: "verified"
verified Whether the account is verified

Example response

HTTP 200
{
  "item": {
    "account_id": "5c6291d537c2ed78a11518b7",
    "status": "verified",
    "verified": true
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses