# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.unimarket.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Welcome

{% hint style="info" %}
New here? Head to **Integration Documentation** for an overview of all integration options, or straight to **API Reference** for REST API endpoint details.
{% endhint %}

Welcome to the Nova Public API documentation platform.

## Where to go next

* **Integration Documentation** — Guides for all integration options (REST API, cXML transactions, sFTP, middleware, master data, punchout, and more).
* **API Reference** — Detailed REST API reference: authentication, errors, pagination, the Supplier object, and endpoints.


# Overview

Integration documentation for connecting external systems to Unimarket

This section covers all of Unimarket's integration options — the REST API, cXML/OrderRequest transactions, sFTP file automation, the Workato-based integration middleware, master data sync, SSO/user provisioning, punchout, and general technical integration references.

For full REST API endpoint details, see the **API Reference** section of this site.

## Sections

* **REST API** — On-demand, programmatic access to Unimarket data over HTTP.
* **Transactions** — Purchase orders, invoices, and change orders via cXML/OrderRequest.
* **File Automation (sFTP)** — Batch data uploads and downloads over sFTP.
* **Integration Middleware** — Workato-based connector platform and on-premise agent.
* **Master Data** — Account codes, budget checks, and approval configuration sync.
* **Authentication & Users** — SSO and user provisioning integrations.
* **Punchout** — eMarketplace punchout between ERPs and Unimarket.
* **General Technical** — Email auth, SOAP/POX messaging references.
* **Troubleshooting** — Common integration error scenarios.


# REST API Introduction

Overview of the Nova Public REST API as an integration option

The **Nova Public API** is a RESTful web API that lets external applications query Unimarket data directly over HTTP, using standard methods like `GET`, `POST`, `PATCH`, and `DELETE`. It's the option to reach for when you need on-demand, programmatic access to Unimarket data rather than batch files or transactional message flows.

## When to Use the REST API

* **On-demand lookups**: Querying supplier records, contacts, or remittance addresses from an external application in real time.
* **Custom integrations**: Building bespoke tooling or dashboards that need direct, authenticated access to Unimarket data.
* **Complementing other integrations**: Used alongside cXML transactions, sFTP file automation, or middleware connectors where a synchronous data pull is needed.

## How It Compares to Other Integration Options

| Option                               | Best For                                                |
| ------------------------------------ | ------------------------------------------------------- |
| **REST API**                         | Real-time, on-demand data access via HTTP requests      |
| **Transactions (cXML/OrderRequest)** | High-volume order, invoice, and change order automation |
| **File Automation (sFTP)**           | Scheduled batch uploads/downloads of master data        |
| **Integration Middleware (Workato)** | No-code/low-code connector-based integrations           |

## Getting Started

The REST API is available across AU, NZ, US, and DEMO tenants, and requires a bearer token for authentication.

