Resource Information


Description Endpoint to update a customer record in B2BToolbox and Shopify.
Resource URL https://api.mpstoolbox.com/v1/clients/{clientid}/
Rate Limited False
Response Format JSON
Authentication API-Key

Parameters


Parameter Type Description Optional Default
clientid bigint The client id of the client to update. False NULL
client JSON An array of the client details you wish to update.
The following fields are accepted, but none are required. At least one field must be included.

accountnumber
company
firstname
lastname
phonenumber
email
hubspot_id
sap_id
eautomate_id
address
address1
city
province
zippostal
country
transaction_type

NOTE: transaction_type parameter value can either be 'Credit Card', 'Purchase Order', or 'Purchase Order Invoice'
False NULL

Example


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

Request

{
     "client": {
         "address": "2387 Granite Slab Pl.",
         "zippostal": "70789",
         "transaction_type" : "Purchase Order"
     }
 }

Response

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

Error Response

{
    "code": 204,
    "data": "No Data Found"
}

{
    "code": 500,
    "data": "Error updating client data, make sure your data is correct."
}

{
    "code": 400,
    "data": "Bad Request. Check JSON parameter and format in the documentation."
}