Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

GetFaxStatus

Michael Fridman edited this page Sep 11, 2018 · 5 revisions

See the official Get_faxstatus docs for more info.


This method accepts a single argument, the FaxDetailsID which is a return value from a QueueFax or ForwardFax operation.

NOTE: this method can only be used for outbound (sent) faxes.

  • otherwise will get error: "Get_FaxStatus is for Outbound faxes only \/ "
resp, err := client.GetFaxStatus(383721942)
if err != nil {
	log.Fatalln(err)
}

srfax.PP(resp) // pretty print the output

Output:

{
  "Status": "Success",
  "Result": {
    "FileName": "20180220191647_45|383721942",
    "SentStatus": "Sent",
    "DateQueued": "Feb 20/18 09:16 PM",
    "DateSent": "Feb 20/18 09:16 PM",
    "ToFaxNumber": "16476892276",
    "RemoteID": "",
    "ErrorCode": "",
    "AccountCode": "",
    "Pages": 1,
    "EpochTime": "1519183007",
    "Duration": 1,
    "Size": 27152
  }
}