Create a new invoice draft from EN16931-compatible JSON data.
This endpoint allows you to create a draft invoice that can be validated and refined before final submission. Drafts support partial data and can be updated multiple times before validation.
Specification identifier (BT-24). None means no profile has been chosen yet - resolved to a concrete value at finalization (see resolve_draft_invoice_type).
VAT accounting currency code (BT-6) - ISO 4217
Value added tax point date (BT-8)
BT-23 values for French invoice types (BR-FR-08 cadre de facturation).
First letter: B=Biens, S=Services, M=Mixte (biens+services non accessoires).
Buyer reference (BT-10) - An identifier assigned by the buyer used for internal routing. Either buyer_reference or purchase_order_reference must be provided.
Purchase order reference (BT-13)
Sales order reference (BT-14)
Receiving advice reference (BT-15)
Despatch advice reference (BT-16)
Tender or lot reference (BT-17)
Invoiced object identifier (BT-18)
Buyer accounting reference (BT-19)
Seller tax representative party (BG-11).
Required when the Seller (BG-4) has appointed a tax representative. EN16931 BR-18/BR-19/BR-20: when present, the name (BT-62), postal address (BG-12) and the country code (BT-69) within it are mandatory; those are modelled here as required fields so construction enforces them.
Payment means type code (BT-81)
Remittance information (BT-83)
Payment account identifier / IBAN (BT-84)
Payment service provider identifier / BIC (BT-86)
Deprecated: use purchase_order_reference instead
Deprecated: use notes instead. Invoice note (BT-22)
For credit notes - reference to original invoice (BT-25)
For credit notes - issue date of the referenced original invoice (BT-26)
Delivery information (BG-13) including the deliver to address (BG-15).
Models the EN16931 DELIVERY INFORMATION group end-to-end so it survives UBL/CII round-trips. Excludes the invoicing period (BG-14, BT-73/74) which is tracked separately on the invoice model.
- Dev serverhttps://pdp.seqino.dev/api/drafts
- Production serverhttps://pa.seqino.com/api/drafts
curl -i -X POST \
https://pdp.seqino.dev/api/drafts \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'X-PDP-Client-Id: client_abc123' \
-d '{
"specification_identifier": "string",
"issue_date": "2019-08-24",
"due_date": "2019-08-24",
"type_code": "380",
"currency_code": "string",
"tax_currency_code": "string",
"tax_point_date": "2019-08-24",
"value_added_tax_point_date": "2019-08-24",
"business_process_type": "B1",
"buyer_reference": "string",
"purchase_order_reference": "string",
"sales_order_reference": "string",
"receiving_advice_reference": "string",
"despatch_advice_reference": "string",
"tender_or_lot_reference": "string",
"invoice_object_identifier": "string",
"buyer_accounting_reference": "string",
"project_reference": "string",
"contract_reference": "string",
"seller": {
"name": "string",
"postal_address": {
"street_name": "string",
"additional_street_name": "string",
"city_name": "string",
"postal_zone": "string",
"country_subdivision": "string",
"country_code": "string"
},
"electronic_address": {
"scheme_id": "string",
"value": "string"
},
"tax_registrations": [
{
"scheme_id": "string",
"value": "string"
}
],
"legal_registration_name": "string",
"trading_name": "string",
"party_identifier": "string",
"party_identifier_scheme": "string",
"seller_identifier": "string",
"seller_identifier_scheme": "string",
"seller_vat_identifier": "string",
"seller_tax_registration_identifier": "string",
"seller_additional_legal_information": "string"
},
"buyer": {
"name": "string",
"postal_address": {
"street_name": "string",
"additional_street_name": "string",
"city_name": "string",
"postal_zone": "string",
"country_subdivision": "string",
"country_code": "string"
},
"electronic_address": {
"scheme_id": "string",
"value": "string"
},
"tax_registrations": [
{
"scheme_id": "string",
"value": "string"
}
],
"legal_registration_name": "string",
"trading_name": "string",
"party_identifier": "string",
"party_identifier_scheme": "string",
"buyer_identifier": "string",
"buyer_identifier_scheme": "string",
"buyer_legal_registration_identifier": "string",
"buyer_vat_identifier": "string"
},
"payee": {
"name": "string",
"identifier": "string",
"identifier_scheme": "string",
"legal_registration_id": "string",
"legal_registration_id_scheme": "string"
},
"seller_tax_representative": {
"name": "string",
"vat_identifier": "string",
"postal_address": {
"street_name": "string",
"additional_street_name": "string",
"city_name": "string",
"postal_zone": "string",
"country_subdivision": "string",
"country_code": "string"
}
},
"invoice_lines": [
{
"line_id": "string",
"invoiced_quantity": 0,
"unit_of_measure": "string",
"line_net_amount": 0,
"item_name": "string",
"item_description": "string",
"item_seller_identifier": "string",
"item_buyer_identifier": "string",
"item_standard_identifier": "string",
"item_standard_identifier_scheme": "string",
"item_classification_identifiers": [
"string"
],
"item_price": 0,
"item_price_discount": 0,
"item_gross_price": 0,
"item_price_base_quantity": 0,
"item_price_base_quantity_unit": "string",
"vat_category_code": "S",
"vat_rate": 0,
"allowances": [
{
"amount": 0,
"base_amount": 0,
"percentage": 0,
"reason": "string",
"reason_code": "string"
}
],
"charges": [
{
"amount": 0,
"base_amount": 0,
"percentage": 0,
"reason": "string",
"reason_code": "string"
}
]
}
],
"vat_breakdowns": [
{
"category_code": "S",
"rate": 0,
"taxable_amount": 0,
"tax_amount": 0,
"exemption_reason": "string",
"exemption_reason_code": "string"
}
],
"document_totals": {
"sum_of_line_net_amounts": 0,
"sum_of_allowances": 0,
"sum_of_charges": 0,
"invoice_total_without_vat": 0,
"invoice_total_vat_amount": 0,
"invoice_total_with_vat": 0,
"paid_amount": 0,
"rounding_amount": 0,
"amount_due_for_payment": 0
},
"payment_terms": {
"description": "string",
"due_date": "2019-08-24"
},
"payment_means_type_code": "string",
"payment_means_text": "string",
"remittance_information": "string",
"payment_account_identifier": "string",
"payment_account_name": "string",
"payment_service_provider_identifier": "string",
"notes": [
{
"content": "string",
"subject_code": "string"
}
],
"order_reference": "string",
"invoice_note": "string",
"preceding_invoice_reference": "string",
"preceding_invoice_issue_date": "2019-08-24",
"delivery": {
"deliver_to_party_name": "string",
"location_identifier": "string",
"location_identifier_scheme": "string",
"actual_delivery_date": "2019-08-24",
"deliver_to_address": {
"address_line_1": "string",
"address_line_2": "string",
"address_line_3": "string",
"city_name": "string",
"postal_zone": "string",
"country_subdivision": "string",
"country_code": "string"
}
}
}'Successful Response
Invoice lifecycle status.
Aligned with DGFIP e-invoicing status codes (statuts de cycle de vie):
- draft — Pre-submission state
- submitted (200) — Invoice deposited and validated by the sending PDP (mandatory)
- received (202) — Invoice received by the receiving PDP
- processed — Invoice accepted for routing
- accepted (205) — Recipient accepted the invoice
- partially_accepted (206) — Recipient approved only part of the invoice
- refused (210) — Recipient refused the invoice (mandatory)
- paid (211) — Buyer marked the invoice as paid
- rejected (213) — PDP detected an anomaly on the invoice (mandatory)
- cashed (212) — Supplier confirmed receipt of payment (mandatory)
{ "draft_id": "string", "status": "draft", "created_at": "2019-08-24T14:15:22Z" }