Event: Push Status

The Push Status event is the quickest way for you to receive the status of a push request.

Railz sends an event upon a response from the accounting service provider.

The payload for this event will contain all the push request information and the source object Id created in the accounting service provider. You can identify this specific event by the property "event":"push".

Successful Push Event Response

"data": {
  "event": "push",
  "connectionId": "CON-0a4e97aa-7a77-bbbb-00aa-b1b1001aa00",
  "businessName": "BIZ-d6b1c7d3-fe41-4447-ae72-3814b78b5142",
  "serviceName": "quickbooks",
  "dataType": "invoice",
  "pushCommunicationId": "60473b57f0cdd1683ca71f60",
  "sourceObjectId": "354",
  "requestedOn": "2021-03-09T19:56:03.952Z",
  "completedOn": "2021-03-09T19:56:03.952Z",
  "status": "success",
  "responseCode": "200"
}

Failed Push Event Response

"data": {
  "event": "push",
  "connectionId": "CON-0a4e97aa-7a77-bbbb-00aa-b1b1001aa00",
  "businessName": "BIZ-d6b1c7d3-fe41-4447-ae72-3814b78b5142",
  "serviceName": "quickbooks",
  "dataType": "invoice",
  "pushCommunicationId": "60473b57f0cdd1683ca71f60",
  "sourceObjectId": "354",
  "requestedOn": "2021-03-09T19:56:03.952Z",
  "completedOn": "2021-03-09T19:56:03.952Z",
  "status": "success",
  "responseCode": "200",
  "validation": {
    "errors": [
      {
        "field": "currencyRef",
        "message": "Business Validation Error: Multi Currency should be enabled to perform this operation."
      }
    ]
  }    
}

📘

You can consolidate all events by tracking the received connectionId or businessName and serviceName combination.