For full endpoint documentation, authentication details, error codes, pagination, and object schemas, see the [**API Reference**](https://github.com/Unimarket/nova-public-api-docs/tree/gitbook-sync/api-reference/README.md) section of this site.


# Purchase Order Integration (OrderRequest) Overview

Overview of the OrderRequest (cXML) integration for transmitting Purchase Orders

The **OrderRequest** integration is used to transmit Purchase Order (PO) details between Unimarket and external systems. It follows the **cXML standard**, ensuring compatibility across a wide range of procurement and financial platforms.

## Why Use This Integration?

This integration automates the communication of order details, reducing manual entry and errors. It is most commonly used for:

* **Outbound Updates**: Unimarket sends PO details to a Supplier's system for fulfillment.
* **ERP Integration**: Unimarket updates an external Finance/ERP system once a PO is generated to ensure financial records are synchronized.

## Supplier Integration Setup

To enable electronic order dispatch, Community Administrators must configure the integration settings within the Supplier eStore.

1. Navigate to the supplier eStore and select **Edit Store**.
2. Go to the **Integration** tab and complete the following fields:

| Field                        | Purpose                                                                                                                                                                                                                                                                              |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Dispatch Mechanism**       | The technical method used to send the message. Must match what the supplier supports (ask the supplier).                                                                                                                                                                             |
| **URL**                      | The destination address for electronic POs, provided by the supplier or a Gateway (like Tranzsoft). If a Gateway is used to pass messages between Unimarket and the supplier, the URL is the gateway URL, not the supplier URL — the supplier or gateway provider will provide it.   |
| **FROM Credential Domain**   | Identifies the sender's domain (e.g. "DUNS" or "NetworkID") — key information for the supplier to identify the customer placing the order. If the supplier sets the 'FROM Credential Identity' as their DUNS number, this is usually set to the word **DUNS** (but can be anything). |
| **FROM Credential Identity** | Unique to each Community. Identifies exactly which customer is sending the order. Can be set to anything, but is commonly set to the Community's **DUNS** number.                                                                                                                    |
| **TO Credential Domain**     | Identifies the supplier's domain — where the orders are being sent to. If the supplier sets the 'TO Credential Identity' as their DUNS number, this is usually set to the word **DUNS** (but can be anything). Rarely verified by the supplier.                                      |
| **TO Credential Identity**   | Identifies the specific supplier (often their DUNS number). Rarely verified by the supplier.                                                                                                                                                                                         |
| **Shared Secret**            | A secure password that must match in both Unimarket and the supplier's system.                                                                                                                                                                                                       |

{% hint style="info" %}
**Note:** While many settings remain static across a supplier's network, the **FROM Credentials** must be unique for every Community to ensure the supplier can distinguish between different customers.
{% endhint %}

## Technical Documentation

For detailed XML schemas and message examples, see [Purchase Order (OrderRequest) Technical Documentation](/documentation/transactions-orders-receipts-invoices-and-more/order-request-technical-documentation).

## Important Considerations

* **Gateway Usage**: If a supplier uses a gateway service, the URL will be the gateway's endpoint rather than the supplier's direct server.
* **Authentication**: The Shared Secret acts as the primary authentication layer. Ensure it is handled securely and matches the supplier-side configuration exactly.


# Integration Options for Validate Account Code (Budget Check) Integration

The **Validate Account Code** (Budget Check) integration is a real-time, synchronous process that verifies financial data at the point of checkout. When a user clicks "Checkout," Unimarket sends a request to your ERP or Finance system to confirm that the chosen account combinations are valid and that sufficient budget exists.

## Integration Process

1. **Trigger**: The process starts automatically when a user attempts to finalize their requisition.
2. **Request**: Unimarket sends an XML message containing line numbers, account codes, and transaction amounts.
3. **ERP Check**: Your ERP processes this data based on your specific business logic.
4. **Response**: The ERP returns a status of **Valid**, **Invalid**, or **Warning**, which Unimarket uses to either allow the checkout or stop it with a message to the user.

## Implementation Options via Unimarket Connector

If you are using the **Unimarket Connector** middleware, you can choose between two main configuration methods:

### Option 1: Calling a Stored Procedure (SP)

The Connector executes a customer-defined stored procedure in the ERP database to perform the validation.

| Feature         | Details                                                                                                  |
| --------------- | -------------------------------------------------------------------------------------------------------- |
| **Input Data**  | Line numbers, account strings, and total amounts (plus optional fields like username or financial year). |
| **Output Data** | Returns the status (Valid/Invalid/Warning) and a custom message for the buyer.                           |
| **Pros**        | High security (budget values are hidden); real-time data; total control over business logic.             |
| **Cons**        | Higher implementation effort; requires handling complex data types.                                      |

* **line\_number**: Integer - line number of items in the checkout
* **account**: String - the account code for the line item
* **amount**: numeric - the value to checkout for the line item

#### Optional Values

The following optional values can be used:

* **Username**: The user trying to purchase against the account code. Used to determine if they have permission to purchase against the account.
* **Organization unit**: The user's organization unit. Used to determine if they have permission to purchase against the account.
* **Finance year**: The Financial Year of the transaction used to validate the correct budget year. Only applicable if the community has FY's setup.

**Input to the SP (minimum required, example as JSON array):**

```json
[
 {"line_number": 1, "account": "123-4567-10", "amount": 123.12},
 {"line_number": 2, "account": "123-4567-11", "amount": 200.00},
 {"line_number": 3, "account": "123-4567-12", "amount": 738.50},
 {"line_number": 4, "account": "123-4567-13", "amount": 120.15},
 {"line_number": 5, "account": "123-4567-14", "amount": 23.12}
]
```

**Output after SP call:**

```json
[
 {"line_number": 1, "status": "Valid", "message": ""},
 {"line_number": 2, "status": "Invalid", "message": "Some message"},
 {"line_number": 3, "status": "Invalid", "message": "Some message"},
 {"line_number": 4, "status": "Warning", "message": ""},
 {"line_number": 5, "status": "Valid", "message": ""}
]
```

### Option 2: Reading a Budget Table

The Connector performs a lookup against a simplified "budget table" provided by the customer.

| Feature             | Details                                                                                                    |
| ------------------- | ---------------------------------------------------------------------------------------------------------- |
| **Table Structure** | Requires a minimum of two columns: **Account Code** and **Budget** amount.                                 |
| **Logic**           | Any account not found in the table is automatically rejected as "Invalid".                                 |
| **Pros**            | Very simple to implement on the customer side.                                                             |
| **Cons**            | Less "real-time" (depends on table refresh frequency); actual budget numbers are exposed to the Connector. |

**Minimum table structure required:**

```
"ACCOUNT CODE", "BUDGET"
4740-14100-10, 46.33
4740-14100-11, -114.5
4740-14100-12, 500.32
```

## Response Types and User Experience

| Result      | Outcome for the User                                                                                               |
| ----------- | ------------------------------------------------------------------------------------------------------------------ |
| **Valid**   | The requisition proceeds to the next stage of checkout normally.                                                   |
| **Invalid** | A **hard stop**; the user cannot proceed and must change the accounting data.                                      |
| **Warning** | A **soft stop**; a message (e.g., "Budget is low") is displayed, but the user can click checkout again to proceed. |


# cXML Order Integration - Change Orders

In Unimarket, change orders (edits to existing purchase orders) can be handled using two distinct logical configurations. The method chosen determines how integration messages are structured when they are sent to your ERP or supplier systems.

## Comparison Summary

| Feature          | New Order Numbers                    | Order Versions                          |
| ---------------- | ------------------------------------ | --------------------------------------- |
| **PO ID Status** | Changes with every edit              | Remains the same                        |
| **cXML Type**    | `delete` followed by `new`           | `update`                                |
| **Traceability** | Linked via `order-source-identifier` | Linked via `orderID` and `orderVersion` |
| **Best For**     | ERPs that cannot modify existing POs | ERPs that support multi-versioning      |

## Option 1: Using New Order Numbers

In this configuration, every time an order is edited, the system treats the change as a cancellation of the old record and the creation of a completely new one.

### The Integration Sequence

1. **Original Order**: Sent as `type="new"` with a unique ID (e.g., `1004891`).
2. **Order Edit**: Triggered when a user saves changes.
3. **Cancellation Message**: Sent with the original ID (`1004891`) and `type="delete"`.

```xml
<OrderRequest>
    <OrderRequestHeader orderDate="2023-04-06T14:33:37.680+12:00"
                        orderID="1004891"
                        orderType="regular"
                        type="delete">
```

4. **Replacement Message**: Sent with a **new** ID (`1004892`) and `type="new"`.

```xml
<OrderRequest>
    <OrderRequestHeader orderDate="2023-04-06T14:35:19.707+12:00"
                        orderID="1004892"
                        orderType="regular"
                        type="new">
```

### Key Extrinsics for Traceability

To help your ERP link these two separate records, the replacement order contains specific metadata:

* `order-source-type`: Set to `EDIT_ORDER`.
* `order-source-identifier`: Contains the original order number (e.g., `1004891`).

```xml
</Extrinsic>
<Extrinsic name="shippingNote"/>
<Extrinsic name="order-submission">ELECTRONIC</Extrinsic>
<Extrinsic name="requisition-created-date">2023-04-06T14:34:20.000+12:00</Extrinsic>
<Extrinsic name="organization">Unimarket eProcurement</Extrinsic>
<Extrinsic name="organization-unit">Information Technology</Extrinsic>
<Extrinsic name="requisition-justification"/>
<Extrinsic name="is-retrofit-order">no</Extrinsic>
<Extrinsic name="order-source-type">EDIT_ORDER</Extrinsic>
<Extrinsic name="order-source-identifier">1004891</Extrinsic>
<Extrinsic name="requisition-source-type">EDIT_ORDER</Extrinsic>
```

## Option 2: Using Order Versions

In this configuration, the Purchase Order maintains its unique identifier throughout its lifecycle. Changes are tracked via an incrementing version number.

### The Integration Sequence

1. **Original Order**: Sent as `type="new"` with a unique ID (e.g., `100024`).

```xml
<OrderRequest>
    <OrderRequestHeader orderDate="2023-03-09T16:54:51.281+10:00"
                        orderID="100024"
                        orderType="regular"
                        type="new">
```

2. **Order Edit**: Triggered when a user saves changes.
3. **Update Message**: Sent with the **same** ID (`100024`) but the header changes to `type="update"`.

### XML Header Attributes

When an update is sent, the OrderRequestHeader includes:

* `type="update"`: Signals a change to an existing record.
* `orderVersion="2"`: Indicates the revision level (starts at 2 and increases).
* `isInternalVersion="no"`: Confirms this is an external change intended for the supplier/ERP.

```xml
<OrderRequest>
    <OrderRequestHeader isInternalVersion="no"
                        orderDate="2023-03-09T16:55:38.672+10:00"
                        orderID="100024"
                        orderType="regular"
                        orderVersion="2"
                        type="update">
```


# Electronic Invoicing

**eInvoicing** is the direct, electronic exchange of invoice data between a supplier's accounting system and your Unimarket Community. Unlike PDF or paper invoices, eInvoices are machine-readable data files that eliminate manual data entry, reduce administrative costs, and significantly improve data accuracy and payment speed.

## Comparison of eInvoicing Standards

Unimarket supports two primary global standards to provide maximum flexibility when connecting with your supplier base.

| Feature                  | cXML (Commerce XML)                           | Peppol (Pan-European Public Procurement On-Line)              |
| ------------------------ | --------------------------------------------- | ------------------------------------------------------------- |
| **Standard Type**        | Industry-standard digital transmission.       | Common network standard (common in AU/NZ/EU).                 |
| **Connectivity**         | Direct integration with individual suppliers. | "One-to-many" via the Peppol Network.                         |
| **Setup Role**           | Managed by Unimarket Supplier Management.     | Requires customer registration with an Access Point.          |
| **Supplier Requirement** | Supplier must be a **Premium Supplier**.      | Supplier must be Peppol-enabled (e.g., via Xero/MYOB).        |
| **Scale**                | Best for high-volume, strategic partners.     | Best for rapid scaling across many small/mid-sized suppliers. |

## cXML Integration

cXML is a widely embraced industry standard. Because it is a direct integration, it offers a seamless experience for large-scale suppliers already using digital procurement tools.

* **How to Setup**: The Unimarket Supplier Management team handles the technical setup and testing.
* **Requirement**: The supplier must support cXML and register as a **Premium Supplier** on the Unimarket network.

## Peppol Integration

Peppol operates like a "mobile phone network" for invoices. Once you are connected to the Peppol Network via an Access Point, any enabled supplier can find you and send electronic invoices, without a 1-on-1 technical setup.

### Steps to Enable Peppol

1. **Enable Unimarket Integration**: Unimarket provides a specialized integration to receive data from the network (associated with an annual support cost).
2. **Register an Access Point**: You must independently register for a **Peppol Access Point**. Unimarket is not an Access Point but has trusted partners to assist you.
   * *Note: Access Points typically charge a transactional fee separate from Unimarket costs.*
3. **Routing**: Suppliers use identifiers (like an ABN or NZBN) to route invoices to your Access Point.

## The End-to-End Workflow

1. **Transmission**: The supplier sends an electronic file (cXML or Peppol).
2. **Matching**: The invoice arrives in Unimarket and undergoes an automated matching process against the original Purchase Order.
3. **ERP Export**: If you have an existing ERP integration, Unimarket automatically transfers the matched data into your Finance system for final payment processing.


# Peppol eInvoicing in Australia & New Zealand

**Peppol** is the [electronic invoicing](/documentation/transactions-orders-receipts-invoices-and-more/electronic-invoicing) standard adopted by the Australian and New Zealand governments to streamline business transactions. It allows your community to receive structured, machine-readable invoices directly from both **Registered** and **Lite** suppliers, eliminating the errors and delays associated with manual data entry from paper or PDF files.

## Setting Up Peppol in Your Community

To participate in the Peppol network, your community must be reachable by other participants. This requires a connection to a **Peppol Access Point**, which acts as a "gateway" for your incoming and outgoing electronic documents.

## Configuration Requirements

Before Unimarket can start receiving invoices for you, the following must be configured:

* **Regional Identifiers**:
  * **Your Community**: Must have a valid **ABN** (Australia) or **NZBN** (New Zealand) specified in your Community Settings to identify you as the invoice receiver.
  * **Your Suppliers**: Must have their ABN/NZBN recorded in their Profile. This ID is critical for matching the invoice to the correct supplier record in Unimarket.
* **sFTP Integration**: Your community must be set up with **inbound sFTP** (Secure File Transfer Protocol). This is the secure "drop zone" where your Access Point will deliver invoices for Unimarket to process.

## Managing Peppol Invoices

Once the technical link is established, Peppol invoices flow automatically into your community. You can monitor their status on the **File Processing** page within Community Admin:

* **Success**: The invoice was validated and processed successfully. A link will be provided to view the invoice details directly in Unimarket.
* **Error**: If the invoice fails validation (e.g., it is missing mandatory data), it will appear with an error summary.
  * **Note**: Unimarket requires all Peppol invoices to have a matching **Purchase Order**; if no PO is found, an error will be generated.

## Handling Errors and Matching

Because the sFTP delivery process is a one-way transmission, the system cannot automatically "reply" to a supplier's software if an error occurs.

1. **Direct Communication**: If an invoice fails, you must notify the supplier directly so they can correct their data and resend the invoice through their software.
2. **Matching**: Successful invoices undergo the standard Unimarket matching process (comparing invoice lines to order lines) just like any other electronic or manual invoice.

## Key Benefits for ANZ Businesses

* **Faster Payments**: Many government agencies now offer accelerated payment terms (e.g., 5 days in Australia) for businesses using Peppol.
* **Security**: The encrypted network significantly reduces the risk of "billing scams" and fraudulent PDF invoices.
* **Cost Efficiency**: Transitioning from paper/PDF to eInvoicing can save between $15 and $20 per invoice, in administrative overhead.


# Purchase Order (OrderRequest) Technical Documentation

This document defines the transport layer requirements for integrating Purchase Orders from Unimarket into a Community's receiving system (ERP/Financial System). Unimarket utilizes the industry-standard cXML protocol delivered over a secure web connection.

## Transmission Overview

Purchase Orders are pushed from Unimarket to the community's designated endpoint in real-time upon approval.

| **Component** | **Requirement**                            |
| ------------- | ------------------------------------------ |
| **Protocol**  | cXML (Commerce eXtensible Markup Language) |
| **Transport** | HTTP(S)                                    |
| **Method**    | `POST`                                     |
| **Security**  | TLS 1.2 or higher                          |

## Security & Encryption

### TLS 1.2 Requirements

To maintain the highest level of data integrity and confidentiality, all connections must be secured using **TLS 1.2** (Transport Layer Security) or higher. Unimarket ideally requires this version to mitigate vulnerabilities associated with older SSL and TLS versions.

### Endpoint Authentication

In addition to the transport-level security (HTTPS), the message itself is authenticated using the credentials provided in the cXML `<Header>`:

* **Identity/SharedSecret:** The receiving system should validate the `SharedSecret` provided in the XML against a pre-configured key to ensure the request originated from a trusted Unimarket environment.

## Communication Logic (POST Request)

The integration follows a standard request-response pattern:

1. **Initiation:** Unimarket initiates a connection to the community's publicly accessible (or VPN-secured) HTTPS URL.
2. **Payload:** The cXML `OrderRequest` is sent in the body of an HTTP `POST` request.
3. **Content-Type:** The request is typically sent with `Content-Type: text/xml` or `application/xml`.
4. **Acknowledgment:** The receiving system must process the XML and return a synchronous **cXML Response** (with a `200` status code), within the same connection session to signal a successful handshake.

## Example Basic Purchase Order

The template illustrates how the header, request logic, and financial elements discussed previously come together in a standard procurement message sent from Unimarket to a supplier.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="[A Unique Value]" timestamp="2020-11-16T12:17:51.945+13:00" version="1.2.021" xml:lang="en">
    <Header>
        <From>...</From>
        <To>...</To>
        <Sender>...</Sender>
    </Header>
    <Request deploymentMode="test">
        <OrderRequest>
            <OrderRequestHeader orderDate="2020-11-16T12:17:51.124+13:00" orderID="102" orderType="regular" type="new">
                <Total>
                    <Money currency="NZD">5.75</Money>
                </Total>
                <ShipTo>...</ShipTo>
                <BillTo>...</BillTo>
                <Shipping>...</Shipping>
                <Tax>...</Tax>
                <Contact role="buyer">...</Contact>
                <Extrinsic name="buyer-credential">...</Extrinsic>
                <Extrinsic name="shippingNote"/>
            </OrderRequestHeader>
            <ItemOut lineNumber="1" quantity="1" requisitionID="56">...</ItemOut>
            <ItemOut lineNumber="2" quantity="4" requisitionID="56">...</ItemOut>
        </OrderRequest>
    </Request>
</cXML>
```

### Key Components of this Example:

* **Root**`**cXML**`**Attributes:** Includes a unique `payloadID` and a `timestamp` which are essential for message tracking and preventing duplicate processing.
* **The**`**Header**`**Block:** Identifies the sending institution and the target supplier. It also includes the `SharedSecret`, which is the primary authentication method for cXML.
* **Deployment Mode:** Set to `production` in this example, signalling a live business transaction.
* **Three-Way Match Support:** Includes `ShipTo`, `BillTo`, and `ItemOut` details (SKUs, quantities, and prices) necessary for the supplier to fulfill the order and eventually send a matching invoice.
* **Tax Logic:** The `ItemOut` has a line-level tax amount, which results in the header `Total`.

***

## Header

The `<Header>` element is the first major block in a cXML document. Its primary purpose is to provide routing information and credentials to authenticate the message between the sender (Unimarket/Community) and the receiver (Supplier).

```xml
<Header>
    <From>
        <Credential domain="">
            <Identity/>
        </Credential>
    </From>
    <To>
        <Credential domain="">
            <Identity/>
        </Credential>
    </To>
    <Sender>
        <Credential domain="">
            <Identity/>
            <SharedSecret/>
        </Credential>
        <UserAgent>unimarket</UserAgent>
    </Sender>
</Header>
```

### Header Structure

A standard cXML header contains three main components:

* **From:** The identity of the organization where the request originates.
* **To:** The identity of the organization to which the request is destined.
* **Sender:** The identity of the entity sending the message (including the `SharedSecret` used for authentication).

### Community "Empty Header" Behavior

In many Unimarket community configurations, the `<Header>` sub-elements are intentionally left empty or use placeholder values. This typically occurs when:

* **Gateway Authentication:** Authentication is handled by a dedicated integration gateway rather than on a per-message basis within the XML.
* **System-to-System Trust:** The supplier and the community have an established secure tunnel (like an IP-whitelisted connection) that removes the need for credential-heavy headers.

### Implementation Logic

If your system is receiving orders from a community with empty headers, your integration logic should:

1. **Skip Identity Verification:** Bypass logic that requires specific values in the `<From>` or `<To>` blocks.
2. **Focus on the Payload:** Shift focus to the `<OrderRequestHeader>` inside the `<Request>` block, which contains the actual Purchase Order details (PO Number, Date, etc.).
3. **Alternative Authentication:** Ensure your firewall or API gateway is managing security if the XML itself is not providing a `SharedSecret`.

***

## Request

The `Request` element serves as the top-level envelope for the `OrderRequest` payload. Its primary function is to define the operational context of the message, specifically identifying whether the data originated from a Test (Demo) or Production environment.

Below are representations of how the `Request` element wraps the `OrderRequest` and identifies the environment:

**Test:**

```xml
<Request deploymentMode="test">
```

**Production:**

```xml
<Request deploymentMode="production">
```

### The `<Request>` Element

This element wraps the specific business transaction (in this case, the `OrderRequest`). By inspecting the attributes of this element, receiving systems can determine how to handle the incoming data.

### Environment Identification

The environment status is typically defined by the `deploymentMode` attribute within the `Request` tag.

| **Attribute Value** | **Environment** | **Description**                                                                                                                                     |
| ------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **test**            | **Demo / UAT**  | Indicates the order was generated in a sandbox or test environment. No physical goods should be shipped, and no financial liability is created.     |
| **production**      | **Live**        | Indicates a legitimate business transaction from the live production environment. These orders require standard fulfillment and payment processing. |

***

## OrderRequest

These attributes are critical for mapping purchase order data to external supplier systems or internal ERPs.

```xml
<OrderRequestHeader orderDate="2020-11-16T12:17:51.124+13:00" orderID="102" orderType="regular" type="new">
```

### Primary Order Attributes

| **Attribute** | **Description**                                                     | **Data Format / Example**    |
| ------------- | ------------------------------------------------------------------- | ---------------------------- |
| **orderDate** | The timestamp when the order was generated in the Unimarket system. | `YYYY-MM-DD'T'hh:mm:ss.SSSZ` |
| **orderID**   | The unique identifier for the Purchase Order (PO Number).           | e.g., `PO100052`             |
| **orderType** | The classification of the procurement agreement.                    | `regular` or `blanket`       |

### Order Lifecycle Status (`type`)

The `type` attribute defines the action required by the receiving system. The behavior of the XML payload changes depending on this status.

### Status: `new`

* **Definition:** Represents a brand-new Purchase Order.
* **Action:** The receiving system should create a new record.

### Status: `update`

* **Definition:** Indicates that an existing order has been modified (e.g., via a Change Order).
* **Payload Changes:** When the status is `update`, two additional attributes are included to manage version control:
  * **orderVersion:** An integer representing the version of the order. Versions start at `2` and increment with every approved change.
  * **isInternalVersion:** A flag indicating if the change is intended for internal tracking only. For standard outbound orders to suppliers, this is always set to `"no"`.
* **Action:** The receiving system should overwrite the existing order details with the new data provided in the payload.

### Status: `delete`

* **Definition:** Indicates that the Purchase Order has been cancelled.
* **Action:** The receiving system should mark the order as cancelled or void.

***

## Total

These elements are used to communicate the total monetary value of a Purchase Order, including all applicable taxes and currency identifiers.

Below is a representation of how these elements appear within an outbound `OrderRequest` XML:

```xml
<total>
    <Money currency="USD">1250.75</Money>
</total>
```

### The `<total>` Element

The `total` element serves as the parent container for the order's financial summary. It encapsulates the overall value of the procurement request.

### The `<Money>` Element

Contained within the `total` element, the `Money` element is the data carrier for the actual numerical value.

* **Definition:** Represents the total aggregate value of all line items included in the order.
* **Tax Logic:** The value displayed in the `Money` element is the **Gross Total** , meaning it includes all applicable taxes (e.g., GST, VAT, or Sales Tax).
* **Attributes:**
  * **currency:** This mandatory attribute specifies the 3-letter ISO 4217 currency code (e.g., `USD`, `NZD`, `AUD`, `GBP`) associated with the transaction.

***

## ShipTo

The `<ShipTo>` element is a critical component of the `OrderRequestHeader`. It provides the supplier with the precise physical location for delivery and the specific "Attention To" details required for successful receipt of goods within the community.

```xml
<ShipTo>
    <Address addressID="101" isoCountryCode="NZ">
        <Name xml:lang="en">Branch Location</Name>
        <PostalAddress>
            <DeliverTo>Mike Brady</DeliverTo>
            <Street>456 Something Drive</Street>
            <City>Auckland</City>
            <State/>
            <PostalCode>1010</PostalCode>
            <Country isoCountryCode="NZ">New Zealand</Country>
        </PostalAddress>
        <Email>mike.brady@unimarket.com</Email>
    </Address>
</ShipTo>
```

### Element Structure

The `ShipTo` element follows a hierarchical structure to separate location names from physical postal data.

| **XML Tag**         | **Description**                             | **Business Context**                                                                     |
| ------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `**< Address>**`    | The parent container for the shipping site. | Often includes an `addressID` attribute matching the community's internal location code. |
| `**< Name>**`       | The descriptive name of the delivery site.  | e.g., "North Campus Receiving" or "Engineering Lab."                                     |
| `**< DeliverTo>**`  | The specific person or department.          | This is the "Attention To" field used to route the package once it arrives on site.      |
| `**< Street>**`     | The physical street address.                | Can include multiple lines if needed for complex campus layouts.                         |
| `**< City>**`       | The city or town.                           | The primary municipality for delivery.                                                   |
| `**< State>**`      | The state, province, or region.             | Usually provided as a 2-3 letter code (e.g., TX, NSW, AKL).                              |
| `**< PostalCode>**` | The Zip or Postcode.                        | Critical for carrier routing.                                                            |
| `**< Country>**`    | The country name and code.                  | Includes the `isoCountryCode` attribute (e.g., `US`, `NZ`, `AU`).                        |

### Integration & 3-Way Match

The information in the `ShipTo` element is the benchmark for the **Receiving** process:

* **Receiving Verification:** When a user performs "Desktop Receiving" in Unimarket, they verify that the goods arrived at the location specified in this element.
* **Carrier Accuracy:** Suppliers should ensure that the `DeliverTo` information is clearly printed on the shipping label to prevent packages from being "lost" at central receiving docks.

**Note:** This is the same detail that appears in the OrderRequestHeader element. Some systems might need this information at item level.

***

## BillTo

The `<BillTo>` element within the `OrderRequestHeader` defines the legal and financial entity responsible for paying the invoice. This information is used by suppliers to ensure that their invoices are addressed correctly for tax and audit purposes.

```xml
<BillTo>
    <Address addressID="001" isoCountryCode="NZ">
        <Name xml:lang="en">Head Office</Name>
        <PostalAddress>
            <Street>123 Something Street</Street>
            <City>Auckland</City>
            <State/>
            <PostalCode>1010</PostalCode>
            <Country isoCountryCode="NZ">New Zealand</Country>
        </PostalAddress>
        <Email>mike.brady@unimarket.com</Email>
    </Address>
</BillTo>
```

### Element Structure

The `BillTo` element uses the standard cXML `<Address>` structure. While it looks similar to the `ShipTo` block, its purpose is purely financial.

| **XML Tag**         | **Description**                     | **Business Context**                                                    |
| ------------------- | ----------------------------------- | ----------------------------------------------------------------------- |
| `**< Address>**`    | Container for the billing entity.   | Often includes an `addressID` used for internal AP routing.             |
| `**< Name>**`       | The name of the billing department. | Typically "Accounts Payable" or "Financial Services."                   |
| `**< Street>**`     | The billing street or PO Box.       | Many institutions use a centralized PO Box for all invoices.            |
| `**< City>**`       | The billing city.                   | The municipality where the AP office is located.                        |
| `**< State>**`      | The state or province.              | Provided as a standard code (e.g., TX, NSW, AKL).                       |
| `**< PostalCode>**` | Zip or Postcode.                    | Used for mailing physical invoices if electronic ones aren't available. |
| `**< Country>**`    | Country identifier.                 | Includes the `isoCountryCode` (e.g., `US`, `NZ`, `AU`).                 |

### Importance in the Invoicing Lifecycle

The `BillTo` information is the foundation for the **Invoice Match** :

* **Tax Compliance:** Suppliers must use the address in this element as the "Bill To" party on their tax invoice to comply with regional tax laws (e.g., IRD or IRS requirements).
* **AP Routing:** If the community has multiple billing centers, the `addressID` attribute helps the supplier's system route the invoice to the correct branch in their accounts receivable ledger.
* **eInvoicing:** Even when a supplier sends an electronic invoice (XML) back to Unimarket, the system validates the billing details against the original PO's `BillTo` block.

***

## Shipping

The `<Shipping>` element within the `OrderRequestHeader` specifies the total freight or delivery charges for the entire Purchase Order. In the Unimarket cXML schema, this element is a standard component of the financial summary.

```xml
<Shipping>
    <Money currency="NZD">0.00</Money>
    <Description xml:lang="en">Standard Delivery</Description>
</Shipping>
```

### Element Structure

The `Shipping` element contains a nested `Money` element and an optional description of the shipping method.

| **XML Tag**          | **Description**                                | **Business Context**                                   |
| -------------------- | ---------------------------------------------- | ------------------------------------------------------ |
| `**< Shipping>**`    | The parent container for header-level freight. | Aggregates shipping for all line items.                |
| `**< Money>**`       | The numerical value of the shipping charge.    | Must include the `currency` attribute (e.g., `USD`).   |
| `**< Description>**` | The shipping method or service level.          | e.g., "Ground", "Next Day Air", or "Standard Freight". |

### Zero-Charge Persistence

A key requirement of this integration is that the `<Shipping>` element is **mandatory**.

* **Zero Values:** If the order qualifies for free shipping or the freight is included in the item prices, the element will still be present with a value of `0.00`.
* **Reasoning:** This consistency allows receiving systems (like a supplier's ERP) to always find the element in the same XML path, simplifying the parsing logic and preventing "null pointer" errors during ingestion.

***

## Tax

The `<Tax>` element within the `OrderRequestHeader` provides a high-level summary of all taxes associated with the Purchase Order. To support granular financial reconciliation, this element includes a breakdown of taxes applied to individual line items versus taxes applied to shipping and freight charges.

```xml
<Tax>
    <Money currency="NZD">0.75</Money>
    <Description xml:lang="en">NZ GST</Description>
    <TaxDetail category="GST" percentageRate="15.00" purpose="shippingTax">
        <TaxableAmount>
            <Money currency="NZD">0.00</Money>
        </TaxableAmount>
        <TaxAmount>
            <Money currency="NZD">0.00</Money>
        </TaxAmount>
        <Description xml:lang="en">NZ GST</Description>
    </TaxDetail>
    <TaxDetail category="GST" percentageRate="15.00" purpose="tax">
        <TaxableAmount>
            <Money currency="NZD">5.00</Money>
        </TaxableAmount>
        <TaxAmount>
            <Money currency="NZD">0.75</Money>
        </TaxAmount>
        <Description xml:lang="en">NZ GST</Description>
    </TaxDetail>
</Tax>
```

### Element Structure

The header-level `Tax` element serves as a container for the aggregate tax amount and a series of `TaxDetail` elements that categorize the tax.

| **XML Tag**          | **Description**                                   | **Business Context**                                 |
| -------------------- | ------------------------------------------------- | ---------------------------------------------------- |
| `**< Tax>**`         | The parent container for order-level tax summary. | Aggregates all tax components for the PO.            |
| `**< Money>**`       | The total combined tax value.                     | Must include the `currency` attribute (e.g., `USD`). |
| `**< Description>**` | High-level tax summary description.               | e.g., "Total Order Tax".                             |
| `**< TaxDetail>**`   | A sub-element providing a specific breakdown.     | Used to separate line tax from shipping tax.         |

### Tax Breakdown Logic

Unimarket utilizes the `<TaxDetail>` structure to provide the required breakdown for your financial systems:

* **Line Tax:** This represents the sum of all tax amounts calculated for the physical goods or services across all `ItemOut` blocks.
* **Shipping Tax:** This represents the tax specifically applied to the header-level shipping amount.

By providing these as distinct `TaxDetail` entries, receiving systems can accurately map tax expenses to the correct GL (General Ledger) codes for "Goods Tax" vs. "Freight Tax."

***

## TaxDetail

The `<TaxDetail>` element is a child of the header-level `<Tax>` block. It provides a granular breakdown of how a specific tax amount was calculated, identifying the rate applied, the base amount subject to tax, and the intended purpose of the tax.

**Note:** There is a TaxDetail element for each purpose.

```xml
<TaxDetail category="GST" percentageRate="15.00" purpose="tax">
    <TaxableAmount>
        <Money currency="NZD">5.00</Money>
    </TaxableAmount>
    <TaxAmount>
        <Money currency="NZD">0.75</Money>
    </TaxAmount>
    <Description xml:lang="en">NZ GST</Description>
</TaxDetail>
```

### Attributes Reference

The `TaxDetail` tag includes three critical attributes that define the context of the tax calculation:

| **Attribute**      | **Description**                                              | **Typical Values**                       |
| ------------------ | ------------------------------------------------------------ | ---------------------------------------- |
| **category**       | Defines the classification of the tax.                       | `sales`, `vat`, `gst`, `use`, `service`. |
| **percentageRate** | The numerical tax rate expressed as a percentage or decimal. | `8.25`, `15`, `5.0`.                     |
| **purpose**        | Describes the role of this tax detail within the order.      | `tax for lines`, `tax for shipping`.     |

### Child Elements

Within the `TaxDetail` block, two elements define the monetary values involved in the calculation:

### `**< TaxableAmount>**`

* **Definition:** The net amount of the order (or sub-component) that is subject to tax.
* **Calculation:** This is the base value used before the `percentageRate` is applied.
* **Money Element:** Contains a `<Money>` child with the appropriate `currency` attribute.

### `**< TaxAmount>**`

* **Definition:** The resulting tax value calculated by applying the rate to the taxable amount.
* **Money Element:** Contains a `<Money>` child with the appropriate `currency` attribute.

***

## Contact

The `<Contact>` element within the `OrderRequestHeader` identifies the specific individual who initiated the procurement request. This information is essential for suppliers to manage communication regarding order status, substitutions, or delivery delays.

```xml
<Contact role="buyer">
    <Name xml:lang="en">Mike Brady</Name>
    <Email>mike.brady@unimarket.com</Email>
</Contact>
```

### Element Structure

The `Contact` element captures the buyer's identity and primary communication channel.

| **XML Tag**      | **Description**                            | **Business Context**                                       |
| ---------------- | ------------------------------------------ | ---------------------------------------------------------- |
| `**< Contact>**` | The parent container for the buyer's info. | Always includes the `role="buyer"` attribute.              |
| `**< Name>**`    | The full name of the buyer.                | The person who created the requisition in Unimarket.       |
| `**< Email>**`   | The buyer's email address.                 | The primary channel for automated or manual order updates. |

### Role in the Procurement Lifecycle

* **Order Clarification:** If a supplier has questions about a specific line item or SKU, the details in this element provide the correct person to contact.
* **Notification Routing:** Many supplier systems use the email address provided in this block to send automated Advance Shipping Notices (ASN) or Order Confirmations.
* **Accountability:** The `Name` provides a clear audit trail of who is responsible for the purchase within the community.

***

## Extrinsics

The `<Extrinsic>` element is a versatile tool used to extend the standard cXML schema. It allows Unimarket and its communities to pass custom metadata that is specific to an institution's business processes but is not covered by the core cXML specification.

```xml
<Extrinsic name="buyer-credential">
    <Credential domain="unimarket-user">
        <Identity>mike.brady@unimarket.com</Identity>
    </Credential>
</Extrinsic>
<Extrinsic name="shippingNote"/>
<Extrinsic name="requisition-created-date">2020-11-16T12:17:51.055+13:00</Extrinsic>
<Extrinsic name="organisation">Mike Test Environment</Extrinsic>
<Extrinsic name="organisation-unit">Testing</Extrinsic>
<Extrinsic name="is-retrofit-order">no</Extrinsic>
<Extrinsic name="order-source-type">DEFAULT</Extrinsic>
<Extrinsic name="requisition-source-type">DEFAULT</Extrinsic>
```

### Structure and Attributes

An Extrinsic is a simple name-value pair. It is typically found within the `OrderRequestHeader` (for order-wide data) or within the `ItemDetail` (for line-specific data).

| **Attribute**     | **Description**                             | **Typical Usage**                    |
| ----------------- | ------------------------------------------- | ------------------------------------ |
| `**name**`        | The unique identifier for the custom field. | e.g., "DepartmentCode", "ProjectID". |
| **Element Value** | The actual data content for that field.     | e.g., "DEPT-77", "PRJ-998".          |

### Common Use Cases

In the Unimarket ecosystem, Extrinsics are frequently used to communicate:

* **Account Strings:** Full GL codes or accounting segments.
* **Project Codes:** Tracking identifiers for grants or capital projects.
* **Internal Routing:** Specific codes used for internal warehouse or mailroom processing.
* **Supplier-Specific Data:** Data that a particular supplier requires for their internal processing (e.g., "ContractNumber").

***

## ItemOut

The `<ItemOut>` element is the fundamental building block for line-level data in a cXML `OrderRequest`. This element is repeated for every unique product or service line included in the Purchase Order.

```xml
<ItemOut lineNumber="1" quantity="1">
    <ItemID>
        <SupplierPartID>1010003</SupplierPartID>
        <SupplierPartAuxiliaryID/>
    </ItemID>
    <ItemDetail>
        <UnitPrice>
            <Money currency="NZD">1.00</Money>
        </UnitPrice>
        <Description xml:lang="en">Product Code 10003</Description>
        <UnitOfMeasure>EA</UnitOfMeasure>
        <Classification domain="UNSPSC">44000000</Classification>
        <ManufacturerName xml:lang="en">Description 10003</ManufacturerName>
    </ItemDetail>
    <SupplierID domain="external-id">TestVendorID</SupplierID>
    <ShipTo>...</ShipTo>
    <Shipping>...</Shipping>
    <Tax>...</Tax>
    <Comments/>
</ItemOut>
```

### Attributes Reference

The `ItemOut` tag includes two mandatory attributes that help identify the position and volume of the line item:

| **Attribute**             | **Description**                                 | **Business Context**                                   |
| ------------------------- | ----------------------------------------------- | ------------------------------------------------------ |
| **quantity**              | The numerical amount of the item being ordered. | e.g., `5`, `10.5` (if decimals are supported).         |
| **lineNumber**            | The sequential index of the item within the PO. | Starts at `1` and increments for each subsequent item. |
| **requestedDeliveryDate** | (Optional) The date the buyer expects the item. | Format: `YYYY-MM-DD`.                                  |

### Core Child Elements

Each `ItemOut` block contains detailed information about the specific goods or services being procured:

* `**< ItemID>**`: Contains the primary identifiers for the product, most notably the `<SupplierPartID>`.
* `**< ItemDetail>**`: Encapsulates the descriptive metadata, including:
  * `**< UnitPrice>**`: The cost per unit (wrapped in a `<Money>` element).
  * `**< Description>**`: A human-readable name or detailed specification of the item.
  * `**< UnitOfMeasure>**`: The standard code for the unit (e.g., `EA`, `BOX`, `HR`).
  * `**< Classification>**`: Often used for UNSPSC or other commodity codes.
* `**< Tax>**`: (Optional) Line-level tax specifically for this item.
* `**< Distribution>**`: (Optional) Used in some configurations to pass specific accounting segments for this line.

***

## ItemID

The `<ItemID>` element, located within the `ItemOut` block, contains the technical identifiers used to uniquely distinguish a product or service. This element is the primary "key" used by a supplier's ERP to map the incoming request to a specific inventory item.

```xml
<ItemID>
    <SupplierPartID>1010003</SupplierPartID>
    <SupplierPartAuxiliaryID/>
</ItemID>
```

### Core Child Elements

The `ItemID` block uses standard cXML identifiers to ensure compatibility across different supply chain networks.

| **XML Tag**                      | **Description**                                             | **Business Context**                                                                                                  |
| -------------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `**< SupplierPartID>**`          | The primary SKU or catalog number provided by the supplier. | This is the most critical field for fulfillment. It must match the supplier's internal part number exactly.           |
| `**< SupplierPartAuxiliaryID>**` | An additional identifier used to clarify a specific part.   | Often used for variant identifiers (e.g., color/size codes) or internal unique IDs that aren't the primary SKU.       |
| `**< BuyerPartID>**`             | The community's internal part number.                       | Used if the institution tracks items using their own SKU system (often seen in stockroom or inventory-managed items). |

***

## ItemDetail

The `<ItemDetail>` element, nested within the `ItemOut` block, provides the descriptive and financial attributes of a line item. This metadata is used by the supplier to understand exactly what is being ordered and by the buyer's system for spend analysis and accounting.

```xml
<ItemDetail>
    <UnitPrice>
        <Money currency="NZD">1.00</Money>
    </UnitPrice>
    <Description xml:lang="en">Product Code 10003</Description>
    <UnitOfMeasure>EA</UnitOfMeasure>
    <Classification domain="UNSPSC">44000000</Classification>
    <ManufacturerName xml:lang="en">Description 10003</ManufacturerName>
</ItemDetail>
```

### Core Child Elements

The `ItemDetail` block encapsulates several data points required for commercial transactions:

| **XML Tag**                 | **Description**                                   | **Business Context**                                              |
| --------------------------- | ------------------------------------------------- | ----------------------------------------------------------------- |
| `**< UnitPrice>**`          | The cost per unit of the item.                    | Contains a `<Money>` element with the `currency` attribute.       |
| `**< Description>**`        | A human-readable text string describing the item. | Includes the `xml:lang` attribute (e.g., `en`).                   |
| `**< UnitOfMeasure>**`      | The standard code for the unit of packaging.      | Uses UN/CEFACT or ANSI codes (e.g., `EA`, `CS`, `DZ`).            |
| `**< Classification>**`     | A commodity code for spend categorization.        | Typically uses the `UNSPSC` domain.                               |
| `**< ManufacturerPartID>**` | The part number assigned by the manufacturer.     | Used when the supplier SKU is different from the OEM part number. |
| `**< ManufacturerName>**`   | The name of the product's manufacturer.           | Useful for clarifying brand-specific requirements.                |
| `**< Extrinsic>**`          | Custom metadata extensions.                       | Used for line-level account codes, asset tags, or project IDs.    |

***

## SupplierID

The `<SupplierID>` element provides the definitive identification of the vendor for the transaction. This element is vital for your ERP's accounts payable module, as it allows the system to map the Unimarket order to the correct "Vendor Master" record in your internal database.

**Sample external-id:**

```xml
<SupplierID domain="external-id">TestVendorID</SupplierID>
```

**Sample unimarket-code:**

```xml
<SupplierID domain="unimarket-code">[Unique Supplier UUID]</SupplierID>
```

### Identification Logic (Hierarchy)

Unimarket utilizes a hierarchical approach to ensure the supplier is always identifiable, even if a formal mapping has not yet been completed:

1. **Community-Assigned ID (Primary):** If your institution has assigned a specific ID to the supplier within Unimarket (e.g., your ERP Vendor Number), this value will be used.
2. **Unimarket Unique ID (Fallback):** If no internal ID has been assigned by the community, the system defaults to the unique, system-generated UUID provided by the Unimarket platform.

### Business Context & Integration

| **Data Type**    | **Description**                                    | **Integration Benefit**                                                     |
| ---------------- | -------------------------------------------------- | --------------------------------------------------------------------------- |
| **Community ID** | Your internal ERP vendor code (e.g., `VNDR-8892`). | Allows for "Zero-Touch" matching in your accounting system.                 |
| **Unimarket ID** | A unique system string (e.g., `9ca1-4f2b-8e12`).   | Ensures the order is never "anonymous" even before ERP mapping is finished. |

***

## Comments

The `<Comments>` element, when located within the `ItemOut` (or `ItemDetail`) block, is used to transmit specific notes or instructions related to a particular line item. Unlike header-level comments, these notes apply exclusively to the specific SKU or service on that line.

```xml
<Comments>For Mike</Comments>
```

### Element Structure

The `Comments` element is a flexible container that typically holds plain text or, in some advanced configurations, references to external attachments.

| **XML Tag**         | **Description**                             | **Business Context**                                                           |
| ------------------- | ------------------------------------------- | ------------------------------------------------------------------------------ |
| `**< Comments>**`   | The parent container for item-level notes.  | Can include an `xml:lang` attribute (e.g., `en-US`).                           |
| **Plain Text**      | The actual note content.                    | Instructions such as "Engrave with name" or "Must be delivered by Friday."     |
| `**< Attachment>**` | (Optional) A reference to an external file. | Used if the community has attached a spec sheet or image to the specific item. |

### Common Use Cases

* **Special Instructions:** "Please package in dry ice" or "Requires hazardous material handling."
* **Customization Details:** Specific colors, sizes, or engraving text not captured in the part ID.
* **Service Details:** Specific dates or times for on-site services.
* **Internal References:** Cross-references to internal project notes.

***

## Complete Basic Order Example

```xml
<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="dc61a74d-82ac-4a87-8b83-6e757edd7f85" timestamp="2020-11-16T12:17:51.945+13:00" version="1.2.021" xml:lang="en">
    <Header>
        <From>
            <Credential domain="">
                <Identity/>
            </Credential>
        </From>
        <To>
            <Credential domain="">
                <Identity/>
            </Credential>
        </To>
        <Sender>
            <Credential domain="">
                <Identity/>
                <SharedSecret/>
            </Credential>
            <UserAgent>unimarket</UserAgent>
        </Sender>
    </Header>
    <Request deploymentMode="test">
        <OrderRequest>
            <OrderRequestHeader orderDate="2020-11-16T12:17:51.124+13:00" orderID="102" orderType="regular" type="new">
                <Total>
                    <Money currency="NZD">5.75</Money>
                </Total>
                <ShipTo>
                    <Address addressID="101" isoCountryCode="NZ">
                        <Name xml:lang="en">Branch Location</Name>
                        <PostalAddress>
                            <DeliverTo>Mike Brady</DeliverTo>
                            <Street>456 Something Drive</Street>
                            <City>Auckland</City>
                            <State/>
                            <PostalCode>1010</PostalCode>
                            <Country isoCountryCode="NZ">New Zealand</Country>
                        </PostalAddress>
                        <Email>mike.brady@unimarket.com</Email>
                    </Address>
                </ShipTo>
                <BillTo>
                    <Address addressID="001" isoCountryCode="NZ">
                        <Name xml:lang="en">Head Office</Name>
                        <PostalAddress>
                            <Street>123 Something Street</Street>
                            <City>Auckland</City>
                            <State/>
                            <PostalCode>1010</PostalCode>
                            <Country isoCountryCode="NZ">New Zealand</Country>
                        </PostalAddress>
                        <Email>mike.brady@unimarket.com</Email>
                    </Address>
                </BillTo>
                <Shipping>
                    <Money currency="NZD">0.00</Money>
                    <Description xml:lang="en">Standard Delivery</Description>
                </Shipping>
                <Tax>
                    <Money currency="NZD">0.75</Money>
                    <Description xml:lang="en">NZ GST</Description>
                    <TaxDetail category="GST" percentageRate="15.00" purpose="shippingTax">
                        <TaxableAmount>
                            <Money currency="NZD">0.00</Money>
                        </TaxableAmount>
                        <TaxAmount>
                            <Money currency="NZD">0.00</Money>
                        </TaxAmount>
                        <Description xml:lang="en">NZ GST</Description>
                    </TaxDetail>
                    <TaxDetail category="GST" percentageRate="15.00" purpose="tax">
                        <TaxableAmount>
                            <Money currency="NZD">5.00</Money>
                        </TaxableAmount>
                        <TaxAmount>
                            <Money currency="NZD">0.75</Money>
                        </TaxAmount>
                        <Description xml:lang="en">NZ GST</Description>
                    </TaxDetail>
                </Tax>
                <Contact role="buyer">
                    <Name xml:lang="en">Mike Brady</Name>
                    <Email>mike.brady@unimarket.com</Email>
                </Contact>
                <Extrinsic name="buyer-credential">
                    <Credential domain="unimarket-user">
                        <Identity>mike.brady@unimarket.com</Identity>
                    </Credential>
                </Extrinsic>
                <Extrinsic name="shippingNote"/>
                <Extrinsic name="requisition-created-date">2020-11-16T12:17:51.055+13:00</Extrinsic>
                <Extrinsic name="organisation">Mike Test Environment</Extrinsic>
                <Extrinsic name="organisation-unit">Testing</Extrinsic>
                <Extrinsic name="is-retrofit-order">no</Extrinsic>
                <Extrinsic name="order-source-type">DEFAULT</Extrinsic>
                <Extrinsic name="requisition-source-type">DEFAULT</Extrinsic>
            </OrderRequestHeader>
            <ItemOut lineNumber="1" quantity="1">
                <ItemID>
                    <SupplierPartID>1010003</SupplierPartID>
                    <SupplierPartAuxiliaryID/>
                </ItemID>
                <ItemDetail>
                    <UnitPrice>
                        <Money currency="NZD">1.00</Money>
                    </UnitPrice>
                    <Description xml:lang="en">Product Code 10003</Description>
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <Classification domain="UNSPSC">44000000</Classification>
                    <ManufacturerName xml:lang="en">Description 10003</ManufacturerName>
                </ItemDetail>
                <SupplierID domain="external-id">TestVendorID</SupplierID>
                <ShipTo>
                    <Address addressID="101" isoCountryCode="NZ">
                        <Name xml:lang="en">Branch Location</Name>
                        <PostalAddress>
                            <DeliverTo>Mike Brady</DeliverTo>
                            <Street>456 Something Drive</Street>
                            <City>Auckland</City>
                            <State/>
                            <PostalCode>1010</PostalCode>
                            <Country isoCountryCode="NZ">New Zealand</Country>
                        </PostalAddress>
                        <Email>mike.brady@unimarket.com</Email>
                    </Address>
                </ShipTo>
                <Shipping>
                    <Money currency="NZD">0.00</Money>
                    <Description xml:lang="en"/>
                </Shipping>
                <Tax>
                    <Money currency="NZD">0.15</Money>
                    <Description xml:lang="en">NZ GST</Description>
                    <TaxDetail category="GST" percentageRate="15.00" purpose="tax">
                        <TaxableAmount>
                            <Money currency="NZD">1.00</Money>
                        </TaxableAmount>
                        <TaxAmount>
                            <Money currency="NZD">0.15</Money>
                        </TaxAmount>
                        <Description xml:lang="en">NZ GST</Description>
                    </TaxDetail>
                </Tax>
                <Comments>For Mike</Comments>
            </ItemOut>
            <ItemOut lineNumber="2" quantity="4">
                <ItemID>
                    <SupplierPartID>1010004</SupplierPartID>
                    <SupplierPartAuxiliaryID/>
                </ItemID>
                <ItemDetail>
                    <UnitPrice>
                        <Money currency="NZD">1.00</Money>
                    </UnitPrice>
                    <Description xml:lang="en">Product Code 10004</Description>
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <Classification domain="UNSPSC">44000000</Classification>
                    <ManufacturerName xml:lang="en">Description 10004</ManufacturerName>
                </ItemDetail>
                <SupplierID domain="external-id">TestVendorID</SupplierID>
                <ShipTo>
                    <Address addressID="101" isoCountryCode="NZ">
                        <Name xml:lang="en">Branch Location</Name>
                        <PostalAddress>
                            <DeliverTo>Mike Brady</DeliverTo>
                            <Street>456 Something Drive</Street>
                            <City>Auckland</City>
                            <State/>
                            <PostalCode>1010</PostalCode>
                            <Country isoCountryCode="NZ">New Zealand</Country>
                        </PostalAddress>
                        <Email>mike.brady@unimarket.com</Email>
                    </Address>
                </ShipTo>
                <Shipping>
                    <Money currency="NZD">0.00</Money>
                    <Description xml:lang="en"/>
                </Shipping>
                <Tax>
                    <Money currency="NZD">0.60</Money>
                    <Description xml:lang="en">NZ GST</Description>
                    <TaxDetail category="GST" percentageRate="15.00" purpose="tax">
                        <TaxableAmount>
                            <Money currency="NZD">4.00</Money>
                        </TaxableAmount>
                        <TaxAmount>
                            <Money currency="NZD">0.60</Money>
                        </TaxAmount>
                        <Description xml:lang="en">NZ GST</Description>
                    </TaxDetail>
                </Tax>
                <Comments/>
            </ItemOut>
        </OrderRequest>
    </Request>
</cXML>
```

***

## Expected Response

When Unimarket sends an `OrderRequest` to a supplier's endpoint via an HTTP POST request, the receiving system is required to provide a synchronous acknowledgement. This acknowledgement confirms that the message was successfully received and is syntactically valid.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<cXML>
    <Response>
        <Status code="200" text="OK">Purchase Order Processed Successfully</Status>
    </Response>
</cXML>
```

### HTTP Status Code

The response must be returned with an **HTTP 200 OK** status code. This indicates that the server successfully processed the request.

### cXML Response Structure

The body of the response must be a valid cXML document containing a `<Response>` element and a `<Status>` element.

| **Element / Attribute** | **Value**         | **Description**                                                                    |
| ----------------------- | ----------------- | ---------------------------------------------------------------------------------- |
| `**< cXML>**`           | —                 | The root element, containing standard attributes like `payloadID` and `timestamp`. |
| `**< Response>**`       | —                 | The container for the response content.                                            |
| `**< Status>**`         | —                 | Defines the outcome of the request.                                                |
| `**code**`              | `200`             | The cXML-specific success code (integer).                                          |
| `**text**`              | `OK` or `Success` | A short, human-readable description of the status.                                 |

***

## Exchange Rates

In the Unimarket ecosystem, orders are transmitted using the currency defined by the **Supplier's Store**. To support the customer's internal accounting and budgetary requirements, Unimarket includes additional metadata to show the equivalent value in the **Customer's Functional Currency**.

**Example of the OrderRequestHeader element containing an additional Extrinsic element, showing the exchange rate.**

```xml
<Extrinsic name="exchange-rate">
    <ExchangeRate alternate-currency="NZD" currency="USD" user-specified="false">0.6930</ExchangeRate>
</Extrinsic>
```

**Example of ItemOut element also shows the exchange:**

```xml
<ItemOut lineNumber="1" quantity="5">
    <ItemID>
        <SupplierPartID>1000010</SupplierPartID>
        <SupplierPartAuxiliaryID/>
    </ItemID>
    <ItemDetail>
        <UnitPrice>
            <Money alternateAmount="1.443001" alternateCurrency="NZD" currency="USD">1.00</Money>
        </UnitPrice>
        <Description xml:lang="en">Product Code 10</Description>
        <UnitOfMeasure>EA</UnitOfMeasure>
        <Classification domain="UNSPSC">44000000</Classification>
        <ManufacturerName xml:lang="en">Description 10</ManufacturerName>
    </ItemDetail>
    <SupplierID domain="external-id">2</SupplierID>
    <ShipTo>...</ShipTo>
    <Shipping>
        <Money alternateAmount="0.00" alternateCurrency="NZD" currency="USD">0.00</Money>
        <Description xml:lang="en"/>
    </Shipping>
    <Tax>...</Tax>
    <Comments/>
</ItemOut>
```

### Header Level: The Exchange Rate Extrinsic

To provide a global conversion factor for the transaction, an `<Extrinsic>` element is included within the `<OrderRequestHeader>`.

| **Attribute** | **Value**      | **Description**                                                                                                                    |
| ------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **name**      | `ExchangeRate` | Identifies the conversion factor.                                                                                                  |
| **Value**     | e.g., `1.625`  | The multiplier used to convert the functional currency to the transaction currency (or vice versa, depending on community config). |

### Extended Money Element Attributes

Unimarket extends the standard cXML `<Money>` element (used in `UnitPrice`, `Total`, `Tax`, and `Shipping`) with custom attributes. This ensures that every financial value carries its functional equivalent and the specific rate applied at the line level.

#### **Money Element Attributes:**

* `**currency**`: The transaction currency (Supplier's currency).
* `**alternateAmount**`: The value of the element in the Customer's functional currency.
* `**alternateCurrency**`: The ISO currency code for the Customer's functional currency.
* `**exchangeRate**`: The specific rate used for this calculation (included in `UnitPrice` and `Shipping` within `ItemOut`).

**Note:** More information on how exchange rates are managed is available on help article [Exchange Rates](https://help.unimarket.com/hc/en-us/articles/45850676081305).

***

## Distributions

The `<Distribution>` element is located within the `<ItemOut>` block and allows the community to attach internal accounting codes (GL strings) to specific line items. While these codes are primarily for the community's internal financial tracking, they are included in the Purchase Order to provide transparency and assist with automated invoicing.

```xml
<Distribution>
    <Accounting name="GLCode">
        <AccountingSegment id="Auckland">
            <Name xml:lang="en">Location</Name>
            <Description xml:lang="en">Auckland Office</Description>
        </AccountingSegment>
        <AccountingSegment id="Blue">
            <Name xml:lang="en">Team</Name>
            <Description xml:lang="en">Team Blue</Description>
        </AccountingSegment>
    </Accounting>
    <Charge>
        <Money currency="NZD">12.00</Money>
    </Charge>
</Distribution>
```

### Element Structure and Hierarchy

A distribution defines how the cost of an item is allocated. In some configurations, a single item may be "split" across multiple accounts, leading to multiple distribution blocks.

| **XML Tag**                | **Description**                                | **Business Context**                                                                    |
| -------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------- |
| `**< Distribution>**`      | The parent container for accounting data.      | Usually contains one or more `<Accounting>` blocks.                                     |
| `**< Accounting>**`        | The container for the specific account string. | Includes a `name` attribute identifying the accounting system (e.g., "ERP-Financials"). |
| `**< AccountingSegment>**` | A specific part of an account code.            | Represents segments like "Fund", "Department", or "Object Code".                        |
| `**< Charge>**`            | The monetary value allocated to this account.  | Useful when a line item is split across multiple funding sources.                       |

### Key Attributes

* `**id**`: A unique identifier for the specific distribution within the item.
* `**description**`: A human-readable label for the accounting segment (e.g., "Grant ID").

### Example Distribution for an Item

A demonstration of two account codes for the same line. The account code consists of two parts: Location and Team.

```xml
<ItemOut lineNumber="1" quantity="15">
    <ItemID>
        <SupplierPartID>1010005</SupplierPartID>
        <SupplierPartAuxiliaryID/>
    </ItemID>
    <ItemDetail>
        <UnitPrice>
        <Money currency="NZD">1.00</Money>
        </UnitPrice>
        <Description xml:lang="en">Product Code 10005</Description>
        <UnitOfMeasure>EA</UnitOfMeasure>
        <Classification domain="UNSPSC">44000000</Classification>
        <ManufacturerName xml:lang="en">Description 10005</ManufacturerName>
    </ItemDetail>
    <SupplierID domain="external-id">TestVendorID</SupplierID>
    <ShipTo>...</ShipTo>
    <Shipping>...</Shipping>
    <Tax>...</Tax>
    <Distribution>
        <Accounting name="GLCode">
            <AccountingSegment id="Auckland">
                <Name xml:lang="en">Location</Name>
                <Description xml:lang="en">Auckland Office</Description>
            </AccountingSegment>
            <AccountingSegment id="Blue">
                <Name xml:lang="en">Team</Name>
                <Description xml:lang="en">Team Blue</Description>
            </AccountingSegment>
        </Accounting>
        <Charge>
            <Money currency="NZD">12.00</Money>
        </Charge>
    </Distribution>
    <Distribution>
        <Accounting name="GLCode">
            <AccountingSegment id="Wellington">
                <Name xml:lang="en">Location</Name>
                <Description xml:lang="en">Wellington Office</Description>
            </AccountingSegment>
            <AccountingSegment id="Red">
                <Name xml:lang="en">Team</Name>
                <Description xml:lang="en">Team Red</Description>
            </AccountingSegment>
        </Accounting>
        <Charge>
            <Money currency="NZD">3.00</Money>
        </Charge>
    </Distribution>
    <Comments/>
</ItemOut>
```

***

## Distribution Extrinsics

While standard `<Distribution>` elements provide the monetary charge for an account, Unimarket includes a specialized `<Extrinsic>` element within the `<ItemDetail>` block to provide a summary of the percentage-based allocations for a line item.

This is particularly useful for systems that require the "split" ratio (percentage) rather than just the final calculated currency amount.

```xml
<ItemOut lineNumber="1" quantity="15">
    <ItemID>
        <SupplierPartID>1010005</SupplierPartID>
        <SupplierPartAuxiliaryID/>
    </ItemID>
    <ItemDetail>
        <UnitPrice>
            <Money currency="NZD">1.00</Money>
        </UnitPrice>
        <Description xml:lang="en">Product Code 10005</Description>
        <UnitOfMeasure>EA</UnitOfMeasure>
        <Classification domain="UNSPSC">44000000</Classification>
        <ManufacturerName xml:lang="en">Description 10005</ManufacturerName>
        <Extrinsic name="unimarket-distribution-details">
            <Extrinsic name="GLCode:Auckland-Blue">
                <Extrinsic name="percentage">80.00000000</Extrinsic>
            </Extrinsic>
            <Extrinsic name="GLCode:Wellington-Red">
                <Extrinsic name="percentage">20.00000000</Extrinsic>
            </Extrinsic>
        </Extrinsic>
    </ItemDetail>
    <SupplierID domain="external-id">TestVendorID</SupplierID>
    <ShipTo>...</ShipTo>
    <Shipping>...</Shipping>
    <Tax>...</Tax>
    <Distribution>...</Distribution>
    <Distribution>...</Distribution>
    <Comments/>
</ItemOut>
```

### Structure: The Distribution Container

The allocation data is encapsulated within a primary Extrinsic element.

| **Attribute** | **Value**                        | **Description**                                         |
| ------------- | -------------------------------- | ------------------------------------------------------- |
| **name**      | `unimarket-distribution-details` | The identifier for the distribution percentage summary. |

### Percentage Allocation Logic

Inside this container, Unimarket provides repeating details for each account code applied to the item. This ensures that even if an item's cost is split across 5 different departments, the percentage for each is explicitly stated.

* **Account Identifier:** The specific GL string or account name.
* **Percentage:** The portion of the item's total cost assigned to that account (e.g., `50.00` for 50%).

***

## Common cXML Elements

The tables show some examples of where to find common fields used from the Header and Item levels.

### Header Level Mapping Table

The following table details the attributes and elements used to define the overall Purchase Order.

| **Detail**             | **cXML Path (XPath)**                                                                 |
| ---------------------- | ------------------------------------------------------------------------------------- |
| **Environment**        | `cXML/Request/@deploymentMode`                                                        |
| **Order Date**         | `cXML/Request/OrderRequest/OrderRequestHeader/@orderDate`                             |
| **Order Number**       | `cXML/Request/OrderRequest/OrderRequestHeader/@orderID`                               |
| **Order Status**       | `cXML/Request/OrderRequest/OrderRequestHeader/@type`                                  |
| **Ship To ID**         | `cXML/Request/OrderRequest/OrderRequestHeader/ShipTo/Address/@addressID`              |
| **Ship To Name**       | `cXML/Request/OrderRequest/OrderRequestHeader/ShipTo/Address/Name`                    |
| **Deliver To / Attn**  | `cXML/Request/OrderRequest/OrderRequestHeader/ShipTo/Address/PostalAddress/DeliverTo` |
| **Street (Lines 1-3)** | `.../PostalAddress/Street[1]`                                                         |
| **City**               | `.../PostalAddress/City`                                                              |
| **State / Region**     | `.../PostalAddress/State`                                                             |
| **Post / ZIP Code**    | `.../PostalAddress/PostalCode`                                                        |
| **Country**            | `.../PostalAddress/Country`                                                           |
| **Buyer Name**         | `cXML/Request/OrderRequest/OrderRequestHeader/Contact[@role="buyer"]/Name`            |
| **Buyer Email**        | `cXML/Request/OrderRequest/OrderRequestHeader/Contact[@role="buyer"]/Email`           |
| **Order Total**        | `cXML/Request/OrderRequest/OrderRequestHeader/Total/Money`                            |
| **Shipping Total**     | `cXML/Request/OrderRequest/OrderRequestHeader/Shipping/Money`                         |
| **Tax Total**          | `cXML/Request/OrderRequest/OrderRequestHeader/Tax/Money`                              |
| **Order Note**         | `cXML/Request/OrderRequest/OrderRequestHeader/Extrinsic[@name="shippingNote"]`        |

### ItemOut (Item Level) Mapping Table

The following table describes the attributes and elements found within each repeated `<ItemOut>` block.

**Note:** The `[*]` notation indicates that `ItemOut` is a collection that repeats for every line item in the order.

| **Detail**            | **cXML Path (XPath)**                                             | **Example**          |
| --------------------- | ----------------------------------------------------------------- | -------------------- |
| **Line Number**       | `cXML/Request/OrderRequest/ItemOut[*]/@lineNumber`                | `1`                  |
| **Quantity**          | `cXML/Request/OrderRequest/ItemOut[*]/@quantity`                  | `1`                  |
| **Item Code**         | `cXML/Request/OrderRequest/ItemOut[*]/ItemID/SupplierPartID`      | `1010003`            |
| **Item Description**  | `cXML/Request/OrderRequest/ItemOut[*]/ItemDetail/Description`     | `Product Code 10003` |
| **Unit of Measure**   | `cXML/Request/OrderRequest/ItemOut[*]/ItemDetail/UnitOfMeasure`   | `EA`                 |
| **UNSPSC / Category** | `cXML/Request/OrderRequest/ItemOut[*]/ItemDetail/Classification`  | `44000000`           |
| **Unit Price**        | `cXML/Request/OrderRequest/ItemOut[*]/ItemDetail/UnitPrice/Money` | `1.00`               |
| **Tax**               | `cXML/Request/OrderRequest/ItemOut[*]/Tax/Money`                  | `0.15`               |
| **Item Note**         | `cXML/Request/OrderRequest/ItemOut[*]/Comments`                   | `For Mike`           |

***

## What's Next / Related

* [cXML Users Guide](http://xml.cxml.org/current/cXMLUsersGuide.pdf)
* [cXML.dtd](http://xml.cxml.org/schemas/cXML/1.2.020/cXML.dtd)
* [Example\_cXML\_Purchase\_Order.xml](https://help.unimarket.com/hc/en-us/article_attachments/45852177261209) (9 KB)


# Unimarket File Automation (sFTP)

Unimarket File Automation provides a low-barrier alternative to full system integration by allowing customers to securely import and export data using simple CSV flat files. This service eliminates the need for manual data entry and report generation by automating the exchange of information via Secure File Transfer Protocol (sFTP).

## Audience and Intent

* **Audience**: Organizations seeking to automate master data or reporting without the complexity or budget of a full integration.
* **Intent**: To provide a simple method for securely importing/exporting CSV files, reducing manual workload for data loads and exports.

## Supported Master Data Imports

You can use File Automation to manage several key master data categories:

* **Users**: Bulk upload and update user profiles. See [User Data Uploads via sFTP](/documentation/file-automation-sftp/user-data-uploads-via-sftp).
* **Account Codes**: Sync general ledger and financial codes. See [Account Code Formats](https://help.unimarket.com/hc/en-us/articles/45850693718937-Account-Code-Formats-Manually).
* **Approval Data**: Automate the upload of approval chains and limits. See [Approval Data Uploads via sFTP](/documentation/file-automation-sftp/approval-data-uploads-via-sftp).
* **Payment Status**: Update payment records for processed invoices. See [Payment data uploads using sFTP](https://help.unimarket.com/hc/en-us/articles/45852076227481-Payment-data-uploads-using-sFTP).
* **Suppliers**: Create and update supplier records and remittance addresses. See [Supplier Master Data Uploads via sFTP](/documentation/file-automation-sftp/supplier-master-data-uploads-via-sftp).
* **Blanket Order Invoices**: Speed up invoice entry by uploading lines via CSV. See [Upload Blanket Order Invoices Using a CSV](https://help.unimarket.com/hc/en-us/articles/45849771795609-Upload-Blanket-Order-Invoices-Using-a-CSV).

## How to Set Up File Automation

Setup is straightforward and requires minimal configuration beyond establishing an sFTP connection.

1. **Request Activation**: Contact your **Account Manager** to discuss requirements and enable the service for specific uploads.
2. Further details relating to setting up File Automation can be found in [sFTP Setup for File Automation](/documentation/file-automation-sftp/sftp-setup-for-file-automation).

## Automated Reporting

Reporting automation is even simpler than data imports. Reports can be scheduled on a regular export cycle to be delivered automatically to your chosen sFTP location. This ensures your team always has access to the latest procurement insights without manual extraction.

## Limits & Notes

* **Cost**: There is a minimal annual fee associated with enabling this functionality.
* **File Format**: All automated files must adhere to the specific CSV syntax, character encoding, and date formats required by Unimarket.
* **Sequencing**: When loading multiple files, they must be processed in order (e.g., creating suppliers before adding supplier addresses) to avoid errors.


# sFTP File Error: Problem Processing File

When your community receives an email notification with the error **Problem Processing File**, it indicates that an automated or manual file upload was unsuccessful. Follow these steps to identify and resolve the issue.

## How to Identify the Error

1. **Login** to Unimarket.
2. Navigate to the **Administration** module and select **File Processing**.
3. Locate the failed file in the list.
4. **Hover over the "i" icon** (information circle) next to the failed status to view specific details about what the error pertains to.
5. Select the **Error Report** hyperlink to download the CSV file and research and resolve the error(s).

## Common Error Types

Errors typically fall into one of the following categories:

* **Syntax Errors**: Incorrect CSV formatting, such as missing headers or incorrect character encoding.
* **Data Validation**: Missing required fields or using invalid data (e.g., an account code that doesn't exist).
* **Sequence Issues**: Uploading dependent data before the primary data exists (e.g., uploading supplier addresses before the supplier record).
* **Duplicate Invoices Found**: Multiple invoices found with the same identifier associated with the specified supplier name.

## How to Resolve the Issue

1. **Correct the File**: Open your source CSV file and fix the specific data or formatting issue identified in the error message.
2. **Re-upload**: Once corrected, re-upload the file through the **File Processing** screen or place it back in the appropriate sFTP inbound folder.
3. **Verify**: Confirm the status changes to "Success" or "Processed" in the File Processing log.

## Limits & Notes

* **Support Assistance**: If the error message is technical or pertains to a system issue you cannot correct, contact Unimarket Support at `support@unimarket.com`.
* **Outdated Files**: Avoid re-uploading old files if more recent data has already been processed to prevent overwriting current information.


# sFTP Setup for File Automation

Unimarket uses Secure File Transfer Protocol (sFTP) to securely send and receive files. This functionality automates master data uploads (e.g., Users, Account Codes, and Approvals) and enables the scheduled export of reports, from your community to an sFTP folder.

## Prerequisites

* **Account Type**: You must have **Unimarket File Automation** enabled for your community.
* **Credentials**: You will receive a formal document from Unimarket containing your specific credentials and connection command line.

## How to Set Up sFTP

Follow these steps to establish a secure connection before you begin transferring files:

1. **Enable Functionality**: Unimarket enables the sFTP functionality on their end, providing a secure location for your CSV files.
2. **Establish Authentication**: Choose your preferred method of secure login:
   * **Public Key (Preferred)**: Provide Unimarket with your public key. Unimarket supports **Open SSH** and **RSA** private keys.
   * **User/Password**: Use the credentials of an integration user created in Unimarket.
3. **Whitelist IP Address**: Provide your organization's **IP address** to Unimarket.

{% hint style="info" %}
**Note:** You will experience a connection timeout if your IP is not whitelisted by Unimarket.
{% endhint %}

4. **Connect via Client**: Once Unimarket confirms the setup is updated, use an sFTP client to connect to the server using the provided command line.

## sFTP Server Configurations

Unimarket maintains fixed hostnames and IP addresses for different regions and environments. Ensure you use the correct details for your location:

| Environment | Region             | Hostname                  | IP Address       |
| ----------- | ------------------ | ------------------------- | ---------------- |
| **DEMO**    | All                | `sftp.unimarket-demo.com` | `34.172.138.111` |
| **PROD**    | New Zealand (NZ)   | `sftp.unimarket.co.nz`    | `35.189.31.11`   |
| **PROD**    | Australia (AU)     | `sftp.unimarket.com.au`   | `34.151.122.70`  |
| **PROD**    | United States (US) | `sftp.unimarket.com`      | `35.224.213.147` |


# Approval Data Uploads via sFTP

You can automate approval data uploads by sending CSV file templates to Unimarket via **Secure File Transfer Protocol (sFTP)**. This functionality allows you to update your community's master data without manual entry.

## Prerequisites

* **Enabled Feature**: The upload feature must be enabled by Unimarket.
* **Support**: Contact your **Customer Success Manager** to discuss requirements and enable this option for your community.
* **sFTP Setup**: Before sending or receiving files, you must complete the initial sFTP configuration (including IP whitelisting and authentication). See [sFTP Setup for File Automation](/documentation/file-automation-sftp/sftp-setup-for-file-automation).

## Loading Files and Processing Order

Files must be sent sequentially to ensure they process correctly. Each file must be **fully uploaded** before you send the next; do not send multiple files simultaneously.

Because approval data contains related dependencies, you must follow this specific order:

1. **Groups**
2. **Chains**
3. **Ruleset**

Files should be delivered to the designated **inbound folder** on your sFTP server. Once processed, they are automatically moved to the **processed folder** and its relevant sub-directories.

## File Naming Conventions

Follow these naming standards to ensure the system correctly identifies and routes your data:

### Groups and Chains

* **Convention**: There is no specific naming convention required for Groups and Chains.
* **Action**: Simply send these files to their corresponding folders on the sFTP server.

### Rulesets

Because communities often have multiple rulesets, each requires a separate CSV file with a specific name to ensure it is loaded to the correct ruleset.

* **Format**: `date___rulesetname.csv`
* **Requirement**: Use exactly **three underscores** (`___`) between the date and the ruleset name.
* **Example**: `20220825___1 Project Accounting.csv`

## Troubleshooting

If you receive an email stating there was a **"Problem Processing File,"** you can troubleshoot the issue within the application:

1. Navigate to the **Administration** module.
2. Select **File Processing**.
3. Hover over the **"i" icon** (information circle) next to the failed file to see specific error details.
4. Correct the error in your CSV and re-upload the file.

See [sFTP File Error: Problem Processing File](/documentation/file-automation-sftp/sftp-file-error-problem-processing-file) for more detail.


# User Data Uploads via sFTP

You can automate user data uploads by sending CSV file templates to Unimarket via **Secure File Transfer Protocol (sFTP)**. This service removes the need to manually manage user profiles by securely importing data directly into your community.

## Prerequisites

* **Enable Feature**: The upload feature must be enabled by Unimarket; contact your **Customer Success Manager** to discuss and enable this option.
* **sFTP Setup**: Before sending files, the sFTP functionality must be configured, including IP whitelisting and authentication. See [sFTP Setup for File Automation](/documentation/file-automation-sftp/sftp-setup-for-file-automation).

## sFTP Setup Process

Follow these steps to establish a secure connection for your user data uploads:

1. **Enable Functionality**: Unimarket enables sFTP, providing a secure location for your CSV files.
2. **Connection Details**: Unimarket will provide the specific **command line** needed to connect to the sFTP server.
3. **Authentication**: Establish access via an integration user password or a **public key** provided by the customer (preferred option).
4. **IP Whitelisting**: Provide your **IP address** to Unimarket for whitelisting.

{% hint style="info" %}
**Note:** You will experience a connection timeout if your IP is not whitelisted.
{% endhint %}

5. **Connect**: Once setup is confirmed, use an sFTP client to connect to the server.

### Loading Files

To ensure data is handled accurately, follow these processing rules:

* **Sequential Uploads**: Files must be **sent in order**. Each file must be fully uploaded before the next one is sent; do not send them all at once.
* **Inbound Location**: Send files to the designated **inbound folder** on the sFTP server.
* **Post-Processing**: Once processed, files are automatically moved to the **processed folder** and its relevant sub-directories.

## File Naming Convention

* **Standard**: User files do not require a specific naming convention.
* **Action**: Simply deliver the file to the corresponding folder on the sFTP server, for it to be picked up for processing.

## Troubleshooting: Problem Processing File Error

If you receive a **"Problem Processing File"** notification:

1. Navigate to the **Administration** module and select **File Processing**.
2. Hover over the **"i" icon** to view the specific error details.
3. Correct the CSV data and re-upload the file.

See [sFTP File Error: Problem Processing File](/documentation/file-automation-sftp/sftp-file-error-problem-processing-file) for more detail.


# Supplier Master Data Uploads via sFTP

Suppliers and their related details can be created and updated efficiently, using the bulk community Supplier Upload function. This service allows you to use a CSV template to synchronize Unimarket with your Finance ERP system, manage bulk updates, or connect/disconnect suppliers in volume.

{% hint style="info" %}
**Note:** This functionality is only available to be completed via **sFTP**.
{% endhint %}

## Intent

* **ERP Synchronization**: Reflect changes from your ERP back into Unimarket, such as a daily feed of new, removed, or updated supplier records.
* **Bulk Updates**: Efficiently update specific fields like Supplier Tags, Vendor IDs, or Buyer Groups across multiple records.
* **Connection Management**: Connect or disconnect suppliers in bulk without manual entry.

## Prerequisites

* **Role**: You must have the **Community Administrator** or **Create Invoices** role.
* **Setup**: Ensure **File Automation** is enabled by your Customer Success Manager and your sFTP connection is established. See [sFTP Setup for File Automation](/documentation/file-automation-sftp/sftp-setup-for-file-automation).

## File Format and Logic

The supplier upload mechanism is designed for flexibility:

* **Optional Columns**: Most columns in the template are optional.
* **Column Order**: The order of columns does not matter (e.g., a file could contain only an ID in column A and Supplier Tags in column B).
* **Identification Logic**: The system must find either a **Community Supplier ID** or a **Supplier ID**. If neither ID is found, Unimarket will create a new **Lite Supplier**.

### Important Business Logic

* **Lite Supplier Creation**: If neither the Community Supplier ID nor the Supplier ID is found in the file, Unimarket will attempt to create a new Lite Supplier. The **Company or Trading Name** is the only required field for this action.
* **Email Logic**: If **Remittance Email** or **Order Email** fields are left blank but a **Default Email Address** is provided, the system will automatically use the default address for those roles.
* **US Tax Identification**: When using the **Tax Identification Type** column (US only), the **Tax Number** must follow strict formatting (e.g., EIN must be `99-9999999`).
* **Sequence**: To ensure data processes correctly, always upload the **Supplier Master** file before uploading the **Supplier Addresses** file.

## Supplier CSV Field Definitions

The table below details the specific formatting and logic required for the Supplier CSV template.

| Column Name                 | Description                                                                                       | Format       | Mandatory?                      |
| --------------------------- | ------------------------------------------------------------------------------------------------- | ------------ | ------------------------------- |
| **Community Supplier ID**   | The Unimarket-assigned ID for the supplier in your community.                                     | Alphanumeric | Mandatory (if no Supplier ID)   |
| **Supplier ID**             | Your internal ERP ID for this supplier.                                                           | Alphanumeric | Mandatory (if no Community ID)  |
| **Profile Type**            | Individual, Company/Organization (US), or Company/Organisation (AU/NZ).                           | Alphanumeric | Optional (defaults to Company)  |
| **Company or Trading Name** | The display name of the supplier. Required for creating new "Lite" suppliers.                     | Alphanumeric | Mandatory for new suppliers     |
| **Default Email Address**   | The primary email used for most system notifications.                                             | Valid Email  | Optional                        |
| **Payment Term**            | Must match an existing individual Payment Term Code in your community.                            | Alphanumeric | Optional                        |
| **Connection State**        | Set to **Connected** or **Disconnected**.                                                         | Fixed Value  | Optional                        |
| **Tax Number**              | Format varies by region (e.g., 11 digits for AU, 8-9 for NZ and EIN must be `99-9999999` for US). | Number       | Mandatory if Tax Registered = Y |

## Troubleshooting

If you receive a **"Problem Processing File"** email notification:

1. Go to the **Administration** module and select **File Processing**.
2. Locate the failed file and hover over the **"i" icon** to view the specific error pertaining to the data.
3. Correct the CSV file and re-upload to the sFTP inbound folder.

See [sFTP File Error: Problem Processing File](/documentation/file-automation-sftp/sftp-file-error-problem-processing-file) for more detail.

* [Supplier Upload - Template.csv](https://help.unimarket.com/hc/en-us/article_attachments/45852041811609) (377 Bytes)


# Step By Step of the Workato Agent Cert Renew using Linux Host Server OS

These steps cover renewing the Workato On-Premise Agent (OPA) certificate on a Linux host. See [Renew the Workato OPA Certificate](/documentation/unimarket-integration-middleware/renew-workato-opa-certificate) for the general renewal overview.

## Step 1: Create a new agent in Workato

In the Workato UI, add a new on-prem agent to the **same on-prem group** as the existing agent. You don't need to download a new installer. Save the **Activation Code** shown during setup — you'll need it later.

{% hint style="info" %}
Unimarket will perform this task unless you have set up a Workspace Collaborator with access to your Workato Test and Prod environments via the Unimarket team.
{% endhint %}

## Step 2: Stop the agent service

```bash
sudo systemctl stop workato-agent
```

Confirm the service name with `systemctl list-units | grep workato` if you're unsure.

## Step 3: Switch to the `workato` user

```bash
sudo su - workato
```

If your system uses a different method:

```bash
sudo -i -u workato
```

{% hint style="info" %}
All commands in Steps 4 and 5 that interact with the `workato-agent` directory must be run as the `workato` user. The directory and its contents are owned by this user, and running these commands as any other user will result in permission errors.
{% endhint %}

## Step 4: Navigate to the `conf` directory and remove the expired certificates

```bash
cd /opt/workato-agent/conf
```

Adjust the path if your install location differs — common alternatives are `/usr/local/workato-agent` or `/home/workato/workato-agent`.

```bash
rm cert.pem cert.key
```

## Step 5: Navigate to the `bin` directory and run the activation script

```bash
cd /opt/workato-agent/bin
```

```bash
./activate --code=YOUR_ACTIVATION_CODE
```

Replace `YOUR_ACTIVATION_CODE` with the code saved in Step 1. This generates new `cert.key` and `cert.pem` files in the `conf` folder.

{% hint style="info" %}
If you're behind a proxy, run `./activate --help` first to see the additional proxy parameters required. Unimarket will provide the new cert activation script from Workato unless you have set up a Workspace Collaborator with access to your Workato Test and Prod environments via the Unimarket team.
{% endhint %}

## Step 6: Restart the agent service

```bash
# Exit back to your admin user first
exit

# Restart the service
sudo systemctl restart workato-agent
```

## Step 7: Verify in Workato

1. Go back to the Workato UI and click **Test** on the new agent.
2. Confirm the agent shows as **Active**, then click **Done**.
3. Optionally, go to the old agent's **Version** column → **...** → **Delete agent** to clean it up.

{% hint style="info" %}
Unimarket will perform this task unless you have set up a Workspace Collaborator with access to your Workato Test and Prod environments via the Unimarket team.
{% endhint %}

## A few things to double-check on your specific install

* Confirm your actual install path with `find /opt /usr/local /home -name "activate" 2>/dev/null` if you're unsure.
* The new certificate is valid for **1 year** from the generation date.
* Unimarket has an OPA certificate monitoring job in Workato that triggers a support ticket to alert both the customer and Unimarket support 30 and 15 days prior to the certificate needing renewal.


# Renew the Workato OPA Certificate

For security purposes, the Workato OPA (On-Prem Agent) certificates are set to renew on an annual basis. To ensure that customers are well informed and have ample time to take action before their certificate expires, Unimarket has implemented a notification system within each customer's Workato workspace. This system automatically notifies customers and generates a support ticket with the Unimarket support team exactly 30 days prior to the certificate's expiration date. The goal of this proactive approach is to give both customers and the Unimarket team sufficient notice to renew the certificate in a timely manner by following the procedures below.

Unimarket offers flexibility in managing the renewal process. Customer IT staff can be granted access to the relevant Workato workspace, enabling them to independently perform all tasks related to certificate renewal. Alternatively, Unimarket can handle the entire process within Workato on behalf of the customer — in this case, Unimarket generates the new certificate and securely provides it to the customer's IT staff, who then update the certificate on the OPA host server.

## Requesting Workspace Access

If you would like access to your organization's Workato workspace, first create a free Workato account at <https://app.workato.com/users/sign_up>. Once your account is set up, request the Collaborator Role by submitting a support ticket to Unimarket — send an email to <support@unimarket.com>. After your request is processed, you will be granted the necessary permissions to access and manage the workspace as a collaborator.

For comprehensive guidance and additional technical details, refer to the official Workato documentation on [renewing agent keys](https://docs.workato.com/en/on-prem/agents/key.html#renew-agent-keys).

{% hint style="info" %}
For step-by-step instructions using Linux commands, see [Step By Step of the Workato Agent Cert Renew using Linux Host Server OS](/documentation/unimarket-integration-middleware/workato-agent-cert-renew-linux).
{% endhint %}

## Renewal Steps

The certificate renewal process can be completed either by the customer independently or in collaboration with the Unimarket team. This process can be performed without needing to upgrade your existing setup.

1. Create a new on-prem agent in the same on-prem group as the original agent. You don't need to download the installer during setup unless you plan to upgrade the original agent. Refer to Workato's [Add an agent](https://docs.workato.com/on-prem/groups/add-agent.html) or [Upgrade an agent](https://docs.workato.com/on-prem/agents/upgrade.html) pages for more information.
   * When creating the new OPA, name the agent something like `{customer} PROD OPA 2026`.
2. Save the **Activation code** shown for the new agent during setup.
3. Go to the `conf` folder inside your existing OPA installation folder (`C:\Program Files\Workato Agent` by default on Windows).
4. Move the `cert.pem` and `cert.key` files to a backup location.
5. Open a command-line interface and set the working directory to the `bin` folder inside your existing OPA installation folder.
6. Run the `activate` script, passing the activation code as an input parameter, to create new `cert.key` and `cert.pem` files. For example:

   ```
   activate.cmd --code=ACTIVATION_CODE
   ```
7. Return to Workato and click **Test**.
8. Ensure the new agent appears as **Active**, then click **Done**. The existing on-prem agent installation becomes the new agent. The new certificate remains valid for 1 year after the generation date.
9. Go to the old agent's **Version** column, click the ellipsis (**...**), and select **Delete agent**.


# Workato On-Premise Agent (OPA)

Unimarket integrations use Workato as a SaaS-based middleware for establishing connections between Unimarket and a customer's Finance/ERP and other third-party systems. Workato can establish direct connections for Web Services and REST APIs, and has multiple prebuilt Connectors.

When a direct connection between Unimarket and a customer's systems cannot be established, and a database connection is needed from behind the firewall, Workato's On-Premise Agent (OPA) allows Workato to establish a secure connection and poll from the Agent back to Workato — reducing the need for inbound firewall rules and exposure.

Details can be found on the [Workato help documentation site](https://docs.workato.com/on-prem.html#how-it-works).

{% hint style="info" %}
The Workato On-Premise Agent is replacing the legacy [Unimarket Connector Platform (UCP)](/documentation/unimarket-integration-middleware/unimarket-connector-platform) for all customer integrations.
{% endhint %}

## How It Works

Workato on-prem connectivity has two core components:

* Tunneling
* Database, file system, and application access.

The on-prem agent runs within the customer's server, typically behind a firewall, and establishes a TLS WebSocket tunnel to connect out to Workato.

Because the on-prem agent is within the same network as systems behind the firewall, it can safely access the customer's systems and act as the agent to communicate securely out to Workato.

## Supported Operating Systems

The on-prem agent runs on the following systems:

* Linux (64-bit)
* Windows 7, 10, 11 (64-bit)
* Mac OS X
* Windows Server 2008 and newer (before OPA [v2.8.0](https://docs.workato.com/on-prem/agents/versions.html#v2-8))
* Windows Server 2012 R2 and newer (OPA [v2.8.0](https://docs.workato.com/on-prem/agents/versions.html#v2-8) onwards)

Minimum hardware requirements are:

* 8 GB of RAM
* 768 MB of disk space
* 800 MHz 64-bit CPU (Intel/AMD)

{% hint style="info" %}
Unimarket provides a Demo/Test and a Production environment. Each environment connects to a separate Workato Agent, which needs to be hosted on a separate server or VM.
{% endhint %}

## Installing the Workato On-Premise Agent (OPA)

Installing the On-Premise Agent (OPA) is quick and easy on Linux or Windows host environments. Installation and confirming the connection can take as little as 15 minutes, using a Linux DEB or RPM package, a Windows package, or a Docker image. Unimarket provides a secure activation key that connects the On-Premise Agent to the customer's instance.

### Installation Details

* [Linux DEB Package](https://docs.workato.com/on-prem/groups/add-agent/linux-deb.html)
* [Linux RPM Package](https://docs.workato.com/on-prem/groups/add-agent/linux-rpm.html)
* [Windows Package](https://docs.workato.com/on-prem/groups/add-agent/windows.html)
  * A `config.yaml` file may be required to set up certain connections, such as Oracle JDBC connections, to contain the host, port, DB instance, and user credentials. See the [config.yaml article](https://docs.workato.com/on-prem/agents/connection/profile.html#basics) for examples of Connection Profiles.
* [Docker Image](https://docs.workato.com/on-prem/groups/add-agent/docker.html)
* [macOS Package](https://docs.workato.com/on-prem/groups/add-agent/macos.html)

## Maintaining and Updating the On-Premise Agent (OPA)

Maintaining and updating the On-Premise Agent (OPA) is easy and recommended during regular server maintenance cycles. Workato releases regular patches and updates, listed on their [Release Version site](https://docs.workato.com/on-prem/agents/versions.html).

For security purposes, the Workato OPA certificates are set to renew annually — see [Renew the Workato OPA Certificate](/documentation/unimarket-integration-middleware/renew-workato-opa-certificate).

### Linux RPM Package Update

Upgrade the agent using the following command:

```bash
sudo yum upgrade workato-agent.x86_64
```

The service should automatically stop, upgrade, and restart for systemd-based distributions. If that doesn't happen, do it manually.

### Linux DEB Package Update

Upgrade the agent using the following command:

```bash
sudo apt upgrade workato-agent
```

The service should automatically stop, upgrade, and restart for systemd-based distributions. If that doesn't happen, do it manually.

### Windows Package Update

Upgrading on Windows requires uninstalling the existing agent service before installing the new version. Full steps and details are on the [Workato Windows OPA Upgrade site](https://docs.workato.com/on-prem/agents/upgrade.html#upgrade-the-existing-agent-by-replacing-the-old-one).

Unimarket can provide the upgraded package directly from Workato — create a support ticket by emailing <support@unimarket.com> to request the latest Windows OPA install package.

## Roles and Responsibilities

### Customer Is Responsible For

* Providing and maintaining the host environment and OS.
* Applying OS security patches/updates.
* Installing the On-Premise Agent (OPA) using the provided install packages.
* Maintaining OPA updates using the provided update packages, recommended during regular server maintenance cycles.
* Annually renewing the OPA certificate.

### Unimarket Is Responsible For

* Establishing the Workato Workspace for each customer and provisioning the TEST and PROD environments.
* Establishing the On-Premise Agent (OPA) Group within each provisioned environment (TEST/PROD).
* Providing the install packages based on the host environment OS.
* Providing the Activation Key for all On-Premise Agents.
* Assisting with troubleshooting connection or On-Premise Agent issues.


# Unimarket Connector Platform

The buying organization can choose to integrate via standard Unimarket web services or use the Unimarket Connector middleware to manage data transformation with external systems like FMIS, ERP, or reporting systems.

## Transition to Workato On-Premise Agent (OPA)

{% hint style="info" %}
Unimarket has transitioned to using the [Workato On-Premise Agent (OPA)](/documentation/unimarket-integration-middleware/workato-on-premise-agent-opa) for all new customer integrations. The Unimarket Connector Platform (UCP) is no longer being installed for new customers, and existing customers are being upgraded to Workato for improved security and performance. Support for the legacy UCP is expected to continue through the end of 2026.
{% endhint %}

## The Unimarket Connector (Legacy)

The Connector was designed to minimize custom integration requirements by specifically handling the transmission, receipt, and transformation of messages between Unimarket and client-side systems.

* **Installation**: Installed on a Java Runtime Environment (JRE) behind the customer firewall.
* **Function**: Receives XML messages from the Unimarket application.
* **Output**: Converts data into a compatible format (such as a flat file) for the customer's FMIS/ERP system.
* **Delivery**: Data is typically sent to a staging table or a specific directory location.

## Types of Integration Messages

Integration points facilitate the exchange of several data types between systems:

| Category               | Examples                                                        |
| ---------------------- | --------------------------------------------------------------- |
| Transactional Messages | Orders, Receipts, and Invoices.                                 |
| Master Data            | Approvals, User Details, and Accounting (GL) information.       |
| Validation / Callback  | Budget Checking, Approvals, and User Validation/Authentication. |

{% hint style="info" %}
The diagram below does not illustrate all the available integration points.
{% endhint %}

![Unimarket Connector integration points](https://help.unimarket.com/hc/article_attachments/53674577887641)


# Update Account Code Format Integration

The **Update Account Code Format** integration is an inbound process used to receive General Ledger (GL) or Project account code formats, values, and descriptions from an external system (e.g., a customer's ERP or Finance solution). This integration ensures that GL master data held in your financial system is accurately replicated into Unimarket.

## Intent

* **Data Replication**: To populate Unimarket with current financial structure data from an external ERP.
* **Frequency**: This process is typically run periodically, such as nightly, to keep systems synchronized.
* **Checkout Accuracy**: The replicated codes are used to code requisition lines during the checkout process, ensuring users select valid financial data.

## Key Data Elements

The integration populates Unimarket with the following structural and master data:

* **Account Code Part Options**: Defines the segments of your account string, such as Organization, Team, or Account.
* **Part Types and Dependencies**: Establishes the relationships and hierarchies between different account code segments.
* **Account Code Part Data**: Imports the specific codes and their corresponding descriptions.

## Troubleshooting

If the account code data does not appear to be updating:

1. Verify the connection status of your **Workato On-Premise Agent** or **Unimarket Connector**.
2. Check the **Administration > File Processing** module (if using File Automation) to view any error logs.
3. Ensure the external ERP triggered the scheduled export, as expected.


# Validate Account Codes (Budget Check)

The **Validate Account Code** integration allows Unimarket to request real-time verification of accounting information (such as FOPAL or ledger data), from an external ERP or Finance system during the checkout process. This ensures that the buyer is authorized to use specific accounts, the account combinations are correct, and there is sufficient budget available.

{% hint style="info" %}
For a breakdown of the different ways this integration can be implemented (stored procedure vs. budget table lookup), see [Integration Options for Validate Account Code (Budget Check) Integration](/documentation/transactions-orders-receipts-invoices-and-more/validate-account-code-budget-check-options).
{% endhint %}

## How it Works

This is a **synchronous** integration point, meaning the external system must respond while the user is actively waiting in the checkout process. A rapid response time is essential to prevent system timeouts and ensure a smooth user experience.

## Request Data

For every line item on a requisition, Unimarket sends the following key data to the ERP for validation:

* **Line Details**: Line number, quantity, and product code (SKU).
* **Pricing**: Unit price and the total amount (excluding tax).
* **Accounting**: The specific account code (individual parts) and any account code splits if applicable.

## Response and Results

The external system evaluates the data and responds with one of three statuses for each line item:

| Result      | Outcome                                                                                                                                                          |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Valid**   | The line passes validation. If all lines are valid, the requisition proceeds to checkout normally.                                                               |
| **Invalid** | The requisition is stopped. The buyer cannot proceed until the accounting information is corrected.                                                              |
| **Warning** | The requisition remains on the checkout page and displays a message to the user. The user can choose to click checkout again to bypass the warning and continue. |

## Key Response Requirements

The response from the ERP back to Unimarket must include:

* **Line Number**: To identify which item the result applies to.
* **Result Status**: Valid, Invalid, or Warning.
* **Account Code**: The accounting string being validated.
* **Message**: A description (maximum 255 characters) that the buyer will see, such as "Available funds confirmed" or a specific error message.

## Technical Documentation

Detailed XML message examples and technical specifications for this integration can be found in [Integration Technical Documentation Examples](https://help.unimarket.com/hc/en-us/articles/45852222234393-Webservice-Integration-Technical-Documentation-Examples).

#### Sample Request

```xml
<user-ref identity="user" domain="UNIMARKET_USERNAME_DOMAIN"/>
<validate-account-code-request>
  <validate-account-code-line line-number="1" quantity="1" sku="productcode">
    <unit-price iso-currency-code="NZD">10.00</unit-price>
    <total iso-currency-code="NZD">10.00</total>
    <account-code distribution-percentage="60.0" format-ref="format" value="a-b">
      <part description="a description" part="a format">a</part>
      <part description="b description" part="b format">b</part>
    </account-code>
    <account-code distribution-percentage="40.0" format-ref="format" value="c-d">
      <part description="c description" part="c format">c</part>
      <part description="d description" part="d format">d</part>
    </account-code>
    <organisation-unit-ref code="orgunit" organisation-code="org" parent-code="org"/>
  </validate-account-code-line>
</validate-account-code-request>
```

#### Sample Response

```xml
<?xml version="1.0" encoding="UTF-8"?>
<u1.1:validate-account-code-response xmlns:u1.1="http://www.unimarket.com/schema/unimarket-ws-1.1">
  <u1.1:response code="OK"/>
  <u1.1:account-code-validation line-number="1" result="VALID">
    <u1.1:account-code value="partA1-partA2-partA3-partA4" format-ref="formatcodea"/>
    <u1.1:message>partA1-partA2-partA3-partA4 is valid</u1.1:message>
  </u1.1:account-code-validation>
  <u1.1:account-code-validation line-number="1" result="VALID">
    <u1.1:account-code value="partB1-partB2-partB3-partB4" format-ref="formatcodea"/>
    <u1.1:message>partB1-partB2-partB3-partB4 is valid</u1.1:message>
  </u1.1:account-code-validation>
  <u1.1:account-code-validation line-number="2" result="INVALID">
    <u1.1:account-code value="partB1-partB2-partB3-partB4" format-ref="formatcodea"/>
    <u1.1:message>partB1-partB2-partB3-partB4 is invalid</u1.1:message>
  </u1.1:account-code-validation>
  <u1.1:account-code-validation line-number="3" result="INVALID">
    <u1.1:account-code value="partC1-partC2-partC3-partC4" format-ref="formatcodea"/>
    <u1.1:message>partC1-partC2-partC3-partC4 is invalid</u1.1:message>
  </u1.1:account-code-validation>
</u1.1:validate-account-code-response>
```


# Approval Request/Response Integration

The **Approval Request / Response** messages facilitate a two-way, real-time integration. That allows Unimarket to retrieve approver information directly from an external ERP or Finance system, as a requisition progresses.

## How it Works

When a requisition is created and routed for approval, Unimarket triggers an integration request to the external system to identify the next required approver. This process repeats at each step of the workflow, until all necessary approvals are secured.

## Use Cases

This integration is an ideal alternative to the standard **Approval Configuration Request** (loading master data) in the following scenarios:

* **Dynamic Rules**: The organization has highly complex approval logic in their ERP that would be difficult or inefficient to replicate within Unimarket.
* **Single Source of Truth**: The customer prefers to keep all approval data and hierarchy maintenance exclusively, within their external Finance system.
* **Reduced Maintenance**: It removes the need to perform regular bulk uploads of approval groups, chains, and rulesets into Unimarket. See [Approval Data Uploads via SFTP](/documentation/file-automation-sftp/approval-data-uploads-via-sftp) for details on the file-based alternative.

## Comparison of Approval Methods

| Feature           | Master Data Upload (File Automation) | Approval Request Integration               |
| ----------------- | ------------------------------------ | ------------------------------------------ |
| **Data Location** | Loaded into Unimarket                | Stays in ERP/Finance system                |
| **Processing**    | Rules evaluated by Unimarket         | Rules evaluated by external system         |
| **Speed**         | Instant evaluation within the app    | Dependent on external system response time |
| **Complexity**    | Best for standard hierarchies        | Best for complex, dynamic logic            |

## Technical Requirements

* **Communication**: This is an active, real-time integration point requiring a stable connection via the **Workato On-Premise Agent** or **Unimarket Connector**.
* **Response**: The external system must respond with a valid approver identity, that exists within the Unimarket community.


# Approval Configuration Request Integration

The **Approval Configuration Request** is an inbound integration point used to synchronize approval hierarchies, groups, and financial delegations from an external ERP system into Unimarket. This update is typically scheduled periodically, such as nightly, to ensure both systems remain in sync.

{% hint style="info" %}
For a real-time alternative where approval decisions stay in the external ERP rather than being loaded into Unimarket, see [Approval Request/Response Integration](/documentation/master-data/approval-request-response-integration).
{% endhint %}

## How Approval Chains Work

Unimarket utilizes hierarchical approval chains that define specific approvers and their financial limits.

* **Mapping**: Chains are mapped to either specific **Account Codes** or an **Organization Unit**.
* **Routing**: At checkout, the system identifies the correct chain based on the account or organization used and routes the requisition to the user or group with the appropriate delegation.

## Approval Chain Requirements

To ensure the hierarchical logic functions correctly, chains must adhere to these rules:

* **Unique Naming**: All levels, groups, and chains must have unique names.
* **Limit Logic**: The financial limit of an approver must always be equal to or greater than the limit of the previous approver in the chain.
* **Auto-Provisioning**: Users can be automatically created in Unimarket by providing basic user details within the approver elements.

## Approval Configuration Message Elements

The integration message consists of several optional elements, allowing you to choose which data is managed by the external system versus within Unimarket.

| Element                  | Description                                                                                          | Integration Behavior                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| **Global Configuration** | General settings like wait and reminder periods.                                                     | Omit to manage settings within Unimarket.                                     |
| **Approval Levels**      | Unique dollar amounts and names representing financial delegation.                                   | If included, existing levels in Unimarket are replaced.                       |
| **Approver Groups**      | Unique groups of users or roles (e.g., "CFO") for specific chain points. Group names must be unique. | Optional element. If included, existing groups in Unimarket are replaced.     |
| **Approval Chains**      | The hierarchical list of approvers and groups. Review additional information below.                  | Optional element. If included, existing chains are replaced.                  |
| **Org Unit Mapping**     | Maps chains to specific organization units.                                                          | Optional element. Omit if using account-based approval routing.               |
| **Self Approval**        | Defines specific self-approval limits for users.                                                     | Optional element. If included, other users' self-approval levels are removed. |

## Approval Chain Element Requirements

When configuring approval chains via the **Approval-Configuration-Request** integration, each `approver` element must adhere to specific data requirements and logical rules to ensure requisitions are routed correctly.

#### Approver Identity Options

Each `approver` element in the XML message must identify who is responsible for the approval. You can define this using one of the following elements:

* **user-ref**: References an existing user already present in Unimarket.
* **approver-group-ref**: References a pre-defined group of users where any member can approve the request.
* **user-detail-basic**: Used to **auto-provision** (automatically create) a new user in the system if they do not already exist.

#### Financial Delegation Logic

The system enforces strict hierarchical logic based on the financial limits assigned to each step of the chain:

* **Level Assignment**: Every `approver` element must be associated with an approval level (a named dollar limit) that exists either within the current XML request or previously in Unimarket.
* **Ascending Limits**: The financial limit of any given `approver` element must always be **equal to or greater than** the limit of the preceding `approver` in the chain. This ensures that as a requisition moves through the workflow, it reaches users with progressively higher spending authority.

#### Automatic User Provisioning

To streamline administration, you can create users "on the fly" during the approval data upload. By including the `user-detail-basic` element within an `approver` tag, Unimarket will automatically provision that user with the necessary profile information to participate in the approval workflow.

## Troubleshooting

* **Sync Errors**: If levels or groups are missing after a run, check if those elements were omitted from the XML message, as omitted elements cause the system to retain existing data.
* **Validation**: Ensure that all `user-ref` or `approver-group-ref` entries correspond to existing data or are defined within the same request.

## Sample Approval Illustration

![Sample approval chain illustration](https://help.unimarket.com/hc/article_attachments/53676549141017)


# Authentication

Unimarket offers several authentication mechanisms to provide flexibility for different security and user management needs. These fall into two main categories: **Username/Password Authentication** and **Single Sign-On (SSO)**.

## Username / Password Authentication

These methods involve users entering credentials into a login screen, which are then verified against Unimarket or an external database.

* **Standard Unimarket Authentication**: The default method where users and passwords are created and stored directly in Unimarket. No external setup is required.
* **Active Directory (LDAP) Authentication**: Users enter their credentials on the Unimarket login page, but Unimarket sends a request to the customer's Active Directory server to verify them.
  * **Benefit**: Centralized control — removing a user from AD automatically blocks their Unimarket access.
  * **Note**: Requires opening standard LDAP/LDAPS ports in the customer firewall.
* **Integrated Username/Password (SOAP)**: Credentials entered in Unimarket are sent via a SOAP web service request to a custom endpoint in the customer's environment. This provides full control over custom backend integrations.

## Single Sign-On (SSO) Authentication

[SSO](/documentation/authentication-and-users/setting-up-saml-sso) allows users to access Unimarket without re-entering credentials, if they are already authenticated within their organization's network or portal.

| SSO Method                                                                                 | Description                              | Key Features                                                                                                                                          |
| ------------------------------------------------------------------------------------------ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SAML](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) | Industry-standard XML-based framework.   | Unimarket acts as the Service Provider (SP) and integrates with the customer's Identity Provider (IDP). Can include roles and groups in the response. |
| [CAS](https://www.apereo.org/programs/software/cas)                                        | Central Authentication Service standard. | Allows transparent authentication through the CAS protocol.                                                                                           |
| Unimarket Integrated                                                                       | Custom web service integration.          | Documentation-heavy setup for highly customized portal environments.                                                                                  |

## Key Comparison: User Management

Regardless of the authentication method chosen, user profiles (roles, buyer groups, and org units) must still be managed. This can be done in two ways:

1. **Manual/Admin Management**: A Unimarket Administrator manually configures roles and settings within the application.
2. **Integrated Management**: Using the Unimarket User-Detail integration to externally sync profile details or, in the case of SAML, passing attributes directly in the authentication response.

## What's Next/Related

* [Firewall Requirements](https://help.unimarket.com/hc/en-us/articles/45852280196761-Firewall-Requirements)


# Setting up SAML SSO

To set up **SAML Single Sign-On (SSO)**, Unimarket acts as the Service Provider (SP), and your organization acts as the Identity Provider (IdP). This three-step process establishes a secure "handshake" to allow users to log in seamlessly.

## Step 1: Identify Environment Credentials

Unimarket provides unique credentials for your **Demo** and **Production** environments. You must replace `customerdomain` in the URLs below with your organization's specific Unimarket domain name.

{% hint style="info" %}
**Recommendation:** Always configure and test in the **Demo** environment first before moving to **Production**.
{% endhint %}

#### Demo

* Login URL (Assertion Consumer Service): `https://customerdomain.unimarket-demo.com/saml/login`
* Entity ID (Audience URI): `https://customerdomain.unimarket-demo.com/saml/sp`

#### Production (US)

* Login URL (Assertion Consumer Service): `https://customerdomain.unimarket.com/saml/login`
* Entity ID (Audience URI): `https://customerdomain.unimarket.com/saml/sp`

#### Production (AU)

* Login URL (Assertion Consumer Service): `https://customerdomain.unimarket.com.au/saml/login`
* Entity ID (Audience URI): `https://customerdomain.unimarket.com.au/saml/sp`

#### Production (NZ)

* Login URL (Assertion Consumer Service): `https://customerdomain.unimarket.co.nz/saml/login`
* Entity ID (Audience URI): `https://customerdomain.unimarket.co.nz/saml/sp`

## Step 2: Exchange Metadata

The technical "handshake" is established through an exchange of XML metadata files.

1. **Customer Action**: Provide Unimarket with your **IdP Metadata** (via URL or XML file).
2. **Unimarket Action**: Unimarket plugs your metadata into the platform.
3. **Result**: This generates the **Unimarket SP Metadata**, which is then shared back with you to complete your internal configuration.

{% hint style="info" %}
**Important:** Unimarket cannot generate its metadata until your IdP metadata has been successfully uploaded into our system.
{% endhint %}

## Step 3: Attributes and Provisioning

Once the connection is established, you must align the data being passed between systems.

* **Attribute Mapping**: Ensure that user identifiers (like email or employee ID) are mapped identically on both ends.
* **Provisioning Logic**: Decide on your user management strategy:
  * **Auto-Provision / Create Users "On"**: New users are automatically created in Unimarket upon their first successful SSO login.
  * **Auto-Provision / Create Users "Off"**: Users must already exist in Unimarket (via manual entry or file upload) to log in via SSO.
* **Authentication Age**: Confirm the maximum session/authentication age allowed. This value **must match** on both the Customer and Unimarket sides, to prevent login errors.

## Troubleshooting the "Handshake"

If the initial test fails, verify the following:

* **Certificates**: Ensure the signing certificates in the metadata have not expired.
* **Clock Skew**: Check that the system clocks on your IdP server are synchronized (NTP).
* **Firewalls**: Ensure your network allows outbound requests to the Unimarket login URLs.


# User API (JSON)

The **Unimarket User REST API** allows for the real-time synchronization of user data between your internal systems (like an HRIS or ERP) and Unimarket. This interface supports single-user updates as well as initial bulk loads by processing one request per user.

## REST API Operations

The API provides three primary methods to manage user lifecycles.

* **Get User (GET)**: Fetches a user by their `username`. This is often used as a preliminary check to determine if a user exists before deciding whether to use a **Create** or **Update** operation.
* **Create User (POST)**: Adds a new user record. If you do not provide a unique `id` (UUID), Unimarket will generate one for you.
* **Update User (PUT)**: Modifies an existing user record. This operation requires the Unimarket User UUID (`id`) to identify the specific record to be changed.
* **The URL for the API is**: `api.unimarket.com` (or `.co.nz`, `.com.au`)

#### Message Details

| Name                        | Data Type       | Description                                                                                                                                                                                                                      |
| --------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **id**                      | string(255)     | Unimarket unique ID for a user (stays the same even if the username changes). Unimarket will generate this ID if it is not provided for the create operation but the call needs to ensure it is unique and it cannot be changed. |
| **username**                | string(255)     | Username                                                                                                                                                                                                                         |
| **externalId**              | string(255)     | An alternative username. This will hold the user's external ID.                                                                                                                                                                  |
| **firstName**               | string(255)     | The user's first name.                                                                                                                                                                                                           |
| **lastName**                | string(255)     | The user's last name.                                                                                                                                                                                                            |
| **displayName**             | string(255)     | A display name to show when searching for buyers to reassign to. This could include the buyer's name, email address and/or default location code                                                                                 |
| **email**                   | string(255)     | The user's email address.                                                                                                                                                                                                        |
| **phone**                   | string(255)     | The user's phone number.                                                                                                                                                                                                         |
| **enabled**                 | boolean         | Users whose accounts are not enabled will be prevented from logging into Unimarket.                                                                                                                                              |
| **organisationsUnits**      | array of object | One per Organisation Unit. These must be unique.                                                                                                                                                                                 |
| **organisationsUnits.code** | string(255)     | Organisation Unit codes, each of which is a string(255)                                                                                                                                                                          |
| **roles**                   | array of object | One per role.                                                                                                                                                                                                                    |
| **roles.code**              | string(255)     | One of the role values defined in [User Detail Request](broken://pages/feK3vRcvsuyWmwLm07dH).                                                                                                                                    |
| **buyerGroups**             | array of object | One per buyer group that the user is a member of. These control a user's access to suppliers and catalogues.                                                                                                                     |
| **buyerGroups.code**        | string(255)     | Buyer Groups                                                                                                                                                                                                                     |
| **attributes**              | array of object | One per custom attribute                                                                                                                                                                                                         |
| **attributes.name**         | string(20)      | Name of the attribute                                                                                                                                                                                                            |
| **attributes.value**        | string(20)      | Value of the attribute                                                                                                                                                                                                           |
| **approverGroups**          | array of object | One per approver group that the user is a member of.                                                                                                                                                                             |
| **approverGroups.code**     | string(255)     | Approver Groups                                                                                                                                                                                                                  |

#### Example Message

```json
{
  "id": "278d1da1-3ebd-11e8-9726-9cb6d0f65f6c",
  "username": "jsmith001",
  "externalId": "john-smith-123",
  "firstName": "John",
  "lastName": "Smith",
  "displayName": "John Smith john.smith School Administrative Officer",
  "email": "john.smith@community.com",
  "phone": "(00) 1234-5678",
  "enabled": true,
  "organisationUnits": [
    { "code": "1010" },
    { "code": "2256" }
  ],
  "roles": [
    { "code": "COMMUNITY_BUYER" },
    { "code": "COMMUNITY_RFQ_CREATE" }
  ],
  "buyerGroups": [
    { "code": "GENERAL" },
    { "code": "CORPORATE" }
  ],
  "attributes": [
    { "name": "Contractor", "value": "true" }
  ]
}
```

## Authentication & Standard Headers

To ensure secure communication, Unimarket requires two specific HTTP headers for every request. These headers serve as your credentials and must be included for the upload to be processed.

| Header                   | Description                                                    | Required / Secret |
| ------------------------ | -------------------------------------------------------------- | ----------------- |
| **Unimarket-Account-ID** | A unique identifier for your Community. Provided by Unimarket. | Public Identifier |
| **Unimarket-API-Key**    | A system-generated string that acts as a secure password.      | **Secret**        |

{% hint style="info" %}
**Security Tip:** The API Key can be locked to specific IP addresses. By restricting it to your server's IP, you ensure that even if the key is leaked, unauthorized requests from other locations will be rejected.
{% endhint %}

## Understanding HTTP Status Codes

Unimarket uses standard HTTP status codes to communicate the outcome of your request. Always check these codes in your integration logic to handle errors effectively.

* **200 (Success)**: The operation was completed successfully.
* **400 (Bad Request)**: The request failed due to incorrect data or formatting. A descriptive error message is usually included in the response body.
* **401 (Unauthorized)**: Authentication failed. Check your `Unimarket-Account-ID` and `Unimarket-API-Key`.
* **404 (Not Found)**: Returned during a **GET** or **PUT** if the specified user does not exist in Unimarket.

## Core Operations

#### 1. Get User (GET)

Used to retrieve the current JSON profile of a specific user.

* **Endpoint**: `/v1/users/username/{username}`
* **Logic**: If the user is found, Unimarket returns the full user object. If not, a `404` is returned.

**Sample Get User JSON GET request (will look similar to this):**

```
GET /v1/users/username/jsmith001 HTTP/1.1
Host: api.unimarket.com
Unimarket-Account-ID: <account id>
Unimarket-API-Key: <api key>
```

#### 2. Create User (POST)

Used to add a new user to the Unimarket community.

* **Endpoint**: `/v1/users`
* **ID Handling**: The `id` field is optional. If you provide one, it must be unique. If omitted, Unimarket generates a unique ID and returns it in the response.
* **Response**: Unimarket returns the finalized JSON user object. This is important as some fields may be modified by system constraints (e.g., auto-added roles or trimmed text).

**Sample Create User POST request (will look similar to this):**

```
POST /v1/users HTTP/1.1
Host: api.unimarket.com
Content-Type: application/json; charset=utf-8
Content-Length: <size of json file>
Unimarket-Account-ID: <account id>
Unimarket-API-Key: <api key>

<JSON DATA>
```

#### 3. Update User (PUT)

Used to modify an existing user's information.

* **Endpoint**: `/v1/users`
* **Identification**: The system uses the `id` field within the JSON body to identify which record to update.

**Sample Update User PUT request (will look similar to this):**

```
PUT /v1/users HTTP/1.1
Host: api.unimarket.com
Content-Type: application/json; charset=utf-8
Content-Length: <size of json file>
Unimarket-Account-ID: <account id>
Unimarket-API-Key: <api key>
```

## API Key Security & IP Whitelisting

A **Unimarket API Key** functions similarly to a highly secure password for your integration. It is specifically generated during the integration setup process to authorize RESTful requests to the Unimarket platform.

### Security via IP Whitelisting

To prevent unauthorized access, Unimarket allows you to tie an API Key to specific **Trusted IP Addresses**. This creates a "network perimeter" around your integration.

* **Restricted Access**: When whitelisting is enabled, Unimarket only accepts requests if they originate from your pre-approved server IP addresses.
* **Malicious Blocking**: Even if your API Key is accidentally exposed (e.g., leaked in a code repository), a malicious actor would be unable to use it, because their requests would originate from an unapproved IP, resulting in an immediate rejection.

### Key Management Best Practices

Because an API Key grants significant access to your Unimarket community, follow these security protocols:

* **Confidentiality**: Store your API Key in secure environment variables or a secret management tool. Never hardcode keys directly into your integration scripts.
* **Static IPs**: Ensure your organization uses **Static IPs** for its integration servers. If your IP address is dynamic (changes frequently), the whitelisting feature may cause intermittent connection failures.
* **Regular Rotation**: As a preventive measure, it is recommended to regularly generate new keys and deactivate old ones, similar to updating a corporate password.

### Requesting Your Key

Since API Keys are not generated by users, you must coordinate with the Unimarket team during your **Integration Setup**:

1. **Contact Support**: Reach out to your Unimarket technical account manager or support representative.
2. **Provide IP Details**: Provide the static IP addresses of the servers that will be making the API calls (e.g., your ERP or middleware server).
3. **Secure Delivery**: Unimarket will generate and securely transmit the key to your authorized administrator.

## Implementation Example: Create User Request

```
POST /v1/users HTTP/1.1
Host: api.unimarket.com
Content-Type: application/json; charset=utf-8
Unimarket-Account-ID: YOUR_ACCOUNT_ID
Unimarket-API-Key: YOUR_SECRET_API_KEY

{
  "username": "jsmith001",
  "firstName": "Jane",
  "lastName": "Smith",
  "email": "jane.smith@school.edu",
  "enabled": true,
  "roles": [{ "code": "COMMUNITY_BUYER" }]
}
```


# eMarketplace Punch-out (ERP to Unimarket)

Unimarket can be configured as a centralized **eMarketplace** that sits on top of your existing ERP system (such as Workday, PeopleSoft, Oracle, or TechnologyOne). In this setup, your ERP system treats Unimarket as a single **Punchout (Roundtrip)** destination.

## Why Use a Marketplace Punchout?

The traditional method of integrating individual suppliers into an ERP is costly and inefficient. Each new supplier requires a separate firewall configuration, Punchout setup, and PO/Invoice integration.

**Benefits of the Marketplace approach:**

* **Single Integration:** Access all your suppliers through one connection to Unimarket.
* **Lower Maintenance:** Adding or changing suppliers requires no further technical integration on the ERP side.
* **Enhanced Security:** Minimizes the number of "holes" in your corporate firewall by consolidating third-party traffic.

## The Punchout Process

The integration adheres to the **cXML standard**, making it compatible with any ERP that supports cXML. Download a [process overview](https://help.unimarket.com/hc/en-us/article_attachments/45852236062745) of the punch-out process.

{% hint style="info" %}
For the full request/response message walkthrough and additional XML examples, see [ERP Punchout to Unimarket (Technical Information)](/documentation/punchout/erp-punchout-to-unimarket-technical-information).
{% endhint %}

#### 1. Punchout Setup Request

When a user clicks the Unimarket link in your ERP, the ERP sends a `PunchOutSetupRequest`. This message authenticates the session and identifies the user.

**Key XML requirements:**

* **Sender Credentials:** Contains the `Identity` and `SharedSecret` for authentication.
* **Extrinsics:** Must include the user's email, first name, and last name to determine which Unimarket cart to use.
* **BrowserFormPost:** The URL where Unimarket will post the cart data back to the ERP.

#### 2. Punchout Cart Return (PunchOutOrderMessage)

Once the user finishes shopping in Unimarket, the marketplace sends a `PunchOutOrderMessage` back to the ERP. This "returns" the items to the ERP requisition.

**Key data returned:**

* **ItemDetail:** Includes unit price, description, unit of measure, and UNSPSC classification.
* **SupplierID:** Identifies which marketplace supplier the item belongs to.
* **BuyerCookie:** Matches the return message to the original setup request session.

## Setup and Testing

To successfully establish the "handshake" between your ERP and Unimarket:

1. **Retrieve Credentials:** Log in to Unimarket and navigate to **Edit Community > Integration** to find your specific credentials.
2. **Configure ERP:** Set the Identity, Shared Secret, and Punchout URL in your ERP's supplier maintenance module.
3. **Test the Connection:** Use the [Unimarket Roundtrip Tester](https://akl-office.unimarket.co.nz:7443/roundtrip-tester/) to simulate a request and verify the XML structure.

## Technical Resources

For full schema details and DTD definitions, refer to the following:

* [cXML User Guide](https://help.unimarket.com/hc/en-us/article_attachments/45852214985113): For deep-dives into message structures.
* **cXML.dtd:** The official document type definition for message validation, available in the downloads below.

### Sample Punchout Setup Request

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.020/cXML.dtd">
<cXML payloadID="payloadId" timestamp="2020-01-06T13:50:13+13:00" version="1.2" xml:lang="en">
    <Header>
        <From>
            <Credential domain="DUNS">
                <!-- 1. ENTER VALUE HERE used to get tenant for authentication based on Domain options for DUNS, Network ID or others -->
                <Identity> 8 digit ID or other based on Domain </Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="unimarket-code">
                <Identity> 8 digit ID or other based on Domain </Identity>
            </Credential>
        </To>
        <Sender>
            <Credential domain="unimarket-user">
                <!-- 2. ENTER VALUE HERE used to get username for authentication -->
                <Identity>9520969d-e16b-46db-9d03-859874d883f6</Identity>
                <!-- 3. ENTER VALUE HERE used to get password for authentication -->
                <SharedSecret>password1</SharedSecret>
            </Credential>
            <UserAgent>Initiating System or ERP</UserAgent>
        </Sender>
    </Header>
    <Request deploymentMode="production">
        <PunchOutSetupRequest operation="create">
            <BuyerCookie>Long UUID created for each session</BuyerCookie>
            <!-- 4. ENTER VALUE HERE unimarket username (to determine whose cart should be used) -->
            <Extrinsic name="User">john.doe@school.edu</Extrinsic>
            <Extrinsic name="email">john.doe@school.edu</Extrinsic>
            <Extrinsic name="FirstName">John</Extrinsic>
            <Extrinsic name="LastName">Doe</Extrinsic>
            <BrowserFormPost>
                <URL>http://admin.unimarket-demo.com/roundtrip-tester-module/receive-cxml-cart.jsp</URL>
            </BrowserFormPost>
        </PunchOutSetupRequest>
    </Request>
</cXML>
```

### Sample Punchout Cart Return (PunchOutOrderMessage)

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.020/cXML.dtd">
<cXML payloadID="payloadId" timestamp="2020-01-06T13:50:13+13:00" version="1.2" xml:lang="en">
    <Header>
        <From>
            <Credential domain="DUNS">
                <!-- 1. ENTER VALUE HERE used to get tenant for authentication based on Domain options for DUNS, Network ID or others -->
                <Identity> 8 digit ID or other based on Domain </Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="unimarket-code">
                <Identity> 8 digit ID or other based on Domain </Identity>
            </Credential>
        </To>
        <Sender>
            <Credential domain="unimarket-user">
                <!-- 2. ENTER VALUE HERE used to get username for authentication -->
                <Identity>9520969d-e16b-46db-9d03-859874d883f6</Identity>
                <!-- 3. ENTER VALUE HERE used to get password for authentication -->
                <SharedSecret>password1</SharedSecret>
            </Credential>
            <UserAgent>Initiating System or ERP</UserAgent>
        </Sender>
    </Header>
    <Message>
        <PunchOutOrderMessage>
            <BuyerCookie>a05918eb-556e-4269-a612-dffac9b8d30d</BuyerCookie>
            <PunchOutOrderMessageHeader operationAllowed="create">
                <Total>
                    <Money currency="USD">32.29</Money>
                </Total>
                <Shipping>
                    <Money currency="USD">0.00</Money>
                    <Description xml:lang="en">Standard Shipping</Description>
                </Shipping>
            </PunchOutOrderMessageHeader>
            <ItemIn quantity="1">
                <ItemID>
                    <SupplierPartID>LS1234</SupplierPartID>
                    <SupplierPartAuxiliaryID/>
                    <IdReference domain="unimarketProductId" identifier="Long UUID number"/>
                </ItemID>
                <ItemDetail>
                    <UnitPrice>
                        <Money currency="USD">32.29</Money>
                    </UnitPrice>
                    <Description xml:lang="en">Product Text Description</Description>
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <Classification domain="UNSPSC">49161506</Classification>
                </ItemDetail>
                <SupplierID domain="SupplierNumber">BSHC</SupplierID>
            </ItemIn>
        </PunchOutOrderMessage>
    </Message>
</cXML>
```

### Downloads

* [cXMLUsersGuide.pdf](https://help.unimarket.com/hc/en-us/article_attachments/45852214985113) (7 MB)
* [cXML.dtd](https://help.unimarket.com/hc/en-us/article_attachments/45852230028057) (200 KB)
* [Unimarket\_Marketplace\_Process.pdf](https://help.unimarket.com/hc/en-us/article_attachments/45852236062745) (40 KB)


# ERP Punchout to Unimarket (Technical Information)

The **Punchout (Roundtrip) process** is a standardized method for a user to leave their internal ERP system, shop within the Unimarket eMarketplace, and return a populated shopping cart to their ERP for approval and requisitioning.

{% hint style="info" %}
For a business-level overview of why and how to set up a marketplace punchout, see [eMarketplace Punch-out (ERP to Unimarket)](/documentation/punchout/emarketplace-punchout-erp-to-unimarket).
{% endhint %}

## The Three-Phase Punchout Process

The entire interaction happens through three primary cXML messages:

![Punchout process diagram](https://help.unimarket.com/hc/article_attachments/53678241026969)

### 1. Punchout Setup Request (ERP → Unimarket)

The ERP initiates a session by sending an HTTPS POST request to Unimarket. This message establishes the user's identity and provides a "return address" for the cart.

**Key attributes:**

* **Community ID:** Identifies the specific Unimarket customer community.
* **System Credentials:** The `Identity` and `SharedSecret` for authentication.
* **Buyer Username:** The specific user shopping in the session.
* **BrowserFormPost:** The URL where Unimarket must send the final shopping cart data.

**Example request:**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.020/cXML.dtd">
<cXML payloadID="payloadId" timestamp="2009-11-06T13:50:13+13:00" version="1.2" xml:lang="en">
    <Header>
        <From>
            <Credential domain="unimarket-id">
                <Identity>cb897379-12df-4a5f-ab87-05709517f44b</Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="unimarket-id">
                <Identity/>
            </Credential>
        </To>
        <Sender>
            <Credential domain="unimarket-user">
                <Identity>5cd5ed4c-09c3-4c51-871d-3cde84e09556</Identity>
                <SharedSecret>SuperSecretPasswordHere</SharedSecret>
            </Credential>
            <UserAgent>Unimarket Testing System.</UserAgent>
        </Sender>
    </Header>
    <Request deploymentMode="production">
        <PunchOutSetupRequest operation="create">
            <BuyerCookie>NA</BuyerCookie>
            <Extrinsic name="User">TestPunchoutUser</Extrinsic>
            <BrowserFormPost>
                <URL>https://your.procurement.system.com</URL>
            </BrowserFormPost>
        </PunchOutSetupRequest>
    </Request>
</cXML>
```

### 2. Punchout Setup Response (Unimarket → ERP)

Once Unimarket authenticates the request, it creates a unique session and responds immediately.

* **The StartPage URL:** This is the most critical element of the response. The ERP must take this URL and open it in the user's web browser. This URL automatically logs the user into the Unimarket home page without requiring a second login.

**Example response:**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="c7c69828-ab1a-4ab0-a7a1-f77a199d9c3d" timestamp="2020-05-01T13:42:04.601+12:00" version="1.2.038" xml:lang="en">
    <Response>
        <Status code="200" text="success"/>
        <PunchOutSetupResponse>
            <StartPage>
                <URL>https://miketest.unimarket-demo.com/app/home?cid=c7c69828-ab1a-4ab0-a7a1-f77a199d9c3d</URL>
            </StartPage>
        </PunchOutSetupResponse>
    </Response>
</cXML>
```

### 3. Punchout Order Message (Unimarket → ERP)

After the user selects their items and clicks "Checkout" within Unimarket, the system redirects the user's browser back to the ERP.

* **Mechanism:** Unimarket performs a POST to the `BrowserFormPost` URL provided in Phase 1.
* **Data Payload:** The cart details are included in a parameter named `cxml-urlencoded`.
* **Requirement:** The ERP system must URL-decode this parameter to retrieve the valid cXML, which contains line-item details like SKU, quantity, price, and UNSPSC codes.

**Example Punchout Order Message (URL-encoded):**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.021/cXML.dtd">
<cXML payloadID="c7c69828-ab1a-4ab0-a7a1-f77a199d9c3d" timestamp="2020-05-01T13:42:52.536+12:00" version="1.2.021" xml:lang="en">
    <Header>
        <From>
            <Credential domain="unimarket-id">
                <Identity>cb897379-12df-4a5f-ab87-05709517f44b</Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="unimarket-id">
                <Identity/>
            </Credential>
        </To>
        <Sender>
            <Credential domain="unimarket-id">
                <Identity>cb897379-12df-4a5f-ab87-05709517f44b</Identity>
                <SharedSecret>SuperSecretPasswordHere</SharedSecret>
            </Credential>
            <UserAgent>UMKT</UserAgent>
        </Sender>
    </Header>
    <Message>
        <PunchOutOrderMessage>
            <BuyerCookie>NA</BuyerCookie>
            <PunchOutOrderMessageHeader operationAllowed="create">
                <Total>
                    <Money currency="NZD">4.00</Money>
                </Total>
                <Shipping>
                    <Money currency="NZD">20.00</Money>
                    <Description xml:lang="en">$20.00 per order</Description>
                </Shipping>
            </PunchOutOrderMessageHeader>
            <ItemIn quantity="4">
                <ItemID>
                    <SupplierPartID>1000010</SupplierPartID>
                    <SupplierPartAuxiliaryID/>
                    <IdReference domain="unimarketProductId" identifier="ca1be02d-60f2-47ce-9090-1add34657995"/>
                </ItemID>
                <ItemDetail>
                    <UnitPrice>
                        <Money currency="NZD">1.00</Money>
                    </UnitPrice>
                    <Description xml:lang="en">Product Code 10</Description>
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <Classification domain="UNSPSC">44000000</Classification>
                </ItemDetail>
                <SupplierID domain="DUNS"/>
            </ItemIn>
        </PunchOutOrderMessage>
    </Message>
</cXML>
```

**Example Punchout Order Message (decoded to XML):**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.021/cXML.dtd">
<cXML payloadID="c7c69828-ab1a-4ab0-a7a1-f77a199d9c3d" timestamp="2020-05-01T13:42:52.536+12:00" version="1.2.021" xml:lang="en">
    <Header>
        <From>
            <Credential domain="unimarket-id">
                <Identity>cb897379-12df-4a5f-ab87-05709517f44b</Identity>
            </Credential>
        </From>
        <To>
            <Credential domain="unimarket-id">
                <Identity/>
            </Credential>
        </To>
        <Sender>
            <Credential domain="unimarket-id">
                <Identity>cb897379-12df-4a5f-ab87-05709517f44b</Identity>
                <SharedSecret>SuperSecretPasswordHere</SharedSecret>
            </Credential>
            <UserAgent>UMKT</UserAgent>
        </Sender>
    </Header>
    <Message>
        <PunchOutOrderMessage>
            <BuyerCookie>NA</BuyerCookie>
            <PunchOutOrderMessageHeader operationAllowed="create">
                <Total>
                    <Money currency="NZD">4.00</Money>
                </Total>
                <Shipping>
                    <Money currency="NZD">20.00</Money>
                    <Description xml:lang="en">$20.00 per order</Description>
                </Shipping>
            </PunchOutOrderMessageHeader>
            <ItemIn quantity="4">
                <ItemID>
                    <SupplierPartID>1000010</SupplierPartID>
                    <SupplierPartAuxiliaryID/>
                    <IdReference domain="unimarketProductId" identifier="ca1be02d-60f2-47ce-9090-1add34657995"/>
                </ItemID>
                <ItemDetail>
                    <UnitPrice>
                        <Money currency="NZD">1.00</Money>
                    </UnitPrice>
                    <Description xml:lang="en">Product Code 10</Description>
                    <UnitOfMeasure>EA</UnitOfMeasure>
                    <Classification domain="UNSPSC">44000000</Classification>
                </ItemDetail>
                <SupplierID domain="DUNS"/>
            </ItemIn>
        </PunchOutOrderMessage>
    </Message>
</cXML>
```

## Technical Implementation Details

### Setup Request Configuration

The request must be sent as an HTTPS POST to the community-specific web service URL (e.g., `https://miketest.unimarket-demo.com/ws`).

{% hint style="info" %}
**Example setup logic:** If the `From` identity is `cb897379...`, the Unimarket system recognizes the specific tenant and validates the `SharedSecret` against the credentials stored in the community's Integration settings.
{% endhint %}

### The Return Handshake

The return process is "transparent" to the user. When they finish shopping, Unimarket bundles the `PunchOutOrderMessage` (containing the cart) and sends it via the user's browser back to the ERP. This allows the ERP to "grab" the items and populate a draft requisition automatically.

## Troubleshooting Common Issues

* **401 Unauthorized:** Usually caused by a mismatch in the `SharedSecret` or a missing `unimarket-id` in the header.
* **StartPage Not Opening:** Ensure the ERP is configured to handle the `PunchOutSetupResponse` synchronously and can redirect the browser session to the provided URL.
* **Empty Cart on Return:** Check that the `BuyerCookie` in the Order Message matches the cookie sent in the initial Setup Request.


# Email Authentication

Unimarket uses **Postmark** to manage email delivery, ensuring high security, reliable delivery rates, and professional bounce handling. To verify that emails sent by the system are authorized by your organization, Unimarket utilizes **DKIM** (DomainKeys Identified Mail) and offers a **Custom Return Path** configuration.

## Email Authentication via DKIM

DKIM is the industry standard for email authentication. It uses a digital signature to prove to the recipient's mail server that the email was indeed sent by an authorized sender and has not been altered in transit. This setup ensures that when a supplier receives a PO notification, it appears to come directly from your domain (e.g., `procurement@customerdomain.com`).

## Understanding "Mail From" vs. "From"

By default, email clients may display Unimarket emails in two different ways depending on your technical setup:

* **Standard Setup (Default)**: Unimarket sets the "MAIL FROM" header to `bounce@customer.unimarket.com`. This ensures that if an email bounces, Unimarket can track it.
  * **User Experience**: The recipient may see `example@customerdomain.com via unimarket.com`.
* **Custom Return Path (Recommended)**: This authorizes Unimarket to send emails entirely on your behalf.
  * **User Experience**: The recipient sees only `example@customerdomain.com`. The "via Unimarket" label is removed.

## Return Path Setup (White Labeling)

Configuring a custom Return Path aligns your "MAIL FROM" address with your "FROM" address. This is the best way to prevent your emails from being flagged as spam by aggressive filters.

### 1. DNS Configuration (CNAME)

You must create a **CNAME** entry in your DNS settings that points your custom bounce domain to Unimarket.

* **Target Domain**: `bounce.customerdomain.com`
* **Points to**: `unimarket.com`

### 2. Domain Alignment

The Return Path must share the same suffix as your primary email domain.

* **If your email is**: `user@customerdomain.com`
* **Your Return Path should be**: `bounce@pm.customerdomain.com` or `bounce@bounce.customerdomain.com`.

## Implementation Steps for Administrators

1. **Coordinate with IT**: Provide your IT or Network team with the CNAME requirements mentioned above.
2. **Access Settings**: Once the DNS record is live, go to **Administration > Settings > Profile**.
3. **Enter Return Path**: Locate the **Email Delivery Authentication** section and enter your Return Path address.
4. **Validate**: Click the **Validate Return Path** button. The system will check your DNS to ensure the CNAME is correctly mapped.

## Benefits of Custom Return Path

* **Professional Branding**: Removes the "via unimarket.com" tag from the sender field.
* **Improved Deliverability**: Higher "sender reputation" since the email headers are fully aligned with your brand.
* **DMARC Compliance**: Helps your organization meet strict DMARC policies by ensuring the Return Path domain matches the From domain.

{% hint style="info" %}
Email authentication (DKIM and Return Path) works alongside SPF at the DNS level. See [Simplifying SPF Maintenance](/documentation/general-technical/simplifying-spf-maintenance) for details on authorizing Unimarket's mail servers via SPF.
{% endhint %}


# Simplifying SPF Maintenance

An **SPF (Sender Policy Framework)** record is a type of DNS record that identifies which mail servers are authorized to send email on behalf of your domain. This prevents "spoofing" and ensures that purchase orders and notifications sent from Unimarket are not flagged as spam by your recipients' mail servers.

## Using the SPF "Include" Statement

Unimarket provides a global **Include** statement. The primary advantage of using this method is that your technical team will not need to manually update your DNS records if Unimarket adds new mail servers or changes its infrastructure in the future.

{% hint style="info" %}
**Important Availability Note:** While Unimarket continues to support existing customers using this method, the SPF Include option is **no longer available for new customers** or for existing customers to switch to if they are not already using it.
{% endhint %}

## Implementation

To authorize Unimarket, add the following to your existing SPF record:

```
include:_spf.unimarket.com
```

**Example of a completed SPF record:**

```
v=spf1 mx include:_spf.unimarket.com ~all
```

## Direct IP Address Authorization

If your organization does not use the "Include" method, you may need to whitelist the specific IP addresses of the Unimarket production email servers relevant to your region.

| Production Region      | IP Address      |
| ---------------------- | --------------- |
| **Australia (AU)**     | `35.201.28.55`  |
| **New Zealand (NZ)**   | `35.244.97.153` |
| **United States (US)** | `34.72.64.51`   |

## Why SPF Alignment Matters

* **Deliverability**: Without SPF authorization, your suppliers' email servers may reject purchase orders sent from Unimarket, assuming they are fraudulent.
* **Security**: SPF helps protect your brand reputation by making it harder for malicious actors to impersonate your organization's procurement department.
* **Compliance**: Proper SPF records are a prerequisite for advanced security protocols like **DMARC**.

## Troubleshooting

If you have added the record but emails are still being blocked:

1. **SPF Record Limit**: Ensure your domain has no more than 10 "DNS lookups" in its SPF record; adding too many includes can cause the check to fail.
2. **Multiple Records**: Ensure you only have **one** SPF record (starting with `v=spf1`). Having multiple SPF records on a single domain is invalid.
3. **Propagation**: DNS changes can take up to 24–48 hours to fully propagate across the internet.

{% hint style="info" %}
SPF works alongside DKIM and Return Path authentication to establish full email trust. See [Email Authentication](/documentation/general-technical/email-authentication) for details on DKIM and Custom Return Path setup.
{% endhint %}


# Webservice Integration Technical Documentation & Examples

Unimarket utilizes two primary messaging standards for integration: **uXML (Unimarket XML)** for proprietary platform functions and **cXML (Commerce XML)** for industry-standard procurement transactions.

## uXML Integration Points

uXML is used for specialized platform functions that fall outside the standard cXML scope. These are typically used to synchronize master data or handle real-time validation between Unimarket and your ERP.

### Key uXML Message Types

* **Account Code Validation**: Real-time synchronous check for budget and GL validity at checkout.
* **Approval Configuration**: Inbound sync of approval chains, levels, and groups.
* **User Details**: Synchronization of user roles and organization units from a master identity source.
* **General Ledger (GL) Transactions**: Sending accounting strings for commitments (orders) and accruals (receipts).

uXML requests are typically sent over [POX](/documentation/general-technical/sending-pox-messages-to-unimarket) or [SOAP](/documentation/general-technical/sending-soap-messages-to-unimarket) transports.

## cXML Integration Points

Unimarket adheres to the global **cXML standard** (v1.2.021+) for high-volume transactional data. This ensures compatibility with thousands of suppliers and major ERP systems like Workday, Oracle, and SAP.

### Common cXML Integrations

* **Punchout (Roundtrip)**: Allows users to "punch out" from their ERP into Unimarket or from Unimarket into a supplier's website.
* **OrderRequest**: The standard message used to transmit Purchase Order details to suppliers or external finance systems. See [Purchase Order (OrderRequest) Technical Documentation](/documentation/transactions-orders-receipts-invoices-and-more/order-request-technical-documentation).
* **InvoiceDetailRequest**: Inbound electronic invoices (eInvoicing) sent from suppliers to Unimarket for matching and payment.
* **ShipNoticeRequest**: Outbound notification from suppliers regarding shipment status.

## Integration Documentation Resources

For technical teams and developers, the following resources are essential for mapping and testing:

| Resource Type                | Description                                                                                                                                                                                                                                                                                   |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Webservice Documentation** | Comprehensive guides for configuring endpoints and security. [View the documentation](http://admin.unimarket.com/unimarket-integration-docu/1.1/index.html) or [download the complete documentation and examples](https://admin.unimarket.com/unimarket-integration-docu_1.1.zip) (zip file). |
| **XML Schema (XSD)**         | Formal definitions for validating uXML messages.                                                                                                                                                                                                                                              |

## Which Standard Should You Use?

* Use **cXML** if you are setting up standard **Order or Invoice** automation with a major supplier or ERP.
* Use **uXML** for **Platform Administration**, such as synchronizing your budget data, approval hierarchies, or user role assignments.

{% hint style="info" %}
For details on transporting uXML requests, see [Sending POX (Plain Old XML) Messages to Unimarket](/documentation/general-technical/sending-pox-messages-to-unimarket) and [Sending SOAP Messages to Unimarket](/documentation/general-technical/sending-soap-messages-to-unimarket).
{% endhint %}


# Sending POX (Plain Old XML) Messages to Unimarket

**POX (Plain Old XML)** is a simplified protocol used for communicating with Unimarket when full SOAP overhead is not required. It is primarily used for administrative and data-sync integrations like user provisioning, budget checks, and approval configurations.

## The POX Message Structure

Unlike standard cXML, which includes its own authentication headers, POX messages must be wrapped in a specific **pox-envelope**. This envelope contains two main parts:

* **Authentication Header**: Contains your tenant identifier, username, and shared secret.
* **Request Body**: Contains the actual uXML request (e.g., a budget check or user update).

## Implementation Guide

To get started with POX integration, follow these four steps:

### Step 1: Obtain Credentials

Contact Unimarket to receive the following mandatory security details:

* **Tenant Identifier**: Your unique community or supplier ID.
* **Integration Username**: The specific service account name.
* **Shared Secret**: The secure password for the integration.

### Step 2: Identify the Request Type

Determine which uXML element you need to send. Common top-level elements include:

* `validate-account-code-request`
* `user-detail-request`
* `approval-configuration-request`

### Step 3: Construct the Envelope

Wrap your request and credentials in the `pox-envelope`.

**POX Envelope Example:**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<u:pox-envelope xmlns:u="http://www.unimarket.com/schema/unimarket-ws">
    <u:header>
        <u:authentication>
            <!-- Unique identifier of the Unimarket tenant (community or supplier) -->
            <u:tenant-ref identity="7f251a49-bd4d-4527-b234-d3d4a3e14e1b" domain="UNIMARKET_ID_DOMAIN"/>
            <u:sender>
                <!-- Unique identifier of the Unimarket integration user -->
                <u:user-ref identity="6cd91828-a4f4-4b70-b9ac-5f6f4d9e4082" domain="UNIMARKET_USERNAME_DOMAIN"/>
                <!-- Password used to authenticate the request -->
                <u:shared-secret>password1</u:shared-secret>
            </u:sender>
        </u:authentication>
    </u:header>
    <u:body>
        <create-quote-request xmlns='http://www.unimarket.com/schema/unimarket-ws'>
            <header>
                <to>
                    <!-- Unique Unimarket username of the user the quote is for -->
                    <user-ref identity='user1'/>
                    <!-- Unique Unimarket code of the user's community -->
                    <tenant-ref identity='AACC'/>
                </to>
                <summary>summary value</summary>
                <reference-code>quote ref value</reference-code>
                <expiry>2009-08-01T15:30:00</expiry>
            </header>
            <!-- e.g. line with tax -->
            <line quantity="2">
                <code>product code</code>
                <name>name value</name>
                <description>desc value</description>
                <unit-of-measure unit="EA"/>
                <unit-price iso-currency-code="USD">50.00</unit-price>
                <subtotal iso-currency-code="USD">100.00</subtotal>
                <tax iso-currency-code="USD">15</tax>
                <total iso-currency-code="USD">115</total>
            </line>
        </create-quote-request>
    </u:body>
</u:pox-envelope>
```

### Step 4: Submit to the Endpoint

Send your message as an **HTTPS POST** to the applicable regional URL.

| Location          | Supplier Endpoint                      | Community Endpoint                   |
| ----------------- | -------------------------------------- | ------------------------------------ |
| **United States** | `https://supplier.unimarket.com/ws`    | `https://<code>.unimarket.com/ws`    |
| **New Zealand**   | `https://supplier.unimarket.co.nz/ws`  | `https://<code>.unimarket.co.nz/ws`  |
| **Australia**     | `https://supplier.unimarket.com.au/ws` | `https://<code>.unimarket.com.au/ws` |

## Important Distinction: cXML vs. POX

It is important to note that **cXML messages** (such as `OrderRequest` or `InvoiceDetailRequest`) do **not** require a POX envelope. These messages already contain an internal `<Header>` with `<Sender>` credentials, so they can be posted directly to the endpoint without the `pox-envelope` wrapper.

{% hint style="info" %}
For the SOAP equivalent of this transport, see [Sending SOAP Messages to Unimarket](/documentation/general-technical/sending-soap-messages-to-unimarket). For a full list of available message types, see [Webservice Integration Technical Documentation & Examples](/documentation/general-technical/webservice-integration-technical-documentation-examples).
{% endhint %}


# Sending SOAP Messages to Unimarket

**SOAP (Simple Object Access Protocol)** is a highly structured protocol used to exchange XML-based information when implementing Unimarket Web Services. Unlike the simpler POX protocol, SOAP relies on a **WSDL (Web Services Description Language)** to define the exact operations and data structures available.

## Implementation Guide

To integrate using SOAP, your development team will typically use the WSDL to auto-generate the necessary client code for your specific programming platform (e.g., .NET, Java).

### 1. Technical Prerequisites

* **Authentication Details**: Contact Unimarket to obtain your **Tenant Identifier**, **Integration Username**, and **Shared Secret**.
* **WSDL File**: Download the official Unimarket WSDL from the *Webservice Integration Documentation* to identify the service operations.
* **XML Schema (XSD)**: Reference the schema to identify the top-level request elements required for your specific integration (e.g., Budget Check or User Sync).

### 2. Message Structure

A valid SOAP message for Unimarket must contain:

1. **SOAP Envelope**: The outer wrapper for the message.
2. **Authentication Header**: Your credentials must be included within the SOAP header to be accepted.
3. **Request Body**: The specific uXML request element that conforms to the Unimarket schema.

### 3. Regional SOAP Endpoints

Messages must be sent as an HTTPS POST to the unsigned SOAP endpoint relevant to your region and organization type:

| Region            | Supplier SOAP Endpoint                               | Community SOAP Endpoint                            |
| ----------------- | ---------------------------------------------------- | -------------------------------------------------- |
| **United States** | `https://supplier.unimarket.com/ws-soap-unsigned`    | `https://<code>.unimarket.com/ws-soap-unsigned`    |
| **New Zealand**   | `https://supplier.unimarket.co.nz/ws-soap-unsigned`  | `https://<code>.unimarket.co.nz/ws-soap-unsigned`  |
| **Australia**     | `https://supplier.unimarket.com.au/ws-soap-unsigned` | `https://<code>.unimarket.com.au/ws-soap-unsigned` |

## Pro-Tip: Testing with SoapUI

For initial testing and debugging, Unimarket recommends using **SoapUI**, a free open-source tool. By importing the Unimarket WSDL into SoapUI, you can quickly generate sample requests, input your credentials, and see the real-time XML response from the Unimarket servers without writing any code.

## Comparison: SOAP vs. POX

While both use XML, **SOAP** is preferred for enterprise-level integrations where strict interface contracts and formal error handling are required. **POX** is often chosen for simpler, lightweight data-sync tasks. See [Sending POX (Plain Old XML) Messages to Unimarket](/documentation/general-technical/sending-pox-messages-to-unimarket) for the POX equivalent.

### Example SOAP Message

```xml
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <header xmlns="http://www.unimarket.com/schema/unimarket-ws">
            <authentication>
                <!-- Unique identifier of the Unimarket tenant (community or supplier) -->
                <tenant-ref domain="UNIMARKET_ID_DOMAIN" identity="782965bc-f39b-4589-8949-5530e6d1b287"/>
                <sender>
                    <!-- Unique identifier of the Unimarket integration user -->
                    <user-ref identity="AACCUMKT" domain="UNIMARKET_USERNAME_DOMAIN"/>
                    <!-- Password used to authenticate the request -->
                    <shared-secret>shared secret</shared-secret>
                </sender>
            </authentication>
        </header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <update-account-code-format-request xmlns="http://www.unimarket.com/schema/unimarket-ws">
            <account-code-format code="PROJECT_A">
                <account-code-format-part code="part-a" required="true">
                    <regular-expression-part max-length="1">
                        <expression>.*</expression>
                    </regular-expression-part>
                </account-code-format-part>
            </account-code-format>
        </update-account-code-format-request>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
```

{% hint style="info" %}
For a full list of available message types and the uXML vs. cXML standards, see [Webservice Integration Technical Documentation & Examples](/documentation/general-technical/webservice-integration-technical-documentation-examples).
{% endhint %}


# Troubleshooting: Invoices Not Appearing in Banner

When an invoice is created in Unimarket (via electronic cXML or in the Invoices module), it is transmitted to Banner via an API.

If the invoice does not appear in Banner (e.g., in `FAIINVL` or `FAAINVE`), follow this multi-step diagnostic workflow.

## Step 1: Check Community Inbox for Integration Errors

* Check the Community Inbox to see if an error was generated for the invoice.
* If an error was generated, refer to [Unimarket-to-Banner PO Integration Errors](/documentation/troubleshooting/unimarket-to-banner-po-integration-errors).

## Step 2: Check the Unimarket "Error\_" Code

At times, errors will appear in Unimarket to define the error that occurred:

1. Navigate to the **Invoices** module and open the specific invoice.
2. Look at the invoice number to see if an error appears (e.g. `INXXXX (Error_10)`).
3. Unimarket provides high-level diagnostic codes:

| Code          | Meaning               | Common Cause                                                                  |
| ------------- | --------------------- | ----------------------------------------------------------------------------- |
| **Error\_10** | Header Build Error    | The Purchase Order has not posted yet, or the Vendor ID is missing in Banner. |
| **Error\_20** | Header API Error      | Failure in the initial creation of the Banner Invoice header.                 |
| **Error\_30** | Item/Accounting Error | Invalid FOAPAL strings or referencing a closed/cancelled PO line.             |
| **Error\_40** | Completion API Error  | The invoice was created but failed the final "Complete" validation in Banner. |

4. If no error appears in Unimarket, proceed to Step 3.

## Step 3: Reach out to the Support team

* Review if a timeout or 500 Internal Server error was generated on the backend.
  * A 500 Internal Server Error is a generic HTTP status code indicating the server encountered an unexpected condition preventing it from fulfilling a request. This occurs if the customer's server was temporarily down, preventing the invoices from flowing into Banner.
* If there are no timeout errors found, proceed to Step 4.

## Step 4: Technical Diagnostics (SQL)

If the error code is vague, use SQL to view the exact response from the Banner API.

### Step A: Check the Request (FZBEPRC)

Verify the message reached Banner. Search by the Unimarket Invoice ID (e.g., `I0123456`).

```sql
SELECT FZBEPRC_ID, FZBEPRC_STATUS, FZBEPRC_DATE_TIME
FROM FISHRS.FZBEPRC
WHERE FZBEPRC_CXML LIKE '%IXXXXXXX%'
ORDER BY FZBEPRC_DATE_TIME DESC;
```

### Step B: Check the API Feedback (FZRCXML)

This is the most critical table. It stores the specific error message returned by the Banner API.

```sql
SELECT FZRCXML_DOCUMENT_ID, FZRCXML_ERROR_MSG, FZRCXML_ACTIVITY_DATE
FROM FISHRS.FZRCXML
WHERE FZRCXML_FZBEPRC_ID = (SELECT FZBEPRC_ID FROM FISHRS.FZBEPRC WHERE FZBEPRC_CXML LIKE '%IXXXXXXX%')
ORDER BY FZRCXML_ACTIVITY_DATE DESC;
```

## Step 5: Banner Form Check - Incomplete Invoices (FGRIDOC)

Sometimes the invoice *is* in Banner, but is invisible in inquiry forms because it is **Incomplete**.

1. Open form **FAAINVE** (Invoice Entry).
2. In the **Document** field, enter the Unimarket I-number.
3. If the record loads, it means it is "Incomplete." Navigate to the **Completion** tab to see the specific validation error (e.g., NSF, Invalid Fund).
4. Alternatively, run the **FGRIDOC** report to see all incomplete documents.

{% hint style="info" %}
Following an upgrade to Oracle 19c, ensure the `FISHRS` user has been granted `CREATE JOB` permissions. Without this, the background jobs that reprocess "PO Not Posted" errors will fail to trigger.
{% endhint %}


# Troubleshooting: Purchase Orders Not Appearing in Banner

When an order is created or cancelled in Unimarket, a cXML message is sent to Banner to establish or liquidate an encumbrance. If the Purchase Order (PO) does not reflect in Banner (e.g., it is missing from `FPBPOHD`, `FPIPURR`, or `FGIENCD`), follow these steps to identify and resolve the issue.

## Step 1: Check Community Inbox for Integration Errors

* Check the Community Inbox to see if an error was generated for the PO.
* If an error was generated, refer to [Unimarket-to-Banner PO Integration Errors](/documentation/troubleshooting/unimarket-to-banner-po-integration-errors).

## Step 2: Reach out to the Support team

* Review if a timeout or 500 Internal Server error was generated on the backend.
  * A 500 Internal Server Error is a generic HTTP status code indicating the server encountered an unexpected condition preventing it from fulfilling a request. This occurs if the customer's server was temporarily down, preventing the orders from flowing into Banner.
* If there are no timeout errors found, proceed to Step 3.

## Step 3: Primary Diagnostic Step - Check FZRCXML

The most reliable way to find why a transmission failed is to check the Banner API log table. This table captures the specific feedback and return codes generated by the Banner APIs.

```sql
SELECT FZRCXML_DOCUMENT_ID, FZRCXML_ERROR_MSG, FZRCXML_ACTIVITY_DATE
FROM FISHRS.FZRCXML
WHERE FZRCXML_DOCUMENT_ID = 'P0XXXXXX' -- Replace with your PO number
ORDER BY FZRCXML_ACTIVITY_DATE DESC;
```

### New Purchase Orders

If a new PO has been approved in Unimarket but cannot be found in Banner, check for the following common failures.

#### A. Vendor Maintenance Issues (FTMVEND)

The most frequent cause of "Missing PO" errors is an incomplete vendor record in Banner.

* **Error Message:** Often appears as a "Header Build Error" or "Invalid Address Type."
* **Action:** Verify the vendor in **FTMVEND**. Ensure that both **Procurement** and **Accounts Payable** default address types have valid and active **Codes** and **Sequence Numbers**. If these are null, the API cannot create the PO header or Invoice header.

#### B. Budget & NSF Errors

* **Error Message:** `NSF` or `Non-Sufficient Funds`.
* **Action:** Check the available budget for the FOAPAL used on the requisition in Banner Form **FGIBAVL**. If the budget is exceeded, the PO will be created in an "Incomplete" status or fail to post entirely. Adjust the budget in Banner and then in Unimarket, go to the Order and select **More Actions > Order Message** to resend the cXML.

#### C. Deadlocks and Integration Timing

* **Error Message:** `ORA-00060: deadlock detected while waiting for resource.`
* **Action:** This occurs when Banner is overwhelmed by concurrent requests. In Unimarket, go to the Order and select **More Actions > Order Message** to resend the cXML.

### Existing Purchase Orders

If an existing PO has been approved in Unimarket but cannot be found in Banner, check for the following common failures.

* If no integration errors have been generated and there is no reported error from the Unimarket Support team, and the API continues to fail after resending the Order Message from Unimarket, proceed to Step 4.

## Step 4: Manual Resolution Process

1. **Banner Manual Entry:** For new POs, you may need to manually enter the PO in **FPAPURR**.
2. **Existing POs:** Resend the Order Message from Unimarket.

{% hint style="info" %}
See also [Purchase Order Integration Overview](/documentation/transactions-orders-receipts-invoices-and-more/purchase-order-integration-overview) for background on how POs flow from Unimarket into Banner.
{% endhint %}


# Troubleshooting: Cancel Order Not Appearing in Banner

When an order is cancelled in Unimarket, a cXML message is sent to Banner to liquidate the encumbrance. If the cancellation does not reflect in Banner (e.g., the PO remains "Open" in `FPIPURR` or `FGIENCD`), follow these steps to identify and resolve the bottleneck.

## Primary Diagnostic Step: Check FZRCXML

The most reliable way to find why a cancellation failed is to check the Banner API log table.

```sql
SELECT FZRCXML_DOCUMENT_ID, FZRCXML_ERROR_MSG, FZRCXML_ACTIVITY_DATE
FROM FISHRS.FZRCXML
WHERE FZRCXML_DOCUMENT_ID = 'P0XXXXXX' -- Replace with your PO number
ORDER BY FZRCXML_ACTIVITY_DATE DESC;
```

## Common Functional Blocks

### A. Incomplete Invoices (The "Incomplete Docs" Error)

Banner will block a PO cancellation if there is an "Incomplete" purchase order or invoice associated with that PO. Even if the invoice was never finished, its existence "locks" the PO record. This error can also occur if a Change Order is associated with the PO.

* **Error Message in FZRCXML:**
  * `Document has incomplete docs: Incomplete Invoice exists against PO`
  * `Document has incomplete docs: Incomplete Change Order exists against PO`
* **Action:**
  1. Search for the PO number in Banner form **FGRIDOC** (Incomplete Document Listing) or **FAAINVE**.
  2. Delete or complete the incomplete invoice in Banner.
  3. Once the invoice is cleared, return to the PO in Unimarket, then select **More Actions > Close Message** to resend the cXML.

### B. Fiscal Year Restrictions

If the order belongs to a prior fiscal year that has already been rolled and closed, the Banner API may reject the cancellation because it cannot modify the old year's encumbrance.

* **Error Message in FZRCXML:** `Encumbrance does not exist in the fiscal year in which the transaction date falls.`
* **Action:**
  1. Verify the current Fiscal Year status in Banner.
  2. If the year is closed, your Finance team must manually liquidate the PO in the current year via **FPAEOCD**.

### C. Fully Invoiced Line Items

If all lines on the PO have been fully invoiced (even if the payment hasn't been sent), the PO is considered "exhausted" in Banner.

* **Action:** Verify the PO is closed and fully liquidated in Banner form **FGIENCD**. If it is still Open, search for an incomplete document associated with the PO.

## Technical & System Blocks

### A. Integration Queue (FZBEPRC)

Check if the cancellation message is stuck in the raw request table.

```sql
SELECT FZBEPRC_ID, FZBEPRC_STATUS, FZBEPRC_DATE_TIME
FROM FISHRS.FZBEPRC
WHERE FZBEPRC_CXML LIKE '%P0XXXXXX%' -- Replace with your PO number
ORDER BY FZBEPRC_DATE_TIME DESC;
```

* **Status = 'PENDING':** The integration listener may be down.
* **Status = 'ERROR':** The message reached Banner but the API failed (refer back to `FZRCXML`).

### B. Oracle 19c Permissions

As noted in [Unimarket-to-Banner PO Integration Errors](/documentation/troubleshooting/unimarket-to-banner-po-integration-errors), if you recently upgraded to Oracle 19c, the `FISHRS` user requires specific permissions to handle background jobs.

* **Requirement:** `GRANT CREATE JOB TO FISHRS;`
* **Impact:** Without this, automated retries for cancellations (especially those hitting "Deadlocks") will fail.

## Manual Resolution Process

If the integration cannot be fixed immediately and the budget needs to be released:

1. **Banner Manual Liquidation:** Use form **FPAEOCD** to manually liquidate the PO encumbrance to $0.00.
2. **Unimarket Synchronization:** Ensure the Unimarket order is marked as "Cancelled." If the integration "Resend" continues to fail after manual liquidation, contact Unimarket Support to "Force Complete" the record in the Unimarket logs to stop the retry attempts.

{% hint style="info" %}
Always check for **ORA-00060 (Deadlock detected)** in the logs. This often occurs if multiple users are trying to access the same vendor or PO record simultaneously. A simple **Resend** from Unimarket usually fixes this.
{% endhint %}


# Troubleshooting Ellucian/Colleague Timeout Errors

This article covers how to handle 30,000ms timeout errors between Unimarket and Ellucian Colleague, effectively.

## Integration Architecture Overview

These errors typically occur when the **Ethos API** or the underlying **Colleague** database is under heavy load or experiencing network latency, causing the Unimarket request to be terminated by the server.

If you receive an error email containing one of the following messages, it indicates that the communication between Unimarket and Ellucian Colleague has timed out (exceeding the 30,000ms limit).

### Error Samples

* `Get PO call failed for PO PXXXXXX. Error message is Request ran for longer than 30000ms...`
* `Get Persons call failed for PO PXXXXXX. Error message is Request ran for longer than 30000ms...`

## Immediate Action Steps for Users

Before reaching out to the Unimarket Support team, follow these steps to determine if the issue is a temporary cloud service interruption.

1. **Check Service Status:** Visit the [Ellucian Cloud Status Page](https://status.elluciancloud.com/).
   * **If an issue is reported:** Do **not** attempt to resend the PO. Wait until the status page indicates the service is fully operational.
   * **If no issue is reported:** Proceed to Step 2.
2. **Verify Colleague Entry:** Wait **30 minutes**. Log into Colleague and check if the PO was actually created, despite the timeout error.
3. **Manual Resend:** If the PO is missing from Colleague after 30 minutes, go to the Unimarket portal and **Resend** the PO.
4. **Escalate:** If the PO still fails to appear in Colleague after a manual resend, contact **Unimarket Support**.


# Troubleshooting Unimarket-to-Banner PO Integration Errors

This guide provides **functional users** in Procurement and Finance offices with instructions for troubleshooting common errors encountered during the transmission of Purchase Orders (POs) from Unimarket to Banner, and offers guidance on reconciling data between the two systems.

## Interface Logging and Error Notifications

When the Banner APIs produce an error during message transmission, the interface logs the activity and triggers an error notification.

### Error Notification

Error emails are sent using the Oracle `UTL_MAIL` function to the addresses defined in the **FTMSDAT** record (`FZKEPRC-UM ERROR EMAIL-TO`). These emails contain the document ID and the specific API error message.

### Interface Error Logging Tables (FISHRS Database Schema)

| Table       | Content Logged                | Purpose                                                                                |
| ----------- | ----------------------------- | -------------------------------------------------------------------------------------- |
| **FZBEPRC** | Request Log (cXML messages)   | Records messages sent from Unimarket to the Banner Interface.                          |
| **FZRCXML** | Banner PO and Invoice API Log | Records Banner PO and Invoice API activity, including the detailed API error messages. |

## General Troubleshooting & Reconciling Steps

Purchase Orders that encounter an error in Banner will often exist in an **Incomplete** status. Use these steps to validate and begin resolving the issue:

| Step                        | Banner Form / Report                        | Action                                                                                                                                                 |
| --------------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1. Validate Document Status | **FGRIDOC** (Incomplete Documents Report)   | Consistently run this report to identify all orders and invoices that are Incomplete and need reconciliation or completion.                            |
| 2. Review Error Details     | API Error Email / **FZBEPRC** / **FZRCXML** | Use the error email subject line (e.g., `PROD: Error in OrderRequest (12345)`) and document ID to find the precise error message logged in the tables. |
| 3. Complete/Fix Document    | **FPAPURR** (Purchase Orders)               | If the document is Incomplete, use this form to resolve the error(s) and complete the document accordingly.                                            |

## Common Purchase Order (PO) Errors

Use the table below to quickly identify the error, its cause, and the required action:

| Error Sample / Subject Line                                                                                                                                                                                   | Primary Cause in Banner                                                                                                                                                                                                                                                                                                                                            | User Action to Resolve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Vendor Record Error for PO<br><em>Vendor address type is required.</em><br><em>Vendor address sequence is required.</em><br><em>Vendor address type and seqno combination is invalid or inactive.</em></p> | PO Transaction Date is before the Vendor Effective Date in **FTMVEND**, or the Vendor Address Type/Sequence is missing or inactive in **FTMVEND**.                                                                                                                                                                                                                 | <p>1. Check <strong>FTMVEND</strong>: backdate the vendor's effective start date, or ensure a default Address Type/Sequence is assigned for PO/AP.<br>2. Resend the Order from Unimarket and check Banner to see if the order appears.<br>If the dates do not match, update the record in Banner and resend the PO in Unimarket. If the above does not resolve the issue, provide a full screenshot of the <strong>FOIDOCH</strong> screen for the vendor (including the Address tab) to the Unimarket Support team.</p>                                                                                                                                                                                              |
| Order Already Exists                                                                                                                                                                                          | A previous error occurred and the order was resent from Unimarket, but the header already exists in Banner as Incomplete.                                                                                                                                                                                                                                          | <p>1. Check <strong>FOIDOCH</strong> for 3-way match/approval status.<br>2. If Incomplete, view <strong>FPAPURR</strong>, resolve the specific error from the API email, and complete the document.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Invalid Purchase Order Code                                                                                                                                                                                   | A user attempted to close a PO in Unimarket that does not exist in Banner.                                                                                                                                                                                                                                                                                         | Review the order in Unimarket to confirm there are no invoices against the order and that receiving has been manually closed. No action required — this is a non-impacting informational error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Vendor ID error (e.g., `Path //SupplierID[1]... not found` or `Invalid value for vendor`)                                                                                                                     | The Vendor ID is missing or incorrect in the Manage Supplier record in Unimarket.                                                                                                                                                                                                                                                                                  | <p>1. Check Unimarket: verify the correct Vendor ID is present.<br>2. Contact Unimarket Support to configure a default Vendor ID sequence for better error messages.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ShipTo location code is invalid                                                                                                                                                                               | The ShipTo code used is not valid or inactive in Banner form **FTMSHIP**.                                                                                                                                                                                                                                                                                          | <p>1. Check <strong>FTMSHIP</strong>: reactivate the code or confirm the code's effective date is before the Transaction Date of the PO.<br>2. Update Unimarket, or manually update the PO in <strong>FPAPURR</strong> if a resend fails to pick up the updated code.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `Document has incomplete docs: Incomplete Invoice exists against Purchase Order UP122375.`                                                                                                                    | This occurs when a user attempts to close a Purchase Order in Unimarket while an associated invoice in Banner remains in an Incomplete status.                                                                                                                                                                                                                     | <p>1. Locate the invoice: search for it in Banner using form <strong>FAAINVE</strong> (Invoice/Credit Memo Header).<br>2. Alternatively, run the <strong>FGRIDOC</strong> (Incomplete Document Listing) report to find all documents preventing the PO from being finalized.<br>3. Once the invoice is completed and approved in Banner, the PO can be successfully closed in Unimarket, or resend the close message from Unimarket.</p>                                                                                                                                                                                                                                                                              |
| `Purchase Order cannot be invoiced.` / `Purchase order has been canceled.`                                                                                                                                    | The PO was closed or cancelled in Banner.                                                                                                                                                                                                                                                                                                                          | Investigate why the PO was closed/cancelled in Banner. If payment is valid, reopen the PO in Banner and resend the invoice. If the cancellation was correct, cancel the invoice in Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `Location XXX is invalid.`                                                                                                                                                                                    | <p>1. Missing code: the location code (e.g., <code>S09</code>) has not been set up in the ERP's validation tables.<br>2. Inactive status: the code exists but has been terminated or marked inactive for the current fiscal period.<br>3. Mapping issue: the code in Unimarket does not exactly match the code in the ERP (case sensitivity or leading zeros).</p> | <p>1. Check the ERP record: look up the location code in Banner form <strong>FTVLOCN</strong>. Ensure the code is active and the "Terminated" date is blank or in the future.<br>2. Verify the Unimarket profile: check the user's default shipping address or the specific line item on the requisition to see if the location was entered correctly.<br>3. Resend after fix: once the code is reactivated in the ERP, go to the Unimarket portal and resend the failed document.</p>                                                                                                                                                                                                                                |
| `Purchase order does not exist.` / `Must be created before it can be referenced`                                                                                                                              | The Purchase Order mentioned in the invoice cannot be found in the Banner PO tables (`FPBPOHD`).                                                                                                                                                                                                                                                                   | <p><strong>Step 1 — Manual resend from Unimarket:</strong> go to Marketplace, locate the Order, select <strong>More Actions > Order Message</strong> to re-push the cXML to Banner. Wait 5–10 minutes and check Banner.<br><strong>Step 2 — Vendor maintenance check (FTMVEND):</strong> if the order still does not appear, review the vendor record for valid <strong>Procurement</strong>/<strong>Accounts Payable</strong> address defaults with Type Codes and an associated Sequence Number. If missing or null, the API will fail to create the PO header.</p>                                                                                                                                                 |
| `Purchase order has not been posted.` / `Cannot be referenced`                                                                                                                                                | The Purchase Order record exists in Banner but is in an Incomplete or Suspended status, and has not yet posted to the ledgers.                                                                                                                                                                                                                                     | Query the integration log tables in schema `FISHRS`, tables `FZRCXML` or `FZBEPRC`. Search by the PO number (`FZRCXML_DOC_ID`) to find the error message in `FZRCXML_ERROR_MSG`. Common findings: **NSF** (budget exceeded), **Invalid Accounting** (a FOAPAL element is closed or inactive), or **Vendor Hold** (the vendor was placed on hold after the requisition was approved).                                                                                                                                                                                                                                                                                                                                  |
| `Purchase Order cannot be invoiced.` / `Purchase Order not completed or approved.`                                                                                                                            | The PO is not complete or approved in Banner.                                                                                                                                                                                                                                                                                                                      | Review the order in Banner and determine why it isn't complete or approved. You may need to back out/remove it and then resend the PO from Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `UP122375: Unable to select PO.`                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                    | Review the **FGIENCD** screen. If the status is Open (O), the error message is expected. If no additional invoices are expected against this PO, manually close the order in **FPAEOCD**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `Commodity code XXXXX is not valid as of XX-NOV-XXXX`                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                    | Cancel the PO and create a new PO with a commodity code that is active in Banner. Note: once a PO is Completed and Approved in Banner, the commodity code cannot be updated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `PO already closed in Banner`                                                                                                                                                                                 |                                                                                                                                                                                                                                                                                                                                                                    | No action required by customer or Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `PO is general encumbrance. Close with Banner Forms.`                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                    | Customer must use Banner to close the PO.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `Pending Documents in Banner cannot close the PO`                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                    | Make sure the Invoice is completed before the PO can be closed. Once completed, resend the Close Order Message from within Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `Another batch close process session is running. Resubmitting...`                                                                                                                                             | Likely caused by a locked record.                                                                                                                                                                                                                                                                                                                                  | Check the Banner database table `FOBPROC` for a record. If one exists, delete it and resend the Close Order Message from Unimarket for the affected PO.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `*ERROR* Vendor address type RM and seqno 1 combination is invalid or inactive.`                                                                                                                              | The PO or Blanket Order date is before the Vendor effective date, or the Vendor Addresses in **FTMVEND** do not have an assigned sequence number or default.                                                                                                                                                                                                       | The error on the order must be resolved before the invoice can be resent in Unimarket. Reach out to the team that manages vendor profiles to confirm there are no issues with the RM address in Banner, then confirm the PO looks correct on the **FOIDOCH** screen. Compare the PO order date (in Unimarket) against the vendor's Start Date in **FTMVEND**. If the dates match, resend the order in Unimarket. If they don't match, update the vendor record in Banner (backdate the start date) and then resend. If unresolved, contact Unimarket Support with a full screenshot of the **FOIDOCH** screen (including the Address tab), the order number, the error received, and the troubleshooting steps taken. |
| `Purchase Order is valid but failed available balance check` / `PO deleted from Banner System.`                                                                                                               | The budget check that happens as part of PO creation failed and deleted the PO from Banner.                                                                                                                                                                                                                                                                        | Option 1: transfer budget to the FOAP the PO needs. Option 2: cancel the PO or use a different FOAP with sufficient budget. If you don't want this to happen and want POs created in Banner even when funds are unavailable (going into an NSF state, depending on Banner settings), change the **FOMPROF** permissions for the UNIPO user so it has the `NSF_Override` permission. **Note:** NSF override applies to all orders — the budget check at Checkout will still catch NSFs, which also resolves the issue for change orders when the budget is still encumbered in Banner.                                                                                                                                 |

## Common Accounting or Budget Errors

These errors relate to accounting/FOAPAL or budget issues.

| Error Sample / Subject Line                                                                                                       | Primary Cause in Banner                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | User Action to Resolve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Program Code Required                                                                                                             | The ORGN code on the FOAPAL does not have a default PROG code set up in Banner, and the PROG was not entered in Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | <p>1. Update the ORGN default PROG in Banner.<br>2. Manually update the PO in <strong>FPAPURR</strong>, or delete the PO and resend from Unimarket.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Buyer User Does not have proper Fund/Orgn Access                                                                                  | The Buyer's user ID is missing the required Fund/Organization access on Banner forms like **FOMPROF**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | <p>1. Grant the Buyer the necessary Fund/Orgn access in Banner.<br>2. Reprocess the order in Banner, or delete and resend from Unimarket.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Mixed Expense Accounting (GL, Operational, Fixed Asset Accounts)                                                                  | General Ledger, Operational Expense, and Fixed Asset accounts were used on the same order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Manually update the PO in **FPAPURR** to separate the account types onto different documents or lines. Note: newer Unimarket versions catch this error at checkout.                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Purchase Order is valid but failed the available budget/balance check                                                             | Insufficient budget available (e.g., multiple large POs approved simultaneously outstripped the budget before encumbrance).                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | <p>1. Check budget: use <strong>FGIBAVL</strong> to confirm budget availability.<br>2. Resend the PO to Banner once the budget issue is resolved.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Accounting Period Closed in Banner                                                                                                | The PO Transaction Date is not within an open accounting period for the Chart of Accounts in Banner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Reopen the accounting period in Banner and then resend the order from Unimarket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Mixing asset and non-asset accounts results in an incomplete fixed asset record                                                   | Banner's Fixed Asset API expects a clean relationship between the procurement document and the asset record. When a single PO or Invoice contains a mix of asset and non-asset accounting codes on the same line or document, it often results in an incomplete or "orphaned" fixed asset record. Capital accounts are typically tied to fixed asset tagging in Banner, and the Banner API does not allow regular expense accounts and capital accounts to be charged on the same PO. If unsure whether an account is set up as an asset account, check with your Accounting team/Controller's Office. | <p>1. Identify the document: locate the PO or Invoice in <strong>FZBEPRC</strong> or <strong>FZRCXML</strong> to see how the accounts were distributed.<br>2. Manual correction in Banner: access <strong>FFAMAST</strong> (Fixed Asset Master) or <strong>FAAINVE</strong> and manually complete the asset information (Manufacturer, Model, Serial Number) that failed to pull from the Unimarket cXML.<br>3. Adjust the encumbrance: if the error happened on a PO, ensure the encumbrance in <strong>FMAPO</strong> reflects the correct capital amount so the subsequent invoice doesn't repeat the error.</p> |
| Accounting Record Errors for sequence 1 — `*ERROR* Transaction date 01-JUL-2025 is not in an open accounting period for chart 1.` | The accounting period for the PO Order Date is closed in Banner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Reopen the applicable accounting period, then resend the PO in Unimarket to Banner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

## Common Change Order and System Errors

These errors relate to blanket orders, change orders, or system configuration.

| Error Sample / Subject Line                                                              | Primary Cause (Where to Check)                                                                                                                  | Action to Resolve                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Change or Update attempted before PO Posted (`ORA-00001: unique constraint... violated`) | A change (e.g., cancellation) was attempted on a PO that is still in process and has not yet been posted in Banner.                             | <p>1. Verify the standard PO posting process is running.<br>2. Wait for the PO to post, then resend the change/update message from Unimarket.</p>                                                                                                                                                                                                                                                  |
| Blanket Order Not Found for Release Order (`Parent PO with orderID UP122375 not found!`) | The Parent Blanket PO is either Incomplete in Banner or was never successfully posted.                                                          | <p>1. Check <strong>FOIDOCH</strong> or <strong>FPAPURR</strong>: resolve the underlying error on the Blanket PO first.<br>2. Resend the Blanket PO, then resend the Release Order.</p>                                                                                                                                                                                                            |
| Change Order where the FUND is no longer active                                          | Most common with Grant/Sponsored Accounts: a change is attempted on an order where the FUND Term Date in Banner has passed.                     | <p>1. Discuss with Grant/Finance Office to reopen the FUND.<br>2. Alternatively, cancel the order in Unimarket.</p>                                                                                                                                                                                                                                                                                |
| Blanket Release Order — Could not create JV detail for PO                                | The encumbrances have not rolled to the next fiscal year, and the JV is using the system date to post the release order in the new fiscal year. | Create a manual **E035 Journal** in Banner to ensure the balance is the same in both systems.                                                                                                                                                                                                                                                                                                      |
| Cannot Cancel: Type "delete" is not supported                                            | Cancel Order is enabled in Unimarket, but the Banner Interface is not configured to handle the `Request Type="Delete"` integration message.     | <p>1. Manually cancel the PO in Banner.<br>2. Contact Unimarket Support to upgrade the interface to include the Cancel PO code.</p>                                                                                                                                                                                                                                                                |
| FOMPROF User Organization - Data Entry not allowed                                       | The user ID used to post the PO has a home Organization (**FOMPROF** record) that is not marked as Data Enterable in **FTMORGN**.               | <p>1. Check <strong>FTMORGN</strong>: verify the user's home org in FOMPROF is Data Enterable ('Y').<br>2. Change the user's home org in FOMPROF to a Data Enterable one and resend the PO.</p>                                                                                                                                                                                                    |
| Deadlock Detected (`ORA-00060: deadlock detected`)                                       | Banner is receiving too many requests for processing at once (system congestion).                                                               | <p><strong>PO not in Banner:</strong> verify the PO is not in Banner via <strong>FOIDOCH</strong> or <strong>FPIPURR</strong>; if not, resend the PO from Unimarket.<br><strong>PO in Banner and not posted:</strong> if the PO appears in FOIDOCH with a blank/not-approved status field, use <strong>FPAPURR</strong> to delete the Incomplete PO record, then resend the PO from Unimarket.</p> |
| The Account is Locked (`ORA-28000: The account is locked`)                               | The dedicated integration user account (`UNICON`) is locked (often after a database refresh/clone).                                             | Contact IT to unlock the `UNICON` account and update the password in the `connector.properties` file.                                                                                                                                                                                                                                                                                              |
| Clone of Prod to a DEV or PPRD Banner Instance (Wrong Deployment Mode "Production")      | The Banner Connector configuration is incorrect for the target Banner environment (e.g., Development/Test).                                     | Contact IT to verify the correct Deployment Mode is configured in the Banner Connector properties file for the specific Banner instance.                                                                                                                                                                                                                                                           |

{% hint style="info" %}
For related issues, see [Invoices Not Appearing in Banner](/documentation/troubleshooting/invoices-not-appearing-in-banner), [Purchase Orders Not Appearing in Banner](/documentation/troubleshooting/purchase-orders-not-appearing-in-banner), and [Cancel Order Not Appearing in Banner](/documentation/troubleshooting/cancel-order-not-appearing-in-banner).
{% endhint %}


# Troubleshooting SSO Errors

SSO errors typically occur when there is a mismatch between your organization's Identity Provider (IdP) and Unimarket (the Service Provider). Most issues can be resolved by verifying user attributes or checking account status within Unimarket. For background on setting up the integration, see [Setting Up SAML SSO](/documentation/authentication-and-users/setting-up-saml-sso).

## "The Authentication Service configured for your Community did not authenticate you"

**Example of exact error:**

> Single Sign-On request to Unimarket failed. The Authentication Service configured for your Community did not authenticate you or did not return a valid response. Please try again or contact your administrator.

![](https://help.unimarket.com/hc/article_attachments/58390096963865)

**Cause:** The IdP is sending an incomplete or malformed SAML assertion. This often means mandatory attributes (like email or NameID) are missing or the user's local profile is corrupted.

{% hint style="info" %}
This is usually not an issue on the Unimarket side, unless a new development has rolled out.
{% endhint %}

**Troubleshooting Steps:**

* **Browser Cleanup:** Have the user clear cache/history or try an Incognito/Private window to rule out stale session cookies.
* **IT Review:** Ask your IT team to verify the user's attributes in the IdP (Active Directory/Okta/Azure).
* **Unimarket Support:** If the issue persists, provide Unimarket Support with the user's name and a precise timestamp to check the integration logs.

## "Auto-Provisioning not enabled"

**Sample of exact error:**

> Single Sign-On request to Unimarket failed. Auto-Provisioning not enabled

**Cause:** Unimarket receives a valid login but cannot find a matching user record, and the system is not configured to create new users automatically.

**Troubleshooting Steps:**

* Check inside Unimarket to confirm if the user login has been created.
* If user login credentials have been created, compare the SSO username and the Unimarket username to ensure they are exactly the same.
  * If the username is **not** the same, make updates.
  * If the username **is** the same, reach out to the Unimarket Support team with the following information:
    * The SSO username
    * The Unimarket username
    * Date and time stamp when the user last attempted login

## "Your account has been locked"

**Sample of exact error:**

> Your account has been locked. Contact your support person to unlock it, then try again.

![](https://help.unimarket.com/hc/article_attachments/45852270743449)

**Cause:** The user's Unimarket profile has been locked due to security overrides.

**Troubleshooting Steps:**

* **Admin Check:** Go to the **Administration** module > **Users**, clear the **State** filter, and select **Apply Filter**.
* **Re-enable:** If the state is Disabled, edit the profile to Enabled. Once completed, ask the user to attempt logging into Unimarket.
* **Lockout:** If locked, verify the user hasn't been attempting to log in via the standard Unimarket login page instead of the SSO portal.

If the above does not resolve the matter, reach out to your IT team to check the SAML setup for the user to determine if the user is logging into Unimarket via Single Sign-On.

## "The user account is disabled. Please contact your Administrator"

**Sample of exact error:**

> Single Sign-On request to Unimarket failed. The user account is disabled. Please contact your Administrator.

![](https://help.unimarket.com/hc/article_attachments/45852271120921)

**Cause:** The user's Unimarket profile has been manually disabled.

**Troubleshooting Steps:**

* **Admin Check:** Go to the **Administration** module > **Users**, clear the **State** filter, and select **Apply Filter**.
* **Re-enable:** If the state is Disabled, edit the profile to Enabled. Once completed, ask the user to attempt logging into Unimarket.

If the user login is in an enabled state, reach out to the Unimarket Support team with the following information:

* The user's first and last name
* Date and time stamp when the error occurred

## "Authentication Service Error"

**Sample of exact error:**

> Single Sign-On request to Unimarket failed. Authentication Service Error

![](https://help.unimarket.com/hc/article_attachments/58390096965785)

**Cause:** The IdP is sending an incomplete or malformed SAML assertion. This often means mandatory attributes (like email or NameID) are missing or the user's local profile is corrupted.

**Troubleshooting Steps:**

* **Browser Cleanup:** Have the user clear cache/history or try an Incognito/Private window to rule out stale session cookies.
* **IT Review:** Ask your IT team to verify the user's attributes in the IdP (Active Directory/Okta/Azure).
* **Unimarket Support:** If the issue persists, provide Unimarket Support with the user's name and a precise timestamp to check the integration logs.

## "Missing data"

**Sample of exact error:**

> Single Sign-On request to Unimarket failed. Missing data

![](https://help.unimarket.com/hc/article_attachments/45852271651481)

**Cause:** The IdP is sending an incomplete or malformed SAML assertion. This often means mandatory attributes (like email or NameID) are missing or the user's local profile is corrupted.

**Troubleshooting Steps:**

* **Browser Cleanup:** Have the user clear cache/history or try an Incognito/Private window to rule out stale session cookies.
* **IT Review:** Ask your IT team to verify the user's attributes in the IdP (Active Directory/Okta/Azure).
* **Unimarket Support:** If the issue persists, provide Unimarket Support with the user's name and a precise timestamp to check the integration logs.

## Troubleshooting Checklist for IT Admins

If a specific group of users is failing, check the following technical configurations:

* **SAML Certificate:** Check if your IdP signing certificate has recently expired.
* **Clock Skew:** Ensure your IdP server time is synchronized via NTP; a difference of more than a few minutes will cause the SAML assertion to be rejected.
* **Encryption:** Verify if Unimarket expects an encrypted vs. unencrypted assertion.


# Overview

Explore the endpoints available from Nova Public API

The Nova Public API provides developers with a powerful and flexible way to interact with the Nova Public API platform programmatically. It offers end points to view suppliers and integrate into external applications.

The API is available on the following tenants

1. AU ⇒ <https://api.unimarket.com.au/public/community>
2. NZ ⇒ <https://api.unimarket.co.nz/public/community>
3. US ⇒ <https://api.unimarket.com/public/community>
4. DEMO ⇒ <https://api.unimarket-demo.com/public/community>

This API is RESTful and supports standard HTTP method like `GET`, `POST`, `PATCH`, and `DELETE`.

**Key Features**

**OpenAPI spec**

[Download the OpenAPI specification](https://api.unimarket.com/public/nova-public-api.yaml)

[Jump to endpoint list](#available-endpoints)

### Available endpoints

* `GET /suppliers` — List suppliers
* `GET /suppliers/{id}` — Get supplier details
* `GET /suppliers/{supplierId}/contacts` — List supplier contacts
* `GET /suppliers/{supplierId}/remittance-addresses` — List supplier remittance addresses

### Authentication and rate limits

Authentication is required for API requests.

Send your access token in the `Authorization` header:

```bash
Authorization: Bearer YOUR_TOKEN
```

If authentication is missing or invalid, the API can return `401 Unauthorized`.

If your token does not have access, the API can return `403 Forbidden`.

Rate limits are not defined in the current OpenAPI spec.

Confirm any request limits with your Nova contact before production use.

### Example requests

Use the base URL for your region:

* `https://api.unimarket.com/public/community`
* `https://api.unimarket.com.au/public/community`
* `https://api.unimarket.co.nz/public/community`
* `https://api.unimarket-demo.com/public/community`

Replace `YOUR_TOKEN` and UUID values before sending requests.

#### List suppliers

```bash
curl --request GET \
  --url 'https://api.unimarket.com/public/community/suppliers?page=0&size=20&sort=name,asc&query=Acme%20Corp' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Accept: application/json'
```

#### Get supplier details

```bash
curl --request GET \
  --url 'https://api.unimarket.com/public/community/suppliers/123e4567-e89b-12d3-a456-426614174000' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Accept: application/json'
```

#### List supplier contacts

```bash
curl --request GET \
  --url 'https://api.unimarket.com/public/community/suppliers/123e4567-e89b-12d3-a456-426614174000/contacts?page=0&size=20' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Accept: application/json'
```

#### List supplier remittance addresses

```bash
curl --request GET \
  --url 'https://api.unimarket.com/public/community/suppliers/123e4567-e89b-12d3-a456-426614174000/remittance-addresses?page=0&size=20&sort=companyName,asc&modifiedSince=2024-01-01T00:00:00Z' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Accept: application/json'
```


# Authentication

How to authenticate requests to the Nova Public API

The Nova Public API uses Bearer token authentication. Include your access token in the `Authorization` header of every request.

```bash
Authorization: Bearer YOUR_TOKEN
```

Contact your Nova representative to obtain an access token.

## Base URLs

Choose the base URL for your region:

| Tenant | Base URL                                          |
| ------ | ------------------------------------------------- |
| AU     | `https://api.unimarket.com.au/public/community`   |
| NZ     | `https://api.unimarket.co.nz/public/community`    |
| US     | `https://api.unimarket.com/public/community`      |
| DEMO   | `https://api.unimarket-demo.com/public/community` |

## Authentication errors

| Status             | Meaning                                                           |
| ------------------ | ----------------------------------------------------------------- |
| `401 Unauthorized` | Token is missing or invalid                                       |
| `403 Forbidden`    | Token is valid but does not have access to the requested resource |


# Errors

HTTP status codes and error responses returned by the Nova Public API

The Nova Public API uses standard HTTP status codes to indicate success or failure.

## Status codes

| Code                        | Meaning                                 |
| --------------------------- | --------------------------------------- |
| `200 OK`                    | Request succeeded                       |
| `400 Bad Request`           | Invalid request parameters              |
| `401 Unauthorized`          | Missing or invalid authentication token |
| `403 Forbidden`             | Token valid but access denied           |
| `404 Not Found`             | Resource does not exist                 |
| `500 Internal Server Error` | Unexpected server error                 |

## Error response shape

Error responses return a JSON body with details about what went wrong:

```json
{
  "status": 400,
  "error": "Bad Request",
  "message": "Invalid value for parameter 'size'"
}
```

| Field     | Type    | Description                             |
| --------- | ------- | --------------------------------------- |
| `status`  | integer | HTTP status code                        |
| `error`   | string  | Short error label                       |
| `message` | string  | Human-readable description of the error |


# Pagination

How to paginate and sort results from the Nova Public API

All list endpoints return paginated results. Use the `page` and `size` parameters to navigate through results.

## Query parameters

| Parameter | Type    | Default | Description                                                      |
| --------- | ------- | ------- | ---------------------------------------------------------------- |
| `page`    | integer | `0`     | Zero-based page index                                            |
| `size`    | integer | `20`    | Number of results per page                                       |
| `sort`    | string  | varies  | Sort field and direction, e.g. `name,asc` or `modifiedDate,desc` |

## Example

```bash
GET /suppliers?page=0&size=20&sort=name,asc
```

## Response structure

Paginated responses include metadata alongside the results:

```json
{
  "content": [...],
  "page": {
    "size": 20,
    "number": 0,
    "totalElements": 150,
    "totalPages": 8
  }
}
```

| Field                | Description                           |
| -------------------- | ------------------------------------- |
| `content`            | Array of results for the current page |
| `page.size`          | Number of results returned            |
| `page.number`        | Current page index (zero-based)       |
| `page.totalElements` | Total number of matching records      |
| `page.totalPages`    | Total number of pages                 |

To retrieve the next page, increment `page` by 1. Stop when `page.number + 1 >= page.totalPages`.


# The Supplier Object

The Supplier object and its attributes

A Supplier represents a vendor registered in the Nova platform. Depending on the endpoint, you will receive either a `SupplierSummary` (in list responses) or a `SupplierDetail` (when fetching a single supplier).

## Key concepts

**SupplierSummary vs SupplierDetail** — List endpoints return a lightweight `SupplierSummary` with core identity fields. Fetching a single supplier returns the full `SupplierDetail`, which includes contacts, remittance addresses, bank accounts, and payment terms. Only fetch detail when you need it.

**profileType** — Determines whether the supplier is a business entity or an individual person. This affects which tax identification types are applicable.

**taxIdentificationType** — The type of tax ID registered for the supplier. Values vary by region and entity type. See the schema reference below for all allowed values.

**paymentTerms** — Agreed payment terms between your organisation and the supplier (e.g. `NET30`). Used for accounts payable processing.

## Schema reference

For the full auto-rendered schema including all fields and types, see the **Models** section in the sidebar.


# Suppliers

## GET /suppliers

> List suppliers (paged)

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"servers":[{"url":"https://api.unimarket.com/public/community"},{"url":"https://api.unimarket.com.au/public/community"},{"url":"https://api.unimarket.co.nz/public/community"},{"url":"https://api.unimarket-demo.com/public/community"}],"paths":{"/suppliers":{"get":{"summary":"List suppliers (paged)","operationId":"listSuppliers","tags":["Suppliers"],"parameters":[{"in":"query","name":"query","schema":{"type":"string","maxLength":255},"description":"Search term that performs a \"starts with\" search against supplier company name, legal business name, supplier keywords, or supplier ID"},{"in":"query","name":"modifiedSince","schema":{"type":"string","format":"date-time"},"description":"Inclusive; returns items with modifiedDate >= modifiedSince (ISO 8601 format)"},{"$ref":"#/components/parameters/PageParameter"},{"$ref":"#/components/parameters/SizeParameter"},{"in":"query","name":"sort","schema":{"type":"string","maxLength":255,"pattern":"^[a-zA-Z]+(,(asc|desc))?$"},"description":"Sort specification in format \"field,direction\". Allowed fields are name, createdDate, modifiedDate. Direction can be asc or desc (default asc)"}],"responses":{"200":{"description":"Page of supplier summaries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SupplierSummary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"parameters":{"PageParameter":{"in":"query","name":"page","schema":{"type":"integer","minimum":0,"default":0},"description":"Page number (zero-based)"},"SizeParameter":{"in":"query","name":"size","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Number of items per page"}},"schemas":{"Page_SupplierSummary":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/SupplierSummary"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"SupplierSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"communitySupplierId":{"type":"string","maxLength":255,"description":"Auto-generated unique ID for the community supplier"},"supplierId":{"type":["string","null"],"maxLength":255,"description":"Community-defined Supplier ID to match the ERP."},"name":{"type":["string","null"],"maxLength":255,"description":"The primary name by which the supplier is known. The company or trading name."},"profileType":{"$ref":"#/components/schemas/ProfileType"},"legalBusinessName":{"type":["string","null"],"maxLength":255},"firstName":{"type":["string","null"],"maxLength":255},"lastName":{"type":["string","null"],"maxLength":255},"taxIdentificationType":{"$ref":"#/components/schemas/TaxIdentificationType"},"taxIdentificationNumber":{"type":["string","null"],"maxLength":255},"tinVerificationStatus":{"$ref":"#/components/schemas/TinVerificationStatus"},"tinLastVerifiedDate":{"type":["string","null"],"format":"date-time"},"connectionState":{"$ref":"#/components/schemas/ConnectionState"},"businessNumber":{"type":["string","null"],"maxLength":255},"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","profileType","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"},"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]},"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]},"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling"},"message":{"type":"string","description":"Human-readable error message"},"details":{"type":["string","null"],"description":"Additional error details"}},"required":["code","message"]}},"responses":{"BadRequest":{"description":"Invalid request parameters or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Access to the requested resource is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}
```

## GET /suppliers/{id}

> Get a supplier (full details)

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"servers":[{"url":"https://api.unimarket.com/public/community"},{"url":"https://api.unimarket.com.au/public/community"},{"url":"https://api.unimarket.co.nz/public/community"},{"url":"https://api.unimarket-demo.com/public/community"}],"paths":{"/suppliers/{id}":{"get":{"summary":"Get a supplier (full details)","operationId":"getSupplier","tags":["Suppliers"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"$ref":"#/components/schemas/Id"},"description":"UUID identifier of the supplier"}],"responses":{"200":{"description":"Supplier with full details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"schemas":{"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"SupplierDetail":{"allOf":[{"$ref":"#/components/schemas/SupplierSummary"},{"type":"object","properties":{"defaultContact":{"$ref":"#/components/schemas/SupplierContact"},"defaultRemittanceAddress":{"$ref":"#/components/schemas/RemittanceAddress"},"bankAccount":{"$ref":"#/components/schemas/BankAccount"},"emails":{"$ref":"#/components/schemas/Emails"},"settings":{"$ref":"#/components/schemas/SupplierSettings"}}}]},"SupplierSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"communitySupplierId":{"type":"string","maxLength":255,"description":"Auto-generated unique ID for the community supplier"},"supplierId":{"type":["string","null"],"maxLength":255,"description":"Community-defined Supplier ID to match the ERP."},"name":{"type":["string","null"],"maxLength":255,"description":"The primary name by which the supplier is known. The company or trading name."},"profileType":{"$ref":"#/components/schemas/ProfileType"},"legalBusinessName":{"type":["string","null"],"maxLength":255},"firstName":{"type":["string","null"],"maxLength":255},"lastName":{"type":["string","null"],"maxLength":255},"taxIdentificationType":{"$ref":"#/components/schemas/TaxIdentificationType"},"taxIdentificationNumber":{"type":["string","null"],"maxLength":255},"tinVerificationStatus":{"$ref":"#/components/schemas/TinVerificationStatus"},"tinLastVerifiedDate":{"type":["string","null"],"format":"date-time"},"connectionState":{"$ref":"#/components/schemas/ConnectionState"},"businessNumber":{"type":["string","null"],"maxLength":255},"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","profileType","modifiedDate","createdDate"]},"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"},"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]},"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]},"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]},"SupplierContact":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255},"phone":{"$ref":"#/components/schemas/Phone"},"email":{"type":["string","null"],"maxLength":255,"format":"email"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","name","modifiedDate","createdDate"]},"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"RemittanceAddress":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":255},"companyName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","address","modifiedDate","createdDate"]},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}},"BankAccount":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"country":{"type":"string","maxLength":255},"bankName":{"type":["string","null"],"maxLength":255},"accountName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"accountNumber":{"type":["string","null"],"maxLength":255},"routingNumber":{"type":["string","null"],"maxLength":255},"localAccountNumber":{"type":["string","null"],"maxLength":255},"bankAccountType":{"type":["string","null"],"enum":["CHECKING","SAVINGS","null"],"maxLength":20},"depositFormat":{"type":["string","null"],"enum":["UNSPECIFIED","CCD","CTX","null"],"maxLength":20}},"required":["id","country"]},"Emails":{"type":"object","properties":{"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"remittanceEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"ordersEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"invoicingEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"rfqsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"bidRequestsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"integrationEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"customerCommentsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"}}},"SupplierSettings":{"type":"object","properties":{"paymentTerm":{"$ref":"#/components/schemas/PaymentTerm"},"buyerGroups":{"type":"array","items":{"$ref":"#/components/schemas/BuyerGroup"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}},"PaymentTerm":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":35},"active":{"type":"boolean"},"days":{"type":["integer","null"]},"termType":{"type":"string","maxLength":40,"enum":["DAYS_AFTER_THE_INVOICE_DATE","OF_THE_CURRENT_MONTH","OF_THE_FOLLOWING_MONTH","IMMEDIATELY"]},"description":{"type":["string","null"],"maxLength":2000}},"required":["id","code","active","termType"]},"BuyerGroup":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Tag":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling"},"message":{"type":"string","description":"Human-readable error message"},"details":{"type":["string","null"],"description":"Additional error details"}},"required":["code","message"]}},"responses":{"BadRequest":{"description":"Invalid request parameters or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Access to the requested resource is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"The requested resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}
```

## GET /suppliers/{supplierId}/contacts

> List all contacts for a supplier (paged)

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"servers":[{"url":"https://api.unimarket.com/public/community"},{"url":"https://api.unimarket.com.au/public/community"},{"url":"https://api.unimarket.co.nz/public/community"},{"url":"https://api.unimarket-demo.com/public/community"}],"paths":{"/suppliers/{supplierId}/contacts":{"get":{"summary":"List all contacts for a supplier (paged)","operationId":"listSupplierContacts","tags":["Suppliers"],"parameters":[{"in":"path","name":"supplierId","required":true,"schema":{"$ref":"#/components/schemas/Id"},"description":"UUID identifier of the supplier"},{"$ref":"#/components/parameters/PageParameter"},{"$ref":"#/components/parameters/SizeParameter"}],"responses":{"200":{"description":"Page of contacts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SupplierContact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"schemas":{"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Page_SupplierContact":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/SupplierContact"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"SupplierContact":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255},"phone":{"$ref":"#/components/schemas/Phone"},"email":{"type":["string","null"],"maxLength":255,"format":"email"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","name","modifiedDate","createdDate"]},"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling"},"message":{"type":"string","description":"Human-readable error message"},"details":{"type":["string","null"],"description":"Additional error details"}},"required":["code","message"]}},"parameters":{"PageParameter":{"in":"query","name":"page","schema":{"type":"integer","minimum":0,"default":0},"description":"Page number (zero-based)"},"SizeParameter":{"in":"query","name":"size","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Number of items per page"}},"responses":{"BadRequest":{"description":"Invalid request parameters or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Access to the requested resource is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"The requested resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}
```

## GET /suppliers/{supplierId}/remittance-addresses

> List all remittance addresses for a supplier (paged)

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"servers":[{"url":"https://api.unimarket.com/public/community"},{"url":"https://api.unimarket.com.au/public/community"},{"url":"https://api.unimarket.co.nz/public/community"},{"url":"https://api.unimarket-demo.com/public/community"}],"paths":{"/suppliers/{supplierId}/remittance-addresses":{"get":{"summary":"List all remittance addresses for a supplier (paged)","operationId":"listSupplierRemittanceAddresses","tags":["Suppliers"],"parameters":[{"in":"path","name":"supplierId","required":true,"schema":{"$ref":"#/components/schemas/Id"},"description":"UUID identifier of the supplier"},{"in":"query","name":"modifiedSince","schema":{"type":"string","format":"date-time"},"description":"Inclusive; returns items with modifiedDate >= modifiedSince (ISO 8601 format)"},{"$ref":"#/components/parameters/PageParameter"},{"$ref":"#/components/parameters/SizeParameter"},{"in":"query","name":"sort","schema":{"type":"string","maxLength":255,"pattern":"^[a-zA-Z]+(,(asc|desc))?$"},"description":"Sort specification in format \"field,direction\". Allowed fields are companyName, modifiedDate. Direction can be asc or desc (default asc)"}],"responses":{"200":{"description":"Page of remittance addresses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_RemittanceAddress"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"schemas":{"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Page_RemittanceAddress":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/RemittanceAddress"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"RemittanceAddress":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":255},"companyName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","address","modifiedDate","createdDate"]},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling"},"message":{"type":"string","description":"Human-readable error message"},"details":{"type":["string","null"],"description":"Additional error details"}},"required":["code","message"]}},"parameters":{"PageParameter":{"in":"query","name":"page","schema":{"type":"integer","minimum":0,"default":0},"description":"Page number (zero-based)"},"SizeParameter":{"in":"query","name":"size","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Number of items per page"}},"responses":{"BadRequest":{"description":"Invalid request parameters or malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication is required or invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Access to the requested resource is forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"The requested resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}
```


# Models

## The Id object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"}}}}
```

## The Error object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling"},"message":{"type":"string","description":"Human-readable error message"},"details":{"type":["string","null"],"description":"Additional error details"}},"required":["code","message"]}}}}
```

## The Page\_SupplierSummary object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Page_SupplierSummary":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/SupplierSummary"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"SupplierSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"communitySupplierId":{"type":"string","maxLength":255,"description":"Auto-generated unique ID for the community supplier"},"supplierId":{"type":["string","null"],"maxLength":255,"description":"Community-defined Supplier ID to match the ERP."},"name":{"type":["string","null"],"maxLength":255,"description":"The primary name by which the supplier is known. The company or trading name."},"profileType":{"$ref":"#/components/schemas/ProfileType"},"legalBusinessName":{"type":["string","null"],"maxLength":255},"firstName":{"type":["string","null"],"maxLength":255},"lastName":{"type":["string","null"],"maxLength":255},"taxIdentificationType":{"$ref":"#/components/schemas/TaxIdentificationType"},"taxIdentificationNumber":{"type":["string","null"],"maxLength":255},"tinVerificationStatus":{"$ref":"#/components/schemas/TinVerificationStatus"},"tinLastVerifiedDate":{"type":["string","null"],"format":"date-time"},"connectionState":{"$ref":"#/components/schemas/ConnectionState"},"businessNumber":{"type":["string","null"],"maxLength":255},"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","profileType","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"},"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]},"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]},"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]}}}}
```

## The Page\_SupplierContact object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Page_SupplierContact":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/SupplierContact"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"SupplierContact":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255},"phone":{"$ref":"#/components/schemas/Phone"},"email":{"type":["string","null"],"maxLength":255,"format":"email"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","name","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]}}}}
```

## The Page\_RemittanceAddress object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Page_RemittanceAddress":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/RemittanceAddress"}},"page":{"$ref":"#/components/schemas/PageMetadata"}},"required":["content","page"]},"RemittanceAddress":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":255},"companyName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","address","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]}}}}
```

## The PageMetadata object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"PageMetadata":{"type":"object","properties":{"size":{"type":"integer"},"totalElements":{"type":"integer"},"totalPages":{"type":"integer"},"number":{"type":"integer"}},"required":["size","totalElements","totalPages","number"]}}}}
```

## The SupplierSummary object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"SupplierSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"communitySupplierId":{"type":"string","maxLength":255,"description":"Auto-generated unique ID for the community supplier"},"supplierId":{"type":["string","null"],"maxLength":255,"description":"Community-defined Supplier ID to match the ERP."},"name":{"type":["string","null"],"maxLength":255,"description":"The primary name by which the supplier is known. The company or trading name."},"profileType":{"$ref":"#/components/schemas/ProfileType"},"legalBusinessName":{"type":["string","null"],"maxLength":255},"firstName":{"type":["string","null"],"maxLength":255},"lastName":{"type":["string","null"],"maxLength":255},"taxIdentificationType":{"$ref":"#/components/schemas/TaxIdentificationType"},"taxIdentificationNumber":{"type":["string","null"],"maxLength":255},"tinVerificationStatus":{"$ref":"#/components/schemas/TinVerificationStatus"},"tinLastVerifiedDate":{"type":["string","null"],"format":"date-time"},"connectionState":{"$ref":"#/components/schemas/ConnectionState"},"businessNumber":{"type":["string","null"],"maxLength":255},"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","profileType","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"},"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]},"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]},"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]}}}}
```

## The ProfileType object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"}}}}
```

## The TaxIdentificationType object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]}}}}
```

## The TinVerificationStatus object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]}}}}
```

## The ConnectionState object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]}}}}
```

## The TenantType object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]}}}}
```

## The SupplierDetail object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"SupplierDetail":{"allOf":[{"$ref":"#/components/schemas/SupplierSummary"},{"type":"object","properties":{"defaultContact":{"$ref":"#/components/schemas/SupplierContact"},"defaultRemittanceAddress":{"$ref":"#/components/schemas/RemittanceAddress"},"bankAccount":{"$ref":"#/components/schemas/BankAccount"},"emails":{"$ref":"#/components/schemas/Emails"},"settings":{"$ref":"#/components/schemas/SupplierSettings"}}}]},"SupplierSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"communitySupplierId":{"type":"string","maxLength":255,"description":"Auto-generated unique ID for the community supplier"},"supplierId":{"type":["string","null"],"maxLength":255,"description":"Community-defined Supplier ID to match the ERP."},"name":{"type":["string","null"],"maxLength":255,"description":"The primary name by which the supplier is known. The company or trading name."},"profileType":{"$ref":"#/components/schemas/ProfileType"},"legalBusinessName":{"type":["string","null"],"maxLength":255},"firstName":{"type":["string","null"],"maxLength":255},"lastName":{"type":["string","null"],"maxLength":255},"taxIdentificationType":{"$ref":"#/components/schemas/TaxIdentificationType"},"taxIdentificationNumber":{"type":["string","null"],"maxLength":255},"tinVerificationStatus":{"$ref":"#/components/schemas/TinVerificationStatus"},"tinLastVerifiedDate":{"type":["string","null"],"format":"date-time"},"connectionState":{"$ref":"#/components/schemas/ConnectionState"},"businessNumber":{"type":["string","null"],"maxLength":255},"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","profileType","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"ProfileType":{"type":"string","maxLength":20,"enum":["COMPANY","INDIVIDUAL"],"description":"Individual or Company/Organization"},"TaxIdentificationType":{"type":"string","maxLength":20,"enum":["SSN","EIN","ITIN","GIIN","FOREIGN_TIN"]},"TinVerificationStatus":{"type":"string","maxLength":20,"enum":["MATCHED","NOT_MATCHED","NO_RESULT","PENDING"]},"ConnectionState":{"type":"string","maxLength":20,"enum":["CONNECTED","PENDING","DISCONNECTED"]},"SupplierContact":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255},"phone":{"$ref":"#/components/schemas/Phone"},"email":{"type":["string","null"],"maxLength":255,"format":"email"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","name","modifiedDate","createdDate"]},"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]},"RemittanceAddress":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":255},"companyName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","address","modifiedDate","createdDate"]},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}},"BankAccount":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"country":{"type":"string","maxLength":255},"bankName":{"type":["string","null"],"maxLength":255},"accountName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"accountNumber":{"type":["string","null"],"maxLength":255},"routingNumber":{"type":["string","null"],"maxLength":255},"localAccountNumber":{"type":["string","null"],"maxLength":255},"bankAccountType":{"type":["string","null"],"enum":["CHECKING","SAVINGS","null"],"maxLength":20},"depositFormat":{"type":["string","null"],"enum":["UNSPECIFIED","CCD","CTX","null"],"maxLength":20}},"required":["id","country"]},"Emails":{"type":"object","properties":{"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"remittanceEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"ordersEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"invoicingEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"rfqsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"bidRequestsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"integrationEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"customerCommentsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"}}},"SupplierSettings":{"type":"object","properties":{"paymentTerm":{"$ref":"#/components/schemas/PaymentTerm"},"buyerGroups":{"type":"array","items":{"$ref":"#/components/schemas/BuyerGroup"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}},"PaymentTerm":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":35},"active":{"type":"boolean"},"days":{"type":["integer","null"]},"termType":{"type":"string","maxLength":40,"enum":["DAYS_AFTER_THE_INVOICE_DATE","OF_THE_CURRENT_MONTH","OF_THE_FOLLOWING_MONTH","IMMEDIATELY"]},"description":{"type":["string","null"],"maxLength":2000}},"required":["id","code","active","termType"]},"BuyerGroup":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Tag":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]}}}}
```

## The SupplierSettings object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"SupplierSettings":{"type":"object","properties":{"paymentTerm":{"$ref":"#/components/schemas/PaymentTerm"},"buyerGroups":{"type":"array","items":{"$ref":"#/components/schemas/BuyerGroup"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}},"PaymentTerm":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":35},"active":{"type":"boolean"},"days":{"type":["integer","null"]},"termType":{"type":"string","maxLength":40,"enum":["DAYS_AFTER_THE_INVOICE_DATE","OF_THE_CURRENT_MONTH","OF_THE_FOLLOWING_MONTH","IMMEDIATELY"]},"description":{"type":["string","null"],"maxLength":2000}},"required":["id","code","active","termType"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"BuyerGroup":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Tag":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]}}}}
```

## The BuyerGroup object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"BuyerGroup":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"}}}}
```

## The Tag object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Tag":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255}},"required":["id","name"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"}}}}
```

## The BankAccount object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"BankAccount":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"country":{"type":"string","maxLength":255},"bankName":{"type":["string","null"],"maxLength":255},"accountName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"accountNumber":{"type":["string","null"],"maxLength":255},"routingNumber":{"type":["string","null"],"maxLength":255},"localAccountNumber":{"type":["string","null"],"maxLength":255},"bankAccountType":{"type":["string","null"],"enum":["CHECKING","SAVINGS","null"],"maxLength":20},"depositFormat":{"type":["string","null"],"enum":["UNSPECIFIED","CCD","CTX","null"],"maxLength":20}},"required":["id","country"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}}}}}
```

## The SupplierContact object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"SupplierContact":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string","maxLength":255},"phone":{"$ref":"#/components/schemas/Phone"},"email":{"type":["string","null"],"maxLength":255,"format":"email"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","name","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]}}}}
```

## The Phone object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Phone":{"type":"object","properties":{"prefix":{"type":["string","null"],"maxLength":5},"number":{"type":["string","null"],"maxLength":20},"extension":{"type":["string","null"],"maxLength":20}}}}}}
```

## The Emails object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Emails":{"type":"object","properties":{"defaultEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"remittanceEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"ordersEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"invoicingEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"rfqsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"bidRequestsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"integrationEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"},"customerCommentsEmailAddress":{"type":["string","null"],"maxLength":255,"format":"email"}}}}}}
```

## The RemittanceAddress object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"RemittanceAddress":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":255},"companyName":{"type":["string","null"],"maxLength":255},"address":{"$ref":"#/components/schemas/Address"},"managedBy":{"$ref":"#/components/schemas/TenantType"},"modifiedDate":{"type":"string","format":"date-time"},"createdDate":{"type":"string","format":"date-time"}},"required":["id","address","modifiedDate","createdDate"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"},"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}},"TenantType":{"type":"string","maxLength":10,"enum":["COMMUNITY","SUPPLIER"]}}}}
```

## The Address object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"line3":{"type":["string","null"],"maxLength":200},"city":{"type":"string","maxLength":200},"region":{"$ref":"#/components/schemas/Region"},"postcode":{"type":["string","null"],"maxLength":20},"country":{"type":"string","maxLength":255}},"required":["line1","city","country"]},"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}}}}}
```

## The Region object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"Region":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255},"code":{"type":["string","null"],"maxLength":100}}}}}}
```

## The PaymentTerm object

```json
{"openapi":"3.1.0","info":{"title":"Nova Public API","version":"1.0.0"},"components":{"schemas":{"PaymentTerm":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"code":{"type":"string","maxLength":35},"active":{"type":"boolean"},"days":{"type":["integer","null"]},"termType":{"type":"string","maxLength":40,"enum":["DAYS_AFTER_THE_INVOICE_DATE","OF_THE_CURRENT_MONTH","OF_THE_FOLLOWING_MONTH","IMMEDIATELY"]},"description":{"type":["string","null"],"maxLength":2000}},"required":["id","code","active","termType"]},"Id":{"type":"string","format":"uuid","description":"Primary identifier (UUID)"}}}}
```


