POST Customer/addCustomerToBranch
Inserts Customer To Branch
Request Information
URI Parameters
None.
Body Parameters
InsertCustomerRequestName | Description | Type | Additional information |
---|---|---|---|
customer | Customer |
None. |
|
idBranch | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "customer": { "id": "sample string 1", "lastname": "sample string 2", "firstname": "sample string 3", "dob": "2025-05-10T11:17:55.6159984+02:00", "birthplace": "sample string 4", "email": "sample string 5", "gender": "sample string 6", "address": "sample string 7", "zipcode": "sample string 8", "medicalexpirydate": "2025-05-10T11:17:55.6159984+02:00", "city": "sample string 9", "state": "sample string 10", "phone": "sample string 11", "notes": "sample string 12", "taxcode": "sample string 13", "badgeid": "sample string 14", "memexpirydate": "2025-05-10T11:17:55.6159984+02:00", "typerow": "sample string 15", "ecommerce": true, "mobilephone": "sample string 16", "medicalexpirydate2": "2025-05-10T11:17:55.6159984+02:00", "vatcode": "sample string 17", "insertdate": "2025-05-10T11:17:55.6159984+02:00", "employee": true, "customerstate": "sample string 20", "statscurrentseason": 21.0, "statspastseason": 22.0, "statslast3months": 23.0, "statslast6months": 24.0, "debt": 25.0, "lastaccess": "2025-05-10T11:17:55.6159984+02:00", "lastedit": "2025-05-10T11:17:55.6159984+02:00", "activityexpiredate": "2025-05-10T11:17:55.6159984+02:00", "marketingagreement": true, "notifyagreement": true, "lastlogin": "2025-05-10T11:17:55.6159984+02:00", "myzoneid": "sample string 26", "massivedeleteid": 1.0, "progressive": 1, "userowner": "sample string 27", "userassignee": "sample string 28", "branch": [ { "id": "sample string 1", "name": "sample string 2", "ecomm_name": "sample string 3" }, { "id": "sample string 1", "name": "sample string 2", "ecomm_name": "sample string 3" } ] }, "idBranch": 1.0 }
application/xml, text/xml
Sample:
<InsertCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests"> <customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel"> <d2p1:activityexpiredate>2025-05-10T11:17:55.6159984+02:00</d2p1:activityexpiredate> <d2p1:address>sample string 7</d2p1:address> <d2p1:badgeid>sample string 14</d2p1:badgeid> <d2p1:birthplace>sample string 4</d2p1:birthplace> <d2p1:branch> <d2p1:Branch> <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:Branch> <d2p1:Branch> <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:Branch> </d2p1:branch> <d2p1:city>sample string 9</d2p1:city> <d2p1:customerstate>sample string 20</d2p1:customerstate> <d2p1:debt>25</d2p1:debt> <d2p1:dob>2025-05-10T11:17:55.6159984+02:00</d2p1:dob> <d2p1:ecommerce>true</d2p1:ecommerce> <d2p1:email>sample string 5</d2p1:email> <d2p1:employee>true</d2p1:employee> <d2p1:firstname>sample string 3</d2p1:firstname> <d2p1:gender>sample string 6</d2p1:gender> <d2p1:id>sample string 1</d2p1:id> <d2p1:insertdate>2025-05-10T11:17:55.6159984+02:00</d2p1:insertdate> <d2p1:lastaccess>2025-05-10T11:17:55.6159984+02:00</d2p1:lastaccess> <d2p1:lastedit>2025-05-10T11:17:55.6159984+02:00</d2p1:lastedit> <d2p1:lastlogin>2025-05-10T11:17:55.6159984+02:00</d2p1:lastlogin> <d2p1:lastname>sample string 2</d2p1:lastname> <d2p1:marketingagreement>true</d2p1:marketingagreement> <d2p1:massivedeleteid>1</d2p1:massivedeleteid> <d2p1:medicalexpirydate>2025-05-10T11:17:55.6159984+02:00</d2p1:medicalexpirydate> <d2p1:medicalexpirydate2>2025-05-10T11:17:55.6159984+02:00</d2p1:medicalexpirydate2> <d2p1:memexpirydate>2025-05-10T11:17:55.6159984+02:00</d2p1:memexpirydate> <d2p1:mobilephone>sample string 16</d2p1:mobilephone> <d2p1:myzoneid>sample string 26</d2p1:myzoneid> <d2p1:notes>sample string 12</d2p1:notes> <d2p1:notifyagreement>true</d2p1:notifyagreement> <d2p1:phone>sample string 11</d2p1:phone> <d2p1:progressive>1</d2p1:progressive> <d2p1:state>sample string 10</d2p1:state> <d2p1:statscurrentseason>21</d2p1:statscurrentseason> <d2p1:statslast3months>23</d2p1:statslast3months> <d2p1:statslast6months>24</d2p1:statslast6months> <d2p1:statspastseason>22</d2p1:statspastseason> <d2p1:taxcode>sample string 13</d2p1:taxcode> <d2p1:typerow>sample string 15</d2p1:typerow> <d2p1:userassignee>sample string 28</d2p1:userassignee> <d2p1:userowner>sample string 27</d2p1:userowner> <d2p1:vatcode>sample string 17</d2p1:vatcode> <d2p1:zipcode>sample string 8</d2p1:zipcode> </customer> <idBranch>1</idBranch> </InsertCustomerRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InsertCustomerResponseName | Description | Type | Additional information |
---|---|---|---|
success | boolean |
None. |
|
customer | Customer |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "customer": { "id": "sample string 1", "lastname": "sample string 2", "firstname": "sample string 3", "dob": "2025-05-10T11:17:55.6159984+02:00", "birthplace": "sample string 4", "email": "sample string 5", "gender": "sample string 6", "address": "sample string 7", "zipcode": "sample string 8", "medicalexpirydate": "2025-05-10T11:17:55.6159984+02:00", "city": "sample string 9", "state": "sample string 10", "phone": "sample string 11", "notes": "sample string 12", "taxcode": "sample string 13", "badgeid": "sample string 14", "memexpirydate": "2025-05-10T11:17:55.6159984+02:00", "typerow": "sample string 15", "ecommerce": true, "mobilephone": "sample string 16", "medicalexpirydate2": "2025-05-10T11:17:55.6159984+02:00", "vatcode": "sample string 17", "insertdate": "2025-05-10T11:17:55.6159984+02:00", "employee": true, "customerstate": "sample string 20", "statscurrentseason": 21.0, "statspastseason": 22.0, "statslast3months": 23.0, "statslast6months": 24.0, "debt": 25.0, "lastaccess": "2025-05-10T11:17:55.6159984+02:00", "lastedit": "2025-05-10T11:17:55.6159984+02:00", "activityexpiredate": "2025-05-10T11:17:55.6159984+02:00", "marketingagreement": true, "notifyagreement": true, "lastlogin": "2025-05-10T11:17:55.6159984+02:00", "myzoneid": "sample string 26", "massivedeleteid": 1.0, "progressive": 1, "userowner": "sample string 27", "userassignee": "sample string 28", "branch": [ { "id": "sample string 1", "name": "sample string 2", "ecomm_name": "sample string 3" }, { "id": "sample string 1", "name": "sample string 2", "ecomm_name": "sample string 3" } ] } }
application/xml, text/xml
Sample:
<InsertCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Responses"> <customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel"> <d2p1:activityexpiredate>2025-05-10T11:17:55.6159984+02:00</d2p1:activityexpiredate> <d2p1:address>sample string 7</d2p1:address> <d2p1:badgeid>sample string 14</d2p1:badgeid> <d2p1:birthplace>sample string 4</d2p1:birthplace> <d2p1:branch> <d2p1:Branch> <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:Branch> <d2p1:Branch> <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:Branch> </d2p1:branch> <d2p1:city>sample string 9</d2p1:city> <d2p1:customerstate>sample string 20</d2p1:customerstate> <d2p1:debt>25</d2p1:debt> <d2p1:dob>2025-05-10T11:17:55.6159984+02:00</d2p1:dob> <d2p1:ecommerce>true</d2p1:ecommerce> <d2p1:email>sample string 5</d2p1:email> <d2p1:employee>true</d2p1:employee> <d2p1:firstname>sample string 3</d2p1:firstname> <d2p1:gender>sample string 6</d2p1:gender> <d2p1:id>sample string 1</d2p1:id> <d2p1:insertdate>2025-05-10T11:17:55.6159984+02:00</d2p1:insertdate> <d2p1:lastaccess>2025-05-10T11:17:55.6159984+02:00</d2p1:lastaccess> <d2p1:lastedit>2025-05-10T11:17:55.6159984+02:00</d2p1:lastedit> <d2p1:lastlogin>2025-05-10T11:17:55.6159984+02:00</d2p1:lastlogin> <d2p1:lastname>sample string 2</d2p1:lastname> <d2p1:marketingagreement>true</d2p1:marketingagreement> <d2p1:massivedeleteid>1</d2p1:massivedeleteid> <d2p1:medicalexpirydate>2025-05-10T11:17:55.6159984+02:00</d2p1:medicalexpirydate> <d2p1:medicalexpirydate2>2025-05-10T11:17:55.6159984+02:00</d2p1:medicalexpirydate2> <d2p1:memexpirydate>2025-05-10T11:17:55.6159984+02:00</d2p1:memexpirydate> <d2p1:mobilephone>sample string 16</d2p1:mobilephone> <d2p1:myzoneid>sample string 26</d2p1:myzoneid> <d2p1:notes>sample string 12</d2p1:notes> <d2p1:notifyagreement>true</d2p1:notifyagreement> <d2p1:phone>sample string 11</d2p1:phone> <d2p1:progressive>1</d2p1:progressive> <d2p1:state>sample string 10</d2p1:state> <d2p1:statscurrentseason>21</d2p1:statscurrentseason> <d2p1:statslast3months>23</d2p1:statslast3months> <d2p1:statslast6months>24</d2p1:statslast6months> <d2p1:statspastseason>22</d2p1:statspastseason> <d2p1:taxcode>sample string 13</d2p1:taxcode> <d2p1:typerow>sample string 15</d2p1:typerow> <d2p1:userassignee>sample string 28</d2p1:userassignee> <d2p1:userowner>sample string 27</d2p1:userowner> <d2p1:vatcode>sample string 17</d2p1:vatcode> <d2p1:zipcode>sample string 8</d2p1:zipcode> </customer> <success>true</success> </InsertCustomerResponse>