API

ClaimAccount

A claim account code.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /user/claim-account create Claim account code generated successfully

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.ClaimAccount(nil).Create(map[string]any{"registrationCode": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:ClaimAccount():create({ registrationCode = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->ClaimAccount()->create(["registrationCode" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.ClaimAccount().create({ "registrationCode": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.ClaimAccount.create({ "registrationCode" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.ClaimAccount().create({ registrationCode: "example" })

Fields

Field Type Required Description
claimAccountCode string No The claim_account_code to be used in the redirect to Wise.
registrationCode string Yes The registration_code obtained when creating the user.

create

POST /user/claim-account

Operation ID: claimAccountCreate.

Authentication: bearer token (UserToken).

Parameters

Parameter In Type Required Description
X-External-Correlation-Id header string (uuid) No Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.

Request body

application/json

Property Type Required Description
registrationCode string Yes The registration_code obtained when creating the user.

Example request body:

{
  "registrationCode": "<registration code>"
}

Responses

200: Claim account code generated successfully

application/json

Property Type Required Description
claimAccountCode string No The claim_account_code to be used in the redirect to Wise.

Example response:

{
  "claimAccountCode": "<claim_account_code>"
}
429: Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header

application/json

The response is object.