Update account information - celdotro/marketplace GitHub Wiki

About

Updates the following data of an affiliate: CIF, IBAN, phone number, password, bank's name, full name, headquarter's address, and short description

Class

celmarket\Admin\AdminAccount

Method

updateAccountInformation

API

  • method: admininfo
  • action: updateAccountInformation

Parameters

(at least 1 parameter is mandatory)

  • cif = fiscal identification code / unique identification number
  • iban = International Bank Account Number (IBAN)
  • phone number = affiliate's phone number
  • password = affiliate's password
  • bank = bank's name (if the bank is found in the default bank list, then the name will be extracted automatically from the IBAN)
  • (LEGACY - DON'T USE) fullName = company's full name (include SC, SA, SRL etc.)
  • description = short description
  • apiLink = api callback
  • contactPerson = contact person
  • county = county
  • city = city
  • reg = commercial register number -> json document
    • j1 = first part (J/F/C)
    • j2 = second part (01-12)
    • j3 = third part
    • j4 = fourth part (year)
  • timpProcesareImplicit = Number of days for default processing time of an order

Response

An object with the following attributes

  • success = 1 => the operation was successful

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Admin/8.updateAccountInformation.php

Example - JSON

{
  "request": {
    "cif": "X",
    "iban": "X",
    "telephone": "X",
    "parola": "X",
    "bank": "X",
    "hqAddress": "X",
    "description": "x",
    "api_link": "X",
    "contactPerson": "X",
    "county": "X",
    "city": "X",
    "reg": {
      "j1": "X",
      "j2": "X",
      "j3": "X",
      "j4": "X"
    },
    "timpProcesareImplicit": "X"
  },
  
  "response": {
    "success": 1
  }
}

List of values sent through api_link

  • (1) = 0 = test link (first call after insert) (2) = 0 (3) = []
  • (1) = 1 = new orders (2) = number of new orders (3) = []
  • (1) = 2 = invoice import (2) = sent parameters (3) = []
  • (1) = 3 = set as ready for delivery (2) = sent parameters (3) = []
  • (1) = 4 = finalize order (2) = sent parameters (3) = []
  • (1) = 5 = change product price from order (2) = sent parameters (3) = []
  • (1) = 6 = add products to an order (2) = sent parameters (3) = []
  • (1) = 7 = remove products from an order (2) = sent parameters (3) = []
  • (1) = 8 = update an order's product (2) = sent parameters (3) = []
  • (1) = 9 = cancel order (2) = sent parameters (3) = []
  • (1) = 10 = import AWB (2) = sent parameters (3) = []
  • (1) = 11 = remove AWB (2) = sent parameters (3) = []
  • (1) = 12 = confirm order (2) = sent parameters (3) = []
  • (1) = 13 = reactivate order (2) = sent parameters (3) = []
  • (1) = 14 = import products (2) = bad list and number of updated products (3) = []
  • (1) = 15 = add address (2) = address data (3) = []
  • (1) = 16 = remove address (2) = address data (3) = []
  • (1) = 17 = change address (2) = address data (3) = []