Skip to content

Create new lab #216

@sawibo

Description

@sawibo

Hi,
I'm trying to use the Lab.create() function to create a new lab (account). The new account is being made but all the billing-address & shipping-address fields don't get filled in. Am I missing something obvious or is creating a new lab not yet fully supported ? Below the code I'm using:

    account = Lab.create(
        lims,
        name=account_info['account_name'],
        website=account_info['account_website'],
        udf={'BudgetNrs' : account_info['account_BudgetNrs']},
        billing_address={
            'street' : account_info['billing_street'],
            'city' : account_info['billing_city'],
            'state' : account_info['billing_state'],
            'country' : account_info['billing_country'],
            'postalCode' : account_info['billing_postalCode'],
            'institution' : account_info['billing_institution'],
            'department' : account_info['billing_department']
        },
        shipping_address={
            'street' : account_info['shipping_street'],
            'city' : account_info['shipping_city'],
            'state' : account_info['shipping_state'],
            'country' : account_info['shipping_country'],
            'postalCode' : account_info['shipping_postalCode'],
            'institution' : account_info['shipping_institution'],
            'department' : account_info['shipping_department']
        }
    )

account_info <- a dictionary containing all necessary info

Best,
Sander

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions