Excerpt | ||
---|---|---|
| ||
The API services use a RESTful architecture and require HTTP authentication |
. |
All POST and PUT requests expect a data payload to be sent as the HTTP body, together with specific header values. The request payload is always JSON format (which must be specified using the Content-Type header). JSON does not enforce element order within messages and any client implementation must not assume an order within elements.
...
Many API services require the client to specify the charge account number. The account number is specified within the header as Account-Number:
Code Block |
---|
Account-NumberaccountId: 123456 |
If this header is not specified and is required for an API service call, a 400 Bad Request error is returned.
OneFlo account numbers are 6 digits long and you must pad them on the left with zeroes to get to 10 digits.
Authentication
API Key Header is used for all API service calls. The client must always provide.
...