> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tabs.com/_mcp/server.

# Get an invoice's AP portal submission

GET https://integrators.prod.api.tabsplatform.com/v16/customers/{customerId}/invoices/{invoiceId}/ap-portal-submission

Returns the invoice's AP portal submission, or 404 if the invoice has none.

Reference: https://docs.tabs.com/api-reference/ap-portal/integrators-api-ap-portal-submissions-controller-get-ap-portal-submission

## Authentication

- `Authorization` header (required)

## Request

### Path parameters

- `customerId` (string, required) — Customer ID
- `invoiceId` (string, required) — Invoice ID

## Response

### 200

The AP portal submission

- `payload` (object, required) — Response payload, will be empty when success is false
  - `id` (string, required) — Unique identifier of the submission
  - `invoiceId` (string, required) — Invoice this submission tracks
  - `accountId` (string, required, nullable) — Customer AP portal mapping this submission went through
  - `portal` (enum, required) — AP portal the invoice was submitted into
    - Allowed values: `COUPA`, `ARIBA`, `TUNGSTEN`, `TAULIA`, `OTHER`
  - `portalName` (string, required, nullable) — Free-text portal name. Set only when portal is OTHER, null otherwise.
  - `status` (enum, required) — Where the invoice sits in the portal
    - Allowed values: `SUBMITTED`, `IN_REVIEW`, `APPROVED`, `SCHEDULED`, `PAID`, `NEEDS_ATTENTION`
  - `statusDetail` (string, required, nullable) — Raw portal status, or why the invoice needs attention (e.g. a rejection reason)
  - `portalExternalId` (string, required, nullable) — Identifier of this submission inside the portal itself
  - `amount` (string, required) — Invoice total at the time of submission. Copied from the invoice, not caller supplied.
  - `currency` (string, required) — Currency of the amount
  - `submittedAt` (datetime, required) — When the invoice was submitted
  - `estimatedPaymentAt` (datetime, required, nullable) — Expected payment date. Null until the portal schedules payment.
  - `paidAt` (datetime, required, nullable) — Actual payment date. Null until the portal marks it paid.
  - `lastSyncedAt` (datetime, required) — When the submission was last reconciled
  - `createdAt` (datetime, required) — When the submission was created
  - `updatedAt` (datetime, required) — When the submission was last updated
- `success` (boolean, required) — Boolean with true=success, false=failure
- `message` (string, required) — Plain-text description of the result
- `error` (object, optional) — json element with any error messages or warnings
  - `code` (double, required) — API response code
  - `message` (string, required) — API response message
  - `details` (object, optional) — Additional details about the error

## Examples

**Response**

```json
{
  "payload": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "invoiceId": "123e4567-e89b-12d3-a456-426614174000",
    "accountId": "123e4567-e89b-12d3-a456-426614174000",
    "portal": "COUPA",
    "portalName": "Acme AP Hub",
    "status": "SUBMITTED",
    "statusDetail": "Rejected: PO number missing",
    "portalExternalId": "REQ-88213",
    "amount": "1250.00",
    "currency": "USD",
    "submittedAt": "2023-01-01T00:00:00.000Z",
    "estimatedPaymentAt": "2023-02-01T00:00:00.000Z",
    "paidAt": "2023-02-03T00:00:00.000Z",
    "lastSyncedAt": "2023-01-01T00:00:00.000Z",
    "createdAt": "2023-01-01T00:00:00.000Z",
    "updatedAt": "2023-01-01T00:00:00.000Z"
  },
  "success": true,
  "message": "string",
  "error": {
    "code": 1.1,
    "message": "string",
    "details": {}
  }
}
```

**SDK Code**

```python
import requests

url = "https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission"

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://integrators.prod.api.tabsplatform.com/v16/customers/123e4567-e89b-12d3-a456-426614174000/invoices/123e4567-e89b-12d3-a456-426614174000/ap-portal-submission")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```