Resource Information


Description Endpoint to create a customer in B2BToolbox, which can then be synced to Shopify.
Resource URL https://api.mpstoolbox.com/v1/clients
Rate Limited False
Response Format JSON
Authentication API-Key

Parameters


Parameter Type Description Optional Default
clients JSON Provide an array of customer details for the new client record. Fields marked with an asterisk (*) are required:

accountnumber *
company *
firstname
lastname
phonenumber
email *
address *
address1
city *
province *
zippostal *
country *
False NULL

Example


POST https://api.mpstoolbox.com/v1/clients/

Request

{
    "clients": [
        {
        "accountnumber": "12345678901",
        "company": "Slate Rock and Gravel Company",
        "firstname": "Fred",
        "lastname": "Flintstone",
        "phonenumber": "613-555-1234",
        "email": "fred@bedrock.com",
        "address": "301 Cobblestone Way",
        "city": "Bedrock",
        "province": "ON",
        "zippostal": "70777",
        "country": "CA"
        },
        {
        "accountnumber": "23456789012",
        "company": "Slate Rock and Gravel Company",
        "firstname": "Barney",
        "lastname": "Rubble",
        "phonenumber": "613-555-1234",
        "email": "barney@bedrock.com",
        "address": "302 Cobblestone Way",
        "city": "Bedrock",
        "province": "ON",
        "zippostal": "70777",
        "country": "CA"
        }
    ]
}

Response

{
    "code" : "200",
    "data" : true
}

Error Response

{
    "code": 400,
    "data": "Bad Request. Unexpected parameter."
}