Knowledge Base / API
עברית

Ask AI

✦ AI answer

Thinking…

Sources

    Retrieving Customer Account Details (Get Account info by cardcom Account Id)

    When should this function be used?

    Customers who use their own CRM, or who want to update customer details on their website or in their internal database, can use the Get Account info by cardcom Account Id function.

    What does this function return?

    The function provides the available customer data from the Cardcom website, including parameters such as:

    • Customer name
    • Customer city
    • Phone number
    • Email
    • Special comments
    • Additional secondary data.

    Below is a link to the function's JSON documentation.

    Request method: POST.

    Get Account info by cardcom Account Id

    https://secure.cardcom.solutions/api/v11/Account/GetByAccountId

     

    Below are the parameters that must be passed to the Get recurring payment history function.

    Key:

    Red parameter – required

    Bold parameter – recommended

    A parameter that is neither red nor bold is optional.

    No.
    Parameter Example values Description
    1ApiName"test2025"API username
    2ApiPassword"test5000$"API user password
    3AccountId13463Internal customer account number

     

    Get Account info by cardcom Account Id RESPONSE.

    No.
    Parameter Example values Description
    1ResponseCode0Response code. If it equals zero, the function was executed successfully. Any other response indicates that the operation was unsuccessful.
    2Description"OK"Response description. "OK" indicates success.

     

    Account object values (3).

    No.
    Parameter Example values Description
    1AccountId13463Customer account number.
    2Name"Test customer"Customer name.
    3FirstName"First name"Additional customer name for the document.
    4TaxId"516731969"Company registration number or ID number.
    5City"Rishon LeZion"City.
    6AddressLine1"1 Rothschild St."First address line.
    7AddressLine2"Floor 2, Apartment 20"Second address line.
    8Mobile"0522222222"Mobile phone number.
    9Phone"03161635"Landline phone number.
    10Email "t.@t.com"Customer email address. 
    11IsVatFreeboolean - true / false Whether the customer is VAT-exempt, for example, a customer located outside Israel. 
    12ZipCode "41565748" Customer postal code.
    13PoBox "P.O. Box 5"P.O. box. 
    14Fax"03548135" Fax. 
    15OpenDate"4.12.2019" Opening date
    16 Comments "VIP customer"Comments 
    17AccountForeignKey "513"Accounting system number.
    18 SiteUniqueId"849" The merchant's unique identifier for this customer account. 
    19ContactName"Moshe"  Contact person's name.
    20 ISOCoinId1 - Israeli shekel

    2 - US dollar

    For additional currency codes, see the Currency Code List

     The currency used in customer documents.
    21Balance 500The balance in the customer account. 
    22 OpeningBalance0  The opening balance in the customer account.

    Below are sample code snippets for retrieving customer account information.

    Sending the request to retrieve the account details:

    {
      "ApiName": "test2025",
      "ApiPassword": "test5000$",
      "AccountId": "4850"
    }

    Response received:

    {
        "ResponseCode": 0,
        "Description": "OK",
        "Account": {
            "AccountId": 4850,
            "Name": "test user",
            "FirstName": null,
            "TaxId": "test company",
            "City": "city",
            "AddressLine1": "address",
            "AddressLine2": "",
            "Mobile": "+9721234124112",
            "Phone": "",
            "Email": null,
            "IsVatFree": false,
            "ZipCode": null,
            "PoBox": null,
            "Fax": null,
            "OpenDate": "2019-12-04T00:00:00",
            "Comments": null,
            "AccountForeignKey": null,
            "SiteUniqueId": "",
            "ContactName": null,
            "ISOCoinId": 1,
            "Balance": 0.00,
            "OpeningBalance": 0.00
        }
    }

    Was this article helpful?