POST Create customer

The Update Customer API will let you update an existing customer into your Toursys platform.

[ENDPOINT]/ToursysConnectionApi/api/customer/update

Headers

X-API-KEY generatedToken

Parameters:


Example Request

curl --location -g --request POST '[ENDPOINT]/ToursysConnectionApi/api/customer/create' \

--header 'X-API-KEY: generatedToken' \

--header 'Content-Type: application/json' \

--data '{

 "customer_code": "Acmetravel",

 "customer_legal_name": "Acmetravel SA",

 "customer_commecial_name": "Acmetravel",

 "customer_internal_comments": "VIP Client",

 "customer_prepayment_days": 0,

 "customer_credit_days": 5,

 "customer_margin": 10,

 "customer_office_address": "USA, Florida",

 "customer_business_address": "USA, Florida",

 "customer_email": "info@acmetravel.com",

 "customer_phone": "+1 (213) 984-1313",

 "customer_website":"acmetravel.com",

 "customer_contacts": [

   {

     "contact_code": "John Smith",

     "contact_first_name": "John",

     "contact_last_name": "Smith",

     "contact_gender": "0",

     "contact_email": "john.smith@acmetravel.com",

     "contact_phone": "+1 (213) 984-1313",

     "contact_type": "Sales"

   }

 ]

}'

Error codes:

BAD_GATEWAY - 500