Statements#
See also
Authentication for JWT authentication details.
Statements Service
POST https://gateway.groupvan.com/json/federated/v3_2/statement
Request#
The account field and the statement date range are required to make a request from the Buyer system. GroupVAN
Gateway resolves member and location information before forwarding the request to the Seller system.
Parameters#
accountstring requiredAccount ID in Member System
from_statement_datestring requiredStart of the statement date range (
YYYY-MM-DD)to_statement_datestring requiredEnd of the statement date range (
YYYY-MM-DD)memberstringMember ID in GroupLink
location_idstringFilter results to a specific location
statement_typestringFilter results to a specific statement type
Examples#
{
"member": "520",
"account": "446641",
"from_statement_date": "2023-03-01",
"to_statement_date": "2023-05-31",
"location_id": "Loc0001"
}
Schema#
Request JSON Schema
{
"type": "object",
"properties": {
"member": {
"type": "string"
},
"account": {
"type": "string"
},
"from_statement_date": {
"type": "string"
},
"to_statement_date": {
"type": "string"
},
"location_id": {
"type": "string"
},
"statement_type": {
"type": "string"
}
},
"required": [
"account",
"from_statement_date",
"to_statement_date"
]
}
Response#
Seller returns the statements matching the requested date range. Each statement contains a statement_detail
array with the invoices that make up that statement.
Examples#
{
"status": "success",
"error_description": "",
"statements": [
{
"statement_date": "2023-05-01",
"account_id": "446641",
"location_id": "Loc0001",
"account_description": "City Automotive",
"total_cost": 18588.60,
"link_url": "https://example.com/statements/202305.pdf",
"statement_detail": [
{
"invoice_date": "2023-05-03",
"invoice_number": "INV-23433",
"reference_number": "PO-32456",
"original_amount": 129.98,
"paid_amount": 77.12,
"reference_type": "invoice"
},
{
"invoice_date": "2023-05-03",
"invoice_number": "INV-23434",
"reference_number": "PO-32457",
"original_amount": 47.23,
"paid_amount": 0,
"reference_type": "invoice"
}
]
}
]
}
Schema#
Response JSON Schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"error_description": {
"type": "string"
},
"statements": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"statement_date": {
"type": "string"
},
"account_id": {
"type": "string"
},
"location_id": {
"type": "string"
},
"account_description": {
"type": "string"
},
"total_cost": {
"type": "float"
},
"link_url": {
"type": "string"
},
"statement_detail": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"invoice_date": {
"type": "string"
},
"invoice_number": {
"type": "string"
},
"reference_number": {
"type": "string"
},
"original_amount": {
"type": "float"
},
"paid_amount": {
"type": "float"
},
"reference_type": {
"type": "string"
}
},
"required": [
"invoice_date"
]
}
]
}
},
"required": [
"statement_date",
"account_id",
"total_cost",
"statement_detail"
]
}
]
}
},
"required": [
"status",
"statements"
]
}
Tip
link_url is optional and, when present, points to a downloadable copy of the statement.