How to send a fax
To send a fax:
curl -u"[your username]:[your password]" "https://api.hellofax.com/v1/Accounts/[Your Account GUID]/Transmissions?To=[destination phone number]" -F file=@myfile.pdf`
Just because you get a 200 HTTP response, it doesn’t guarantee the fax will be sent or go through (a file conversion error could occur). Once the fax's StatusCode becomes E (for Error) or S (for Success) you'll get a POST back to the callback URL you specified when setting up the API.
Possible StatusCode values:
T: Transmitting/sending.
P: Pending/converting.
S: Successfully sent.
E: Error. Failed to convert or to fully send.
O: On hold. An error caused by having an unconfirmed account or by being out of fax pages and without a monthly subscription.
Possible ErrorCode values (reference only when StatusCode is set to E):
R: Received a busy signal.
N: No answer.
A: Unallocated number (usually means it's disconnected).
D: The line is disconnected or unreachable
L: This number is on the denied list (shouldn't happen for any US number)
U: Unknown error. This usually occurs when a human answers the line or an error occurred during the fax transmission.