Open Billing UI
This endpoint allows you to open the billing UI page to view through the API for a group based on the group API Key.
Pre-authenticated URL: This endpoint returns a temporary URL that provides direct access to the billing interface without requiring separate login credentials.
POST Parameters
| Parameter | Required | Value | Description |
|---|---|---|---|
api_key | {key} | An API key that has access to the resource you want to query for | |
purge | delete, process | Decides what to do with any documents pending when altering the billing plan | |
expire | {integer} | A time in seconds for the expiry period of the pre-logged-in URL. Default is 600 (10 minutes), maximum is 259,200 (3 days) |
Response Information
| Element | Description |
|---|---|
<status> | A status code in response to the operation. |
<message> | Additional information about the operation – human readable. |
<url> | The URL which your user can open their browser with to view and process their billing information. Usually you would open a new browser window with this URL. |
<expire> | The time the URL will expire. This is expressed in UNIX time |
Example
Sample Request
POST https://api-app.xtracta.com/v1/billings/billing_ui HTTP/1.1 api_key=123&expire=600
Sample Response
<?xml version="1.0" encoding="UTF-8"?>
<documents_response>
<status>200</status>
<message>The request has been successfully processed</message>
<url>https://api-app.xtracta.com/v1/billings/index.html?t=dc51PzHjXgHBF.ZjapmmxZep_Gn9kkHs5tVSyRa0GE41Hs_9AN0GW9szsxplrnV_LbLqd0HStob7_rUj9.JMAsPnn0ZiQFXZ6_qpjxEoj9Yn0Dgk7CorJlEmJyQC6oBDNjW5CfqvwdI-</url>
<expire>1522895794</expire>
</documents_response>
Schema Definition
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:simpleType name="ConfidenceType">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:element name="billings_response">
<xs:complexType>
<xs:sequence>
<xs:element name="status" type="xs:positiveInteger" minOccurs="0"/>
<xs:element name="message" type="xs:string"/>
<xs:element name="url" type="xs:anyURI"/>
<xs:element name="expire" type="xs:nonNegativeInteger"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>