Lookup Contacts
Lookup Contacts
get /lookup_contactsThis node is called for systems using lookup services for prefilling a new contact with information from third party system. See CrmContact for fields.
Key for finding contact.
Returns an array with 1 item of type CrmContact or an empty array if no contact could be found using the lookup service.
[ { "email": "", "membernumber": "", "namefirst": "Johan", "namelast": "Andersson", "personalid": "6308212817", "company": "", "companyid": "", "phone": "", "mobile": "", "invoice_address": "Storgatan 1", "invoice_address2": "", "invoice_zip": "12345", "invoice_city": "Varberg", "invoice_state": "", "invoice_countryid": "se", "delivery_address": "Storgatan 1", "delivery_address2": "", "delivery_zip": "12345", "delivery_city": "Varberg", "delivery_state": "", "delivery_countryid": "se", "gender": "male", "birthday": "1963-08-21T00:00:00Z", "accepts_email": true, "accepts_sms": true, "accepts_mail": true, "acceptedconsents": [ "1", "2" ], "voucherpasswords": [], "storeexternalid": null }]
HTTP Status Code Summary | |
---|---|
200 | Returns an array with 1 item of type CrmContact or an empty array if no contact could be found using the lookup service. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
500 | Internal Server Error. |
Objects
crmbonuscheckobject
ID of the bonus check
Name displayed for the bonus check
Description of the bonus check
The amount value of the bonus check
Boolean value indicating if the bonus check has been redeemed
Optional. Timestamp indicating when the bonus check was redeemed
crmcontactobject
ID of the contact.
Member Number for the contact. (This field is used to represent the customer on purchase receipts)
Email for the contact.
First Name of the contact.
Last Name of the contact.
Social Security Number (SSN) for the contact.
Company for the contact.
Company ID for the contact.
Phone Number for the contact.
Mobile Phone number for the contact.
Address for the contact (invoice).
Address line 2 for the contact (invoice).
Zip Code for the contact (invoice).
City for the contact (invoice).
State/Region for the contact (invoice).
2 character country code according to ISO 3166-1 standard for the contact (invoice).
Address for the contact (delivery).
Address line 2 for the contact (delivery).
Zip Code for the contact (delivery).
City for the contact (delivery).
State/Region for the contact (delivery).
2 character country code according to ISO 3166-1 standard for the contact (delivery).
Optional. Enumerated value for gender of the contact.
Optional. Date of birth for the contact in ISO 8601 format.
Boolean value indicating if contact accepts communication via email.
Boolean value indicating if contact accepts communication via text messaging (SMS).
Boolean value indicating if contact accepts communication via postal service.
Array of accepted consents (consentid) for the contact.
Extended. Optional. Enumerated value indicating status color for the contact.
Extended. Optional. Status Text for the contact.
Extended. Optional. Array of CrmPromotion for the contact.
Extended. Optional. Array of CrmBonusCheck for the contact.
Extended. Optional. Array of CrmTransaction for the contact.
Optional. Associated voucher passwords, used to activate campaigns for contact in Sitoo POS.
Optional. Store External ID from where the contact was created.
crmpromotionobject
ID of the promotion.
Enumerated value for type of promotion.
Name of the promotion.
Description of the promotion.
Boolean value indicating if the promotion has been redeemed
Optional. Timestamp indicating when the promotion was redeemed
crmtransactionobject
ID of the transaction.
Optional. Sitoo Receipt ID for the transaction. (If set, then can be used to perform refund in Sitoo POS)
Optional. Sitoo Order ID for the transaction. (If set, then can be used to perform refund in Sitoo POS)
Optional. Sitoo Order External ID for the transaction. (If set, then can be used to perform refund in Sitoo POS)
Timestamp for when the transaction was created.
Store ID for the transaction.
Store Name for the transaction.
Optional. Store External ID for the transaction.
Optional. POS ID for the transaction.
Optional. Round Off for the transaction.
Items in this transaction. Array of CrmTransactionItem.
Payments for this transaction. Array of CrmTransactionPayment.
Optional. Array with ID for promotions used in this transaction.
Optional. Array with ID for bonus checks used in this transaction.
Optional. Currency used for this transaction (3-letter ISO 4217).
crmtransactionitemobject
ID of transaction item.
Stock Keeping Unit (SKU) for transaction item.
Title row 1 for transaction item.
Optional. Title row 2 for transaction item.
Optional. Note for transaction item.
Name of product group for transaction item.
Optional. Brand for transaction item.
Optional. Custom field 1 for transaction item.
Optional. Custom field 2 for transaction item.
Optional. Custom field 3 for transaction item.
Optional. Custom field 4 for transaction item.
Optional. Custom field 5 for transaction item.
VAT percentage for transaction item.
Total amount for item incl VAT (before applying manual discount and discounts)
VAT amount for total.
Manual discount incl VAT
VAT amount for manual discount
Optional. Name provided for manual discount
Quantity for transaction item.
Optional. Unit Size (How much that is included in each unit).
Optional. Label for unit of transaction item. (e.g. kg)
Array of CrmTransactionItemDiscount.
crmtransactionitemdiscountobject
crmtransactionpaymentobject
ID of the payment.
Name of the payment.
Amount for the payment.
decimalquantity
genderstring
female
Femalemale
Maleundisclosed
Undisclosed
moneystring
promotiontypeobject
The type of promotion
promotiontypecartamountobject
The type of this promotion.
VALUES |
---|
cart_amount |
Cart amount to discount.
promotiontypecartpercentobject
The type of this promotion.
VALUES |
---|
cart_percent |
Percent to discount.
promotiontypemanualobject
The type of this promotion.
VALUES |
---|
manual |
promotiontypeofferobject
The type of this promotion.
VALUES |
---|
offer |
Voucher password that can enable campaigns that already exist in the Sitoo Platform.
status_colorstring
green
Greenorange
Orangered
Red