Skip to main content

Create Withdraw Setting

POST 

/utils/user-withdraw-settings

Create a new withdraw setting for the user.

Request

Header Parameters

    x-transaction-uuid stringrequired

    The transaction ID is a UUID (v4) used to uniquely identify the object that will be created. All objects must have an identifier.

    x-wallet-uuid string

    Sender Wallet UUID (if empty, your default Wallet UUID will be settled)

    nonce stringrequired

    The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.

    x-lang string

    Possible values: [pt-BR, en-US]

    Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.

    x-product-uuid string

    The product ID is a UUID (v4) used to identify the Z.ro product configuration.

    x-product-target-user-uuid string

    The product target user ID is a UUID (v4) used to identify what user account this request must be executed. Require: x-product-uuid.

Body

required
    transaction_type_tag stringrequired

    Transaction type tag.

    pix_key_type stringrequired

    Possible values: [CNPJ, CPF, PHONE, EMAIL, EVP]

    Pix key type.

    pix_key stringrequired

    Pix key.

    pix_key_document string

    Pix key document related (CPF or CNPJ).

    type stringrequired

    Possible values: [DAILY, WEEKLY, MONTHLY, BALANCE]

    Withdraw settings type.

    data object required

    Withdraw configuration data (based on type)

    oneOf
    balance number

    Withdraw settings balance in cents, minimum 100.

    total_available_balance boolean

    Total available balance for withdraw (if withdraw settings type is DAILY, WEEKLY or MONTHLY).

Responses

User withdraw settings created successfully.

Schema
    id stringrequired

    User withdraw settings id.

    state stringrequired

    Possible values: [ACTIVE, DEACTIVE]

    User withdraw settings state.

    type stringrequired

    Possible values: [DAILY, WEEKLY, MONTHLY, BALANCE]

    Withdraw settings type.

    balance numberrequired

    Withdraw settings balance.

    total_available_balance boolean

    Total available balance for withdraw (if withdraw settings type is DAILY, WEEKLY or MONTHLY).

    day number

    Month day of withdraw (if withdraw settings type is MONTHLY).

    week_day string

    Possible values: [MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY]

    Week day of withdraw (if withdraw settings type is WEEKLY).

    wallet_id stringrequired

    User wallet id.

    transaction_type_tag stringrequired

    Transaction type tag.

    pix_key_type stringrequired

    Possible values: [CNPJ, CPF, PHONE, EMAIL, EVP]

    Pix key type.

    pix_key stringrequired

    Pix key.

    pix_key_document string

    Pix key document related (CPF or CNPJ).

    created_at date-timerequired

    Date of created withdraw.

Loading...