VU CUSTOM
Developer Docs
Developer Docs
  • VU OS Admin API Overview
  • Account Management
    • Overview
    • Create a sold_to_account
    • Create a ship_to_account
    • Batch update sold_to_account
    • Batch update ship_to_account
    • Get a list of sold_to_accounts
    • Get a list of ship_to_accounts
    • Delete a sold_to_account
    • Delete a ship_to_account
  • Orders
    • Overview
    • Create an order
    • Get an order
    • Get a list of orders
    • Update an order
    • Delete an order
    • Add tags to an order
    • Add tags to many orders
    • Delete tags from an order
    • Delete tags from many orders
  • Products
    • Overview
    • Create a product
    • Get a list of products
    • Get a specific product
    • Delete a product
  • Recipes
    • Overview
    • Retrieving Recipes
  • Fulfillments
    • Overview
    • Create a fulfillment
    • Retrieve a fulfillment
    • Retrieve a list of fulfillments
  • Order Lines
    • Overview
    • Add tags to an order line
    • Retrieve a list of orderlines
    • Retrieve a specific order line
    • Delete tags from an order line
    • Update a specific order line
  • Integration
    • Integrate the Customizer with Your Frontend
    • Understanding Recipe IDs in VU Custom
    • Styling the Customizer
    • Test the Customizer
    • Webhooks
Powered by GitBook
On this page
  1. Account Management

Batch update ship_to_account

Method : POST

https://admin.vucustom.com/api/:api_version/sold_to_accounts/bulk
Example Request Body
curl --location 'https://admin.vucustom.com/api/v1/sold_to_accounts/bulk' \
--data-raw '{
    "sold_to_accounts": [
        {
            "account_number": "123",
            "address_1": "448 Test Street",
            "address_2": "",
            "city": "Lawrence",
            "company_name": "",
            "country": "US",
            "first_name": "John",
            "last_name": "Doe",
            "phone": "(770) 210-4897",
            "postal_code": "66049",
            "ship_to_accounts": [
                {
                    "account_number": "123_sh",
                    "address_1": "448 Test Street",
                    "address_2": "",
                    "city": "s",
                    "company_name": "",
                    "country": "US",
                    "email": "test@test.com",
                    "first_name": "John",
                    "last_name": "Doe",
                    "phone": "(770) 210-4897",
                    "postal_code": "66049",
                    "state_region": "KS"
                }
            ],
            "state_region": "KS"
        }
    ]
}'
}

Request Body Schema

Field Name
Type
Required
Description

sold_to_accounts

array

Yes

if an object which is present in this array and not present in the DB it will get added.

if an object which is present in this array and also present in the DB it will get updated with the information provided.

An array of ship_to_account objects should be present for each sold_to account.

ship_to_accounts

array

Yes

200 Successful response example

{
  "sold_to_account": {
    "account_number": "123",
    "address_1": "448 Test Street",
    "address_2": "",
    "alternate_name": "ATTN",
    "city": "Lawrence",
    "company_name": "",
    "country": "US",
    "created_at": "2022-10-31T01:54:56.271Z",
    "first_name": "John",
    "id": 12345,
    "last_name": "Doe",
    "phone": "(770) 210-4897",
    "postal_code": "66049",
    "ship_to_accounts": [
      {
        "account_number": "123_sh",
        "address_1": "448 Test Street",
        "address_2": "",
        "alternate_name": "ATTN",
        "city": "s",
        "company_name": "",
        "country": "US",
        "created_at": "2022-10-31T01:54:56.271Z",
        "email": "test@test.com",
        "first_name": "John",
        "id": 12345,
        "last_name": "Doe",
        "phone": "(770) 210-4897",
        "postal_code": "66049",
        "sold_to_account_number": "123",
        "state_region": "KS",
        "updated_at": "2022-10-31T01:54:56.271Z"
      }
    ],
    "state_region": "KS",
    "updated_at": "2022-10-31T01:54:56.271Z"
  }
}

401 Unauthorized

The client doesn’t have correct authentication credentials.

{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}

422 Unprocessable Entity

5xx Errors

An internal error occurred in VU Admin.

PreviousBatch update sold_to_accountNextGet a list of sold_to_accounts

Last updated 5 months ago

This is an array of sold_to_account objects. please refer to for these objects.

This is an array of ship_to_account objects. please refer to for these objects. if an object which is present in this array and not present in the DB it will get added. if an object which is present in this array and also present in this array it will get updated with the information provided.

schema
schema