Document API Flow

Follow the steps below to complete the Document API Flow to upload a document for the Verification API.

Document API Flow

  1. You create a document with Create Document API
  2. TabaPay returns a time-limited upload URL in the url field, and a unique document ID in the documentID field.
  3. You upload the file by sending a PUT request to the url from the response and include the raw file bytes (e.g. binary file, not JSON, not base64).
  4. You send Confirm Upload with a PUT request to `/v2/clients/{clientID}/documents/{documentID}`
  5. TabaPay sends a 200 success or error.
  6. You send Retrieve Document API with the documentID or referenceID.
  7. TabaPay response with details about the document.
  8. You download the document using a GET request to the url from the Retrieve Document response.