Question: I Need Your Help In Api Keys

I Need Your Help In Api Keys

Can you tell me what will be url for api if my domain is xyz.com/ http://ci.dev/sma/api/v1/sales?reference=SALE/POS/2015/07/0001&include=items,warehouse&api-key=yourapikey I am using foll

F

Farhan

Asked
  • MS

    Mian Saleem

    Answered

    Hello,

    Once you have enabled API features in system settings and genrated api key, you should be able to access the data.

    Yes, the url seems to be correct. You only need to replace the reference & api-key

    If still same, please share the correct url in private reply so that I can help you check.

    Thank you

  • PV

    Prom Vongchann

    Answered

    I have a question, if I don’t use the sale referene for this case I use customer phone number & date instead, is it possible to do that?

  • MS

    Mian Saleem

    Answered

    Prom Vongchann Hello,

    You can send customer_id=? with customer id or customer=? for customer name.

    Thank you

  • PV

    Prom Vongchann

    Answered

    Mian Saleem I am thinking if customer could use the information on invoice to submit on a form we want to use for reward collecting. so if we can make it possible for customer to submit only : phone number & date to call the API that would be best for my case.

    please check my attachment for referance

  • MS

    Mian Saleem

    Answered

    Prom Vongchann Hello,

    There is no such option. Please feel free to modify the APIs, the code is in app/controllers/Api/ folder.

    Thank you

  • PV

    Prom Vongchann

    Answered

    Mian Saleem could you provide such a snipet of modification to use phone number & date to call API, please?

  • MS

    Mian Saleem

    Answered

    Hello,

    I am sorry as I don’t have snippet for such.

    Thank you

  • PV

    Prom Vongchann

    Answered

    Mian Saleem oh sad for that

  • Login to Reply