---
description: Obsolete endpoint
---

# Exports Marketplace invoice

## Infos to generate an intermediate invoice (for Marketplace)

<mark style="color:green;">`POST`</mark> `https://api.transiteo.io/v1/pdf/generate/agent_inv/en`

This endpoint allows you to generate a cross border commercial intermediate invoice.

#### Headers

| Name                                             | Type   | Description      |
| ------------------------------------------------ | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark>   | string | application/json |
| Authentication<mark style="color:red;">\*</mark> | string | "id\_token"      |

{% tabs %}
{% tab title="200 " %}
```
{
    "id": string,
    "signed_url": url,
    "lang": string,
    "expireTime": timestamp,
    "date": timestamp
}
```
{% endtab %}
{% endtabs %}

### JSON Request Format

```
{
    "agent_address": "string",
    "agent_city": "string",
    "agent_country": "string",
    "agent_eori": "string",
    "agent_logo": "string",
    "agent_name": "string",
    "agent_zipcode": "string",
    
    "company_id": "string",
    "customer_service_info": "string",
    "Date": "string",
    "delivery_info": "string",
    
    "discount": number,
    "discount_currency": "string",
    
    "invoice_id": "string",
    
    "order_date": "string",
    "order_id": "string",
    "order_others_terms": "string",
    "order_payment_date": "string",
    "order_payment_type": "string",
    "other_seller_informations": "string",
    
    "product_delivery_unit_price_1": number,
    "product_delivery_unit_price_2": number,
    "product_delivery_unit_price_3": number,
    "product_delivery_unit_price_4": number,
    
    "product_duty_unit_price_1": number,
    "product_duty_unit_price_2": number,
    "product_duty_unit_price_3": number,
    "product_duty_unit_price_4": number,
    
    "product_quantity_1": number,
    "product_quantity_2": number,
    "product_quantity_3": number,
    "product_quantity_4": number,
    
    "product_special_taxes_1_price_1": number,
    "product_special_taxes_1_price_2": number,
    "product_special_taxes_1_price_3": number,
    "product_special_taxes_1_price_4": number,
    
    "product_special_taxes_number_price_1": number,
    "product_special_taxes_number_price_2": number,
    "product_special_taxes_number_price_3": number,
    "product_special_taxes_number_price_4": number,
    
    "product_unit_price_1": number,
    "product_unit_price_2": number,
    "product_unit_price_3": number,
    "product_unit_price_4": number,
    
    "product_unit_vat_1": number,
    "product_unit_vat_2": number,
    "product_unit_vat_3": number,
    "product_unit_vat_4": number,
    
    "product_value_1": "string",
    "product_value_2": "string",
    "product_value_3": "string",
    "product_value_4": "string",
    
    "products_amount_global": number,
    "products_amount_global_currency": "string",
    
    "products_delivery_amount_global": number,
    "products_delivery_amount_global_currency": "string",
    
    "products_duty_amount_global": number,
    "products_duty_amount_global_currency": "string",
    
    "products_special_taxes_1_amount_global": number,
    "products_special_taxes_1_amount_global_currency": "string",
    "products_special_taxes_2_amount_global": number,
    "products_special_taxes_2_amount_global_currency": "string",
    
    "products_vat_amount_global": number,
    "products_vat_amount_global_currency": "string",
    
    "refund_amount": number,
    "reverse_logistic_terms": "string",
    
    "seller_address": "string",
    "seller_address_1": "string",
    "seller_brand": "string",
    "seller_eori": "string",
    "seller_name": "string",
    
    "special_taxes_1_name": "string",
    "special_taxes_2_name": "string",
    
    "vat_id": "string",
    "vat_rates": number
}
```

### JSON Response Format

```
{
    "id": string,
    "signed_url": url,
    "lang": string,
    "expireTime": timestamp,
    "date": timestamp
}
```

### View of Cross Border Commercial Invoice (pdf)

![Cross Border Commercial Invoice](https://2749093152-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M72Sazc4Ua4Dthy_cKt%2F-MTM2mgWfvEyVEpy3gSh%2F-MTQbzvXjP6gEO5C76ER%2FAgent_invoice.jpg?alt=media\&token=901b6d71-6bd9-4282-a70d-750df0a22cf2)
