Results 1 to 8 of 8
  1. #1
    JohanG is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    7

    Importing Data sent via Webhook (JSON Rest API)

    Greetings All MS Access Fundi's,

    I need advice as to how to go about importing webhook notifications sent from our Courier Company to an endpoint URL into our local server based MS Access Application.



    Notifications containing 'Proof of Delivery' information (fields: WaybillNo, User, Base64 image file) will be provided to us by the courier backend system as and when 'Proof of Deliveries' become available and I need to grab these notifications and import the WaybillNo, User and Base64 into a table. These notifications will be sent in JSON format as Rest API's.

    I need advice as to how to setup the required endpoint URL, implement an 'listener' application that will 'poll' the endpoint for new notifications and respond to the sender's backend, as well as to get the notification content into the MS Access application on our local LAN server.

    JSON Rest API sample code of what we will be sent below:

    1.40.5.403
    Code:
    {
        "meta": {
            "webhookRequestReference": "0777e722-f1c4-4565-9f93-0a6e99b03a91"
        },
        "data": {
            "event": "order.w2d.action.POD",
            "eventCode": "1.40.5.403",
            "description": "Proof of delivery provided by Pargo",
            "timestamp": "2022-05-12T11:46:01+00:00",
            "reference1": "PAR4035600243",
            "reference2": null,
            "extraReference1": null,
            "extraReference2": null,
            "extraReference3": null,
            "payload": {
                "receiver": {
                    "name": "RECEIVERNAME",
                    "signature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAACWCAYAAAAFQ5eQAAALjElEQVR4Xu2dWYg8VxXGE9cEFVwCBlFs1weXxIAQH1zaFx9UNOKCiOAfcSMkKCJEY9B/8EFcEBVcQNEBURFRI2rexBYNQYUsQvDBbQIuiYIad9y/j9SVoumlZrrP7bp1fgWH7p6pOvee3znz9a1bt2rOPYcNAhCAQBCBc4P84hYCEIDAOQgMRQABCIQRQGDC0OIYAhBAYKgBCEAgjAACE4YWxxCAAAJDDUAAAmEEEJgwtDiGAAQQGGoAAhAII4DAhKHFMQQggMBQAxCAQBgBBCYMLY4hAAEEhhqAAATCCCAwYWhxDAEIIDDUAAQgEEYAgQlDi2MIQACBoQYgAIEwAghMGFocQwACCAw1AAEIh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AqQaQICWQkgMFkzT9wQqEAAgakAmSYgkJUAApM188QNgQoEEJgKkGkCAlkJIDBZM0/cEKhAAIGpAJkmIJCVAAKTNfPEDYEKBBCYCpBpAgJZCSAwWTNP3BCoQACBqQCZJiCQlQACkzXz
    Any forthcoming advice will be greatly appreciated. Please note that we are more than willing to compensate financially towards a solution.

    Looking forward to any response and suggestions.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,171
    @JohanG,
    Your post was moderated. I approved it so that it could be accessible to others.

    You may be interested in the JSON Analyse and Transform for Access at Mendip Systems

  3. #3
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,346
    The link kindly provided by @orange is out of date. The updated link is JSON Analyse & Transform (isladogs.co.uk)

    NOTE: The JSON code shown above appears to be incomplete & not a valid JSON file
    Colin (Mendip Data Systems): Website, email
    Try again. Fail again. Fail better.
    A
    sking for help isn't giving up. Its refusing to give up.

  4. #4
    JohanG is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    7
    Thank you very much for the provided link. I will reach out to Colin from Mendip Data Systems with additional questions. Your assistance truly appreciated.

  5. #5
    JohanG is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    7
    Thank you very much for the provided link.  I will reach out to Colin from Mendip Data Systems with additional questions.  Your assistance truly appreciated.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,171
    @JohanG You are welcome.

    @Colin -sorry for the link issue. I just googled JSON Transform Mendip and copied the link.

  7. #7
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,346
    @orange
    No problem. The links from my old site mostly still work but not all the content is up to date
    Colin (Mendip Data Systems): Website, email
    Try again. Fail again. Fail better.
    A
    sking for help isn't giving up. Its refusing to give up.

  8. #8
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,346
    @JohanG
    We both seem to be duplicating ...
    You with 2 threads & 5 emails!
    I've replied to your emails- the first reply was incomplete so I sent another response afterwards
    Colin (Mendip Data Systems): Website, email
    Try again. Fail again. Fail better.
    A
    sking for help isn't giving up. Its refusing to give up.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 05-18-2022, 09:10 AM
  2. Importing/Reading JSON to Populate Fields
    By wrayman in forum Import/Export Data
    Replies: 22
    Last Post: 09-17-2018, 10:28 AM
  3. Replies: 15
    Last Post: 04-26-2018, 01:54 PM
  4. System DSN (MS Access) to REST API / JSON
    By Hitesh in forum Queries
    Replies: 1
    Last Post: 03-15-2016, 11:37 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums