cs has one cmp
// => cs has one or more costcenters, but if no costcenter defined in request then the "root costcenter" would be created by tag data of user segment like user address
// Usage: [mdtr = mandatory] [opt = optional] [doop = depends on operation] [fut = future]
// Auftraggeber
// Abschnitt für Authentifikation des Requests
[mdtr] // Zusätzliche Session-ID, die mit dem Kunden ausgehandelt wurde [mandatory]
[mdtr] // Per Algorithmus generierte Phrase, die per one-way-encryption ermittelt wird sowohl für den Versand als auch zum Abgleich bei Eingang
[opt] // Operation on customer dataset (INS, INSERT, UPD, UPDATE, DEL, DELETE) [default = empty = INS(ERT)]
[opt] // Activates debug output ("ON" or "YES")
[doop] // ID of the customer, needed for DEL or UPD
[opt] // EID of the customer, needed for INS (use explicitly if does not exist) or UPD (overwrite if does not exist)
[doop] // Commission no of the customer of remote system
[fut] // Headquarters {1, 2, ....} or {HB, HH, ....}. If numeric value then checked by database field "hq_id", otherwise by "hq_mnemonic"
[fut] // Provision [%]
[fut] // Discount [%]
[opt] // Invoice mode
[fut] // Favoured couriers only
[opt] // Mail per order being finished
[opt] // Mail per order being picked up
[opt] // Mail per order being created
[opt] // Generate PDF attachement for mail "finished order"
[opt] // Classic filter regarding every order
[opt] // Customer can belong to a special group
[opt] // System is allowed to track the customer
// COMPANY [1:1 CUSTOMER]
[fut] // Type of the customer (default = 0 <=> active customer)
[doop] // Name field 1 [mandatory for insert]
[opt] // Name field 2
[opt] // Name field 3
[opt] // Name field 4
[mdtr] // Street
[mdtr] // House number
[mdtr] // Zipcode
[mdtr] // City
[mdtr] // Country
[opt] // ILN (= GLN = Global Location Number)
[opt] // Tax no
[mdtr] // Sales tax no (Umsatzsteueridentifikationsnummer)
[opt] // Bank name
[opt] // Bank no (BLZ)
[opt] // bank account (in connection with the bank no)
[mdtr] // IBAN (either IBAN is mandatory or fields and have to be set)
[opt] // SWIFT
[opt] // Filename of the logo (The generated cs_id or cs_eid will be the prefix of the filename)
[opt] // Width of the logo
[opt] // Height of the logo
[opt] // Public remark for the customer
[opt] // Private (internal) remark for the customer
[opt] // Freetext (200 chars) with space separated buzzword for search requests in customer master data
[opt] // Freetext (50 chars) for internal categorization
[fut] // Flag for getting newsletter (default = 0)
[fut] // Flag for using pda with app (default = 0)
// USER [1:1 CUSTOMER] ("Root"-)User des Kunden bzw. Auftraggebers, der sich (in votian und/oder im (Börsen-)Portal) einloggen kann
[opt] // Nachname
[opt] // Vorname
[opt] // Geburtsdatum ["Y-m-d" <=> "JJJJ-MM-TT"]
[opt] // Email-Adresse (primäre Mailadresse)
[fut] // Rechnungs-Email-Adresse [NICHT IN VERWENDUNG BEI CUSTOMER]
[opt] // Telefon
[opt] // Mobil
[opt] // Fax
[opt] // Account
[opt] // Passwort (mind. 8-stellig, mind. eine Zahl, mind. ein Buchstabe)
// COSTCENTERS
[opt] // Ignored if tag != "UPD", otherwise IN (INS, INSERT, UPD, UPDATE, DEL, DELETE) [default = empty = INS(ERT)]
[opt] // Ignored if tag != "UPD" or == "INS", otherwise delete or update costcenter
[mdtr] // Parent ID for hierarchy (default = empty for root costcenter)
[opt] // Name of the costcenter. If empty for root costcenter then company name will be used
[opt] // Ignored if tag != "UPD" and != "UPD" and == "" and == "", otherwise INS, INSERT, UPD, UPDATE, DEL, DELETE [default = empty = INS(ERT)]
[opt] // Ignored if tag != "UPD" and != "UPD" or == "INS", otherwise delete or update address for special address type
[doop] // Name field 1 [mandatory for insert]
[opt] // Name field 2
[opt] // Name field 3
[opt] // Name field 4
[opt] // Street ( has to be set for update)
[opt] // House number ( has to be set for update)
[opt] // Floor (für address) ( has to be set for update)
[opt] // Zipcode ( has to be set for update)
[opt] // City ( has to be set for update)
[opt] // Country ( has to be set for update)
[opt] // Person for costcenter address
[opt] // Phone for costcenter address
[opt] // Email for costcenter address
[opt] // Remark for costcenter address
....
....
// Next costcenter ....
....
....
// Manuelle EVENTS
[fut]
[fut]
[fut]
...
*/
$req = "
XXXX
YYYY
GET
YES
839459
SID
2
5.55
1.11
1
0
0
0
0
0
0
0
Comp_1
Comp_2
Comp_3
Comp_4
Am Ochsenzoll
147
22851
Norderstedt
DE
ILN1234567890
ST1234567
UST1234567
HASPA
200 505 50
1234 12 34 56
1234567890
ins_logo.jpg
300
200
BEMERKUNG_1
BEMERKUNG_1
BUZZWORDS HERE
TEST
0
1
Name
Vorname
1972-02-01
test@test.de
inv.test@test.de
040 4567890
0172 1234567
test
plain
[opt]
[opt]
[mdtr]
[opt]
[opt]
[opt]
[doop]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
[opt]
";
$reqEncoded = urlencode($req);
?>