B2B documents

Setting

B2BDOCUMENT_API_URL (default https://doc-api-test2.payability.com/b2bdocument/api)

GCI

config.GCI_ID = 1

Code

files/views.py

  • Upload goes straight from the browser to B2B documents; the client then posts the response to POST /files/.

  • Download GET {B2BDOCUMENT_API_URL}/download/1/<uuid>?b2bdocument_token=<X-Session-Token>.

  • Delete GET {B2BDOCUMENT_API_URL}/delete/1/<b2bdoc_uuid>?b2bdocument_token=<X-Session-Token> (it is a GET on their side).

Requests forward the caller’s headers minus Host and the X-Actions-* context headers.

Both environments currently point at http://52.207.166.124:8080/b2bdocument/api — a plain-HTTP IP address. From the production VPC this is reachable as before; keep it in mind if the service moves or the Lambdas leave the VPC.