Standard Envelope
Every Loyalife API response wraps its payload in aresults object:
IsSucessful is spelled with one “s” — this matches the service’s actual response field name.Fields
Success Response
Error Response
Checking for Errors
Always checkIsSucessful first — the HTTP status code alone is not sufficient. A 200 OK response can still contain IsSucessful: false when the request was received but the business logic failed.
Universal Error Codes
These codes may be returned by any API endpoint.HTTP Transport Codes
These are standard HTTP status codes returned at the transport layer, separate from theErrorCode field in the envelope.
A
200 OK HTTP response does not guarantee success. Always check IsSucessful in the response envelope — business logic errors return 200 with IsSucessful: false and a non-zero ErrorCode.