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

# Update Vendor Advance

POST https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance
Content-Type: application/json

**update Vender Advance Details**

This endpoint is a POST method used to update the vendors advance Details.

### Request Body

| Param | Required | Type | Description |
| --- | --- | --- | --- |
| advanceId | Mandatory | String | advanceId for vender |
| data | Mandatory | Object | Additional data related to the vendor. |
| type | Optional | String | Integration Type |
| logo | Optional | String | Integration Type logo |
| postingTriggeredAt | Optional | Number | Epoch time of posting |
| postingErrors | Optional | String | Error message during posting. |
| postingDocNo | Optional | String | Document Number of Integration |
| postingTriggered | Optional | Boolean | Flag that Indicates posting is triggered. |
| postingFailed | Optional | Boolean | Indicates that Integrationg faild during posting. |
| postingSynced | Optional | Boolean | Indicates that document sync successfully. |

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/vendor/vendor-advance/update-vendor-advance

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Headers

- `DICE-APP-ID` (string, optional)
- `X-CLIENT-ID` (string, optional)
- `X-CLIENT-SECRET` (string, optional)

### Body (application/json)

- `advanceId` (string, required)
- `data` (object, required)
- `type` (string, required)
- `logo` (string, required)
- `postingTriggeredAt` (integer, required)
- `postingErrors` (string, required)
- `postingDocNo` (string, required)
- `postingTriggered` (boolean, required)
- `postingFailed` (boolean, required)
- `postingSynced` (boolean, required)

## Response

### 200

OK

## Examples

**Request**

```json
{
  "advanceId": "",
  "type": "",
  "logo": "",
  "postingTriggeredAt": 0,
  "postingErrors": "",
  "postingDocNo": "",
  "postingTriggered": false,
  "postingFailed": false,
  "postingSynced": false
}
```

**Response**

```json
{}
```

**SDK Code**

```python Vendor_Vendor Advance_Update Vendor Advance_example
import requests

url = "https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance"

payload = {
    "advanceId": "",
    "type": "",
    "logo": "",
    "postingTriggeredAt": 0,
    "postingErrors": "",
    "postingDocNo": "",
    "postingTriggered": False,
    "postingFailed": False,
    "postingSynced": False
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Vendor_Vendor Advance_Update Vendor Advance_example
const url = 'https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"advanceId":"","type":"","logo":"","postingTriggeredAt":0,"postingErrors":"","postingDocNo":"","postingTriggered":false,"postingFailed":false,"postingSynced":false}'
};

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

```go Vendor_Vendor Advance_Update Vendor Advance_example
package main

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

func main() {

	url := "https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance"

	payload := strings.NewReader("{\n  \"advanceId\": \"\",\n  \"type\": \"\",\n  \"logo\": \"\",\n  \"postingTriggeredAt\": 0,\n  \"postingErrors\": \"\",\n  \"postingDocNo\": \"\",\n  \"postingTriggered\": false,\n  \"postingFailed\": false,\n  \"postingSynced\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby Vendor_Vendor Advance_Update Vendor Advance_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"advanceId\": \"\",\n  \"type\": \"\",\n  \"logo\": \"\",\n  \"postingTriggeredAt\": 0,\n  \"postingErrors\": \"\",\n  \"postingDocNo\": \"\",\n  \"postingTriggered\": false,\n  \"postingFailed\": false,\n  \"postingSynced\": false\n}"

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

```java Vendor_Vendor Advance_Update Vendor Advance_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance")
  .header("Content-Type", "application/json")
  .body("{\n  \"advanceId\": \"\",\n  \"type\": \"\",\n  \"logo\": \"\",\n  \"postingTriggeredAt\": 0,\n  \"postingErrors\": \"\",\n  \"postingDocNo\": \"\",\n  \"postingTriggered\": false,\n  \"postingFailed\": false,\n  \"postingSynced\": false\n}")
  .asString();
```

```php Vendor_Vendor Advance_Update Vendor Advance_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance', [
  'body' => '{
  "advanceId": "",
  "type": "",
  "logo": "",
  "postingTriggeredAt": 0,
  "postingErrors": "",
  "postingDocNo": "",
  "postingTriggered": false,
  "postingFailed": false,
  "postingSynced": false
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Vendor_Vendor Advance_Update Vendor Advance_example
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"advanceId\": \"\",\n  \"type\": \"\",\n  \"logo\": \"\",\n  \"postingTriggeredAt\": 0,\n  \"postingErrors\": \"\",\n  \"postingDocNo\": \"\",\n  \"postingTriggered\": false,\n  \"postingFailed\": false,\n  \"postingSynced\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Vendor_Vendor Advance_Update Vendor Advance_example
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "advanceId": "",
  "type": "",
  "logo": "",
  "postingTriggeredAt": 0,
  "postingErrors": "",
  "postingDocNo": "",
  "postingTriggered": false,
  "postingFailed": false,
  "postingSynced": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/vendor/updateVendorAdvance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```