Regular API CALLS - ADMIN PPS Action + Trigger Model
  • All Posts: Return Json Woo Posts /pps-posts
  • All Action Notices Posts (pps-action-notice post_type: Return Json) Run /pps_action_notices
  • All Action Notices Posts + LOG EVENT (pps-action-notice post_type: Return Json) Run + Log /trigger_log_event
  • LOG EVENT 2 () Run + Log /trigger_log_event2


  • RUN - TL+AA Trigger Log 1000 and Action Automation /trigger/log/action/automation
  • Collection of design elements to be used in node.js - pofo theme as base

    app_name string Your APP nameMANDATORY scope string Level of access. Available: read, write and read_writeMANDATORY user_id string User ID in your APP. For your internal reference, used when the user is redirected back to your APP. NOT THE USER ID IN WOOCOMMERCEMANDATORY return_url string URL the user will be redirected to after authenticationMANDATORY callback_url string URL that will receive the generated API key. Note: this URL should be over HTTPS Hi posting this for future reference, and hope it would help others who face this problem as well. Things to keep in mind when setting the callback_url, Non HTTPS URL endpoint are not allowed. URL should not be a localhost url (e.g localhost/callback would give an invalid URL error) URL should not contain port number (e.g localhost:4320/callback or foo.bar.dev:4892/callback are invalid) Callback URL should be a POST url If an error such as Error: An error occurred in the request and at the time were unable to send the consumer data. is given after checking all the above check the backend service code related to the callback_url (I had a 500 server error which triggered this, it was not a WooCommerce issue) Connect WC Run Direct with return URL Home local I have to run this from angular with open new window as I need the website URL in the link.......... Connect WC Run Things to do
    • Create a Company Route GET / Post
    • Create a Company Site GET / POST
    • Create a Company User GET / POST
    • ppp-connection-notice route - create a company / POST
    • ppp-connection-notice route - create a company site / POST
    • ppp-connection-notice route - create a company user / POST
    • Company GET
    • Company Site GET
    • Company User GET
    Name Method Actual Route Router Live Link Required Variables JOSN Data Model   
    Create Brand + Primary User

    this is for testing creating a new company in the system

    GET /test/pps/connection/create_brand Test Route [brands_create data_sector] /#/admin/system-automations/system-log-type-data-sectors/31
    Create Brand Site

    this is for testing creating a new company in the system

    GET /test/pps/connection/create_brand_site Test Route [brand_site_create data_sector] /#/admin/system-automations/system-log-type-data-sectors/32
    Connection From WP Plugin

    Testing Route for inital setup of a wordpress connection, initialising the setup proceedure.

    POST trigger_site_setup_pps_connection        
                 
                 
                 
                 
                 
                 
                 

    Real Routes / POST AND PUTS

    Name Method Actual Route Router Live Link Required Variables JOSN Data Model   
    Create Brand + Primary User

    Route That takes the data model / Via Body JSON and creates a company and primary user. The main aim is to have the pps-connection plugin to setup the inital connection datas and send to Triggers to make a company and site data with API access details so that PPS Distro Hub can access Client/Brand/Site Level to show/munipulate WP data in Angular.

    POST /test/pps/connection/create_brand Test Route [brands_create data_sector] /#/admin/system-automations/system-log-type-data-sectors/31
    Create Brand Site

    this is for testing creating a new company in the system

    GET /test/pps/connection/create_brand_site Test Route [brand_site_create data_sector] /#/admin/system-automations/system-log-type-data-sectors/32
    Connection From WP Plugin

    Testing Route for inital setup of a wordpress connection, initialising the setup proceedure. This is the real route that creates, the brand, brand site and brand user. This runs and creates a JSON file in the "/admin/data/LinkFunctionData.json :: Attempting to also then send back and update the JSON file.

    POST /trigger_site_setup_pps_connection     [pps_connection_notice data_sector] /#/admin/system-automations/system-log-type-data-sectors/33
    POST Site, Update WP Connections JSON LinkFunctionData.json File / With Current User Site Settings. GET /trigger_site_setup_pps_connection/update/linkFunctionData Test Route      
    POST Site, Update WP Connections JSON LinkFunctionData.json File / With Current User Site Settings. connector/site/ping POST /trigger_site_setup_pps_connection/update/linkFunctionData OFFICIAL POST ROUTE      
    connector/site/ping POST /connector/site/pin OFFICIAL POST ROUTE : TEST PLUGIN CONNECTION FROM ANGULAR      
                 
                 
                 
                 
                 
                 
    trigger_site_setup_pps_connection

    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    • Beautiful and easy to understand UI, professional animations
    • Theme advantages are pixel perfect design & clear code delivered
    • Present your services with flexible, convenient and multipurpose
    • Unlimited power and customization possibilities
    triggers.pickpacksend.com.au - Application Server Login Local with Myob
    myobapi.pickpacksend.com.au V2 - Myob and PPS HUB syncronisation services

    PPS + MYOB Services API Connector APP SSL LTD

    Company File: TEMPERO SYSTEMS PTY
    myobAPI is required as a node service (application) to TSA for myob connections. Once you are connected you will be directed to a "Success" notification page. Once you have succes you can close this browser window and continue to work with TSA Connect Myob-Api Local Re-Connect Myob Company File Home local

    myobapi.pickpacksend.com.au :: // :: SYNC FUNCTIONS :: Buttons Active :: LIVE Sync Schedules Active with TSA

    Get Woo Posts

    Client Invoices

    Flush :: Sweep Invoices

    This Function gets all Approved invoices from SOP, Active in the System and looks up current records in MYOB and pulls correct RowVerions and RowIDs to keep the two data systems up to date. This function needs to be ran after, any change to an invoice or invoice payment has been made. (Thus after every function.)

    Flush :: Sweep Invoices Flush :: Refresh Tokens
    Put New Invoices - Myob
    #3: At minute 15 past every hour.

    This will find any newly approved invoices in SOP that currently do not have a myob_id, and place them into MYOB. An update or Flush of invoices need to run .next() after this function has completed.

    Put New Invoices - Myob
    Invoice Payment Entries - Myob
    #5: At minute 30 past every hour.

    This will automatically find any payments made within the SOP system and syncronise them to myob, close invoices and update all relevant invoice status's. You may also remove payments from SOP, these will also update and re-open invoices in MYOB ready for new payment entry; or invoice editing or deletion.

    Invoice Payment Entries - Myob

    Supplier/Agent Invoices

    Flush :: Sweep Agent Supplier Invoices

    This Function gets all Approved Supplier invoices from SOP, Active in the System and looks up current records in MYOB and pulls correct RowVerions and RowIDs to keep the two data systems up to date. This function needs to be ran after, any change to an suuppier invoice or supplier invoice payment has been made. (Thus after every function.)

    Flush :: Sweep Supplier Invoices
    Put New Agent Invoices - Myob
    #4: At minute 22.5 past every hour.

    This will find any newly approved supplier invoices in SOP that currently do not have a myob_id, and place them into MYOB. An update or Flush of invoices need to run .next() after this function has completed.

    Put New Supplier Invoices - Myob
    Supplier/Agent Invoice Payment Entries - Myob
    #6: At minute 37.5 past every hour.

    This will automatically find any payments made within the SOP system and syncronise them to myob, close supplier invoices and update all relevant supplier invoice status's. You may also remove supplier payments from SOP, these will also update and re-open supplier invoices in MYOB ready for new payment entry; or supplier invoice editing or deletion.

    Agent Invoice Payment Entries - Myob

    Flush :: Sweep Clients

    This Function gets all Approved Clients from SOP, Active in the System (marked as sync_with_myob) in thier profile, and looks up current records in MYOB and pulls correct RowVerions and RowIDs to keep the two data systems up to date.

    Flush :: Sweep Clients
    Put New Clients - Myob
    #1" At minute 0 past every hour.

    This will automatically find any clients in the system who are newly created, with sync_with_myob checked, and 'put' clients to MYOB.

    Put New Clients - Myob
    #7: At minute 45 past every hour.

    This will automatically find any clients in the system who are activly syncing with MYOB, and 'push' or updates of clients from SOP to MOB.

    Push - Clients Updates

    Flush :: Sweep Agents

    This Function gets all Approved Agents from SOP, Active in the System (marked as sync_with_myob) in thier profile, and looks up current records in MYOB and pulls correct RowVerions and RowIDs to keep the two data systems up to date.

    Flush :: Sweep Agents
    Put New Agents - Myob
    #2: At minute 7.5 past every hour.

    This will automatically find any agents in the system who are newly created, with sync_with_myob checked, and 'put' clients to MYOB.

    At minute 6 past every 3rd hour. Put New Agents - Myob
    Push - Agents Updates
    #8: At minute 52.5 past every hour.

    This will automatically find any agents in the system who are activly syncing with MYOB, and 'push' or updates of agents from SOP to MOB.

    Push - Agents Updates