Checked-in OpenAPI 3.1 contract
API reference
Read the EuniPay server API contract, request fields, response schemas, and examples. This reference never sends a request or accepts an API key.
Sales
Record fully paid sales independently of Quote, payment connection, or Receipt creation.
/v1/sales/{sale_id}/tax-reviewreviewSaleTax
Confirm historical sale tax evidence
Requires complete supported historical evidence and an owned registration covering the tax date. Appends a confirmed tax version. Current registrations and present-day VAT validation never substitute for historical proof. The source filing_status field does not mark a filing period filed. Changes to material tax attribution of an already confirmed sale require a linked correction; evidence-only supplementation remains available.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_versionintegerrequired- Format: int64
- Minimum: 1
evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
tax_datestringrequired- Format: date
Responses
Current effective sale with a new confirmed tax version
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredsale_idstringrequiredintegration_idstringrequiredsource_systemstringrequiredexternal_sale_idstringrequiredtax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstringrequired- Allowed: api · import · managed_payment
external_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstringtax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanrequiredtax_statusstringrequired- Allowed: needs_review · confirmed · unsupported
tax_versionintegerrequired- Format: int64
receipt_idstringcreated_atstringrequired- Format: date-time
base_amountunknown- Any of: 2 schemas
Any-of schema 1
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
Any-of schema 2
No schema constraints provided.
base_to_payment_ratestring | nullmissingarray | null- Items: string
Array item schema
- Allowed: tax_amount · tax_date · base_fx · registration · buyer_country · historical_coverage
refunded_gross_amountinteger- Format: int64
/v1/sales/{sale_id}/correctionslistSaleCorrections
List sale corrections
Lists immutable linked adjustments in tax-version order. Original sale facts and filed snapshots remain preserved.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Sale correction history
application/json
No example provided.
dataobjectrequireditemsarrayrequired- Items: object
Array item schema
adjustment_idstringrequiredsale_idstringrequiredbase_tax_versionintegerrequired- Format: int64
tax_versionintegerrequired- Format: int64
currencystringrequiredgross_deltaintegerrequired- Format: int64
net_deltainteger | nullrequired- Format: int64
vat_deltainteger | nullrequired- Format: int64
replacement_amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
reasonstringrequiredactorobjectrequiredkindstring- Allowed: user · api_key
idstring
created_atstringrequired- Format: date-time
totalintegerrequired- Format: int64
/v1/sales/{sale_id}/correctionscorrectSale
Append a sale correction
Creates a linked replacement relative to the current effective version. The original sale, actual payment and filed snapshots remain immutable. Replays with identical facts return the same adjustment; changed facts or stale versions conflict. Monetary changes without new FX evidence clear base totals. Corrections without complete review evidence remain needs_review.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
sale_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_versionintegerrequired- Format: int64
- Minimum: 1
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
evidenceobject- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
tax_datestring- Format: date
reasonstringrequired- Minimum length: 1
- Maximum length: 2000
Responses
Linked immutable correction
application/json
No example provided.
dataobjectrequiredadjustment_idstringrequiredsale_idstringrequiredbase_tax_versionintegerrequired- Format: int64
tax_versionintegerrequired- Format: int64
currencystringrequiredgross_deltaintegerrequired- Format: int64
net_deltainteger | nullrequired- Format: int64
vat_deltainteger | nullrequired- Format: int64
replacement_amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
reasonstringrequiredactorobjectrequiredkindstring- Allowed: user · api_key
idstring
created_atstringrequired- Format: date-time
/v1/sales/importslistSalesImports
List import batches
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Import result
application/json
No example provided.
dataobjectitemsarrayrequired- Items: object
Array item schema
idstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
totalintegerrequired
/v1/sales/importscreateSalesImport
Upload sales or completed refunds
CSV and JSON use the same v1 fields. Money is decimal major-unit text. Scope and actor come from authentication. File and JSON input are limited to 10 MiB and 10000 rows. Preflight never posts sales.
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
kindstringrequired- Allowed: sales · refunds
template_versionstringrequired- Allowed: v1
source_systemstringrequired- Minimum length: 1
- Maximum length: 64
rowsarrayrequired- Minimum items: 1
- Maximum items: 10000
- Items: object
Array item schema
No schema constraints provided.
Responses
Import result
application/json
No example provided.
dataobjectidstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/sales/imports/{batch_id}getSalesImport
Read an import batch
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Responses
Import result
application/json
No example provided.
dataobjectidstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/sales/imports/{batch_id}/rowsgetSalesImportRows
Read checked import rows
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
status | query | Optional |
| — |
issue_code | query | Optional |
| — |
external_sale_id | query | Optional |
| — |
problems_only | query | Optional |
| — |
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Import result
application/json
No example provided.
dataobjectitemsarrayrequired- Items: object
Array item schema
row_numberintegerrequiredstatusstringrequired- Allowed: pending · invalid · conflict · duplicate · needs_tax_review · ready
post_statusstringrequired- Allowed: pending · posted · failed
sale_idstringrefund_idstringerror_codestringrawobjectrequiredoriginal_valuesarray- Items: string
Array item schema
No schema constraints provided.
inferred_fieldsarray- Items: string
Array item schema
No schema constraints provided.
issuesarrayrequired- Items: object
Array item schema
codestringrequiredfieldstringrequiredmessage_keystringrequiredseveritystringrequired- Allowed: error · warning
parametersobject
saleobjectsource_systemstringexternal_sale_idstringacquisitionstring- Allowed: import
tax_sourcestringexternal_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringpaid_atstringtax_datestringamountobjectcurrencystringgross_amountinteger- Format: int64
net_amountinteger | null- Format: int64
vat_amountinteger | null- Format: int64
tax_evidenceobjectissue_receiptboolean
refundobjectexternal_refund_idstringsale_source_systemstringexternal_sale_idstringrefunded_atstring- Format: date-time
amountobjectcurrencystringgross_amountinteger- Format: int64
net_amountinteger | null- Format: int64
vat_amountinteger | null- Format: int64
provider_refund_idstringreasonstringoriginal_tax_versioninteger- Format: int64
totalintegerrequired
/v1/sales/imports/{batch_id}/validatevalidateSalesImport
Check import data
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
Responses
Import result
application/json
No example provided.
dataobjectidstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/sales/imports/{batch_id}/commitcommitSalesImport
Post selected import rows
Only explicit row numbers from the checked batch revision are accepted. Incomplete tax evidence requires include_tax_review=true. Idempotency-Key binds the accepted selection.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Idempotency-Key | header | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_revisionintegerrequired- Minimum: 1
row_numbersarrayrequired- Minimum items: 1
- Maximum items: 10000
- Items must be unique
- Items: integer
Array item schema
- Minimum: 1
include_tax_reviewboolean- Default: false
idempotency_keystring- Maximum length: 255
Responses
Import result
application/json
No example provided.
dataobjectidstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/sales/imports/{batch_id}/cancelcancelSalesImport
Cancel remaining import work
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_revisionintegerrequired- Minimum: 1
Responses
Import result
application/json
No example provided.
dataobjectidstringrevisionintegerstatestring- Allowed: uploaded · validating · validated · committing · completed · partial_failed · canceled
total_rowsintegerprocessed_rowsintegerselected_rowsintegercountsobjectcandidate_currenciesarray- Items: object
Array item schema
currencystringgross_amountstringExact minor-unit aggregate as decimal integer text; currencies stay separate.
known_net_amountstringknown_vat_amountstringunknown_vat_countinteger
merchant_idstringintegration_idstringenvironmentstring- Allowed: test · live
source_systemstringkindstring- Allowed: sales · refunds
template_versionstring- Allowed: v1
file_namestringfile_hashstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/sales/imports/{batch_id}/results.csvdownloadSalesImportResults
Download import data
Downloaded data keeps the standard columns. A generated export marker makes spreadsheet apostrophe escaping reversible. Problem downloads contain data only; row issues are returned by the rows endpoint.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Responses
UTF-8 comma-separated CSV attachment
text/csv
No example provided.
No schema constraints provided.
/v1/sales/imports/{batch_id}/issues.csvdownloadSalesImportIssues
Download problem data
Downloaded data keeps the standard columns. A generated export marker makes spreadsheet apostrophe escaping reversible. Problem downloads contain data only; row issues are returned by the rows endpoint.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
batch_id | path | Required |
| — |
Responses
UTF-8 comma-separated CSV attachment
text/csv
No example provided.
No schema constraints provided.
/v1/sales/import-templates/{kind}downloadSalesImportTemplate
Download a versioned CSV template
Blank templates contain headers only. Examples use EXAMPLE- identifiers, which cannot be posted.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
kind | path | Required |
| — |
version | query | Optional |
| — |
example | query | Optional |
| — |
Responses
UTF-8 comma-separated CSV attachment
text/csv
No example provided.
No schema constraints provided.
/v1/saleslistSales
List all sale sources
Returns all sale sources with optional Quote and Receipt. Unknown amounts and base FX remain null; tax_date is YYYY-MM-DD. No raw or encrypted IP, stored snapshots, or mutable payment connection evidence is returned.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
currency | query | Optional |
| — |
batch_id | query | Optional |
| — |
from | query | Optional |
| — |
to | query | Optional |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Scoped sale data; Cache-Control is private, no-store
application/json
No example provided.
dataobjectitemsarrayrequired- Items: object
Array item schema
sale_idstringrequiredintegration_idstringrequiredsource_systemstringrequiredexternal_sale_idstringrequiredtax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstringrequired- Allowed: api · import · managed_payment
external_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstringtax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanrequiredtax_statusstringrequired- Allowed: needs_review · confirmed · unsupported
tax_versionintegerrequired- Format: int64
receipt_idstringcreated_atstringrequired- Format: date-time
base_amountunknown- Any of: 2 schemas
Any-of schema 1
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
Any-of schema 2
No schema constraints provided.
base_to_payment_ratestring | nullmissingarray | null- Items: string
Array item schema
- Allowed: tax_amount · tax_date · base_fx · registration · buyer_country · historical_coverage
refunded_gross_amountinteger- Format: int64
totalintegerrequired- Format: int64
/v1/salescreateSale
Record an already fully paid sale
Business and environment come from the API key. External and unknown tax sources need no Quote or payment connection, enter needs_review, and do not create payments, receipts, PDF jobs, or notifications. Payment references are unverified Stripe declarations. Same Business/environment/source_system/external_sale_id and identical facts replay; conflicting facts or a payment reference already used by another sale return 409. Changing source_system does not bypass payment reference deduplication. Quote source uses frozen amounts and evidence and may issue a Receipt when issue_receipt is true. Legacy transactions/confirm retains its required Receipt response.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
source_systemstringrequiredOrigin identifier; not a trusted payment platform
- Minimum length: 1
- Maximum length: 64
external_sale_idstringrequired- Minimum length: 1
- Maximum length: 128
tax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstring- Allowed: api
- Default: api
external_customer_idstring- Maximum length: 255
external_document_numberstring- Maximum length: 255
provider_account_idstringUnverified Stripe account declaration; requires provider_payment_id
- Maximum length: 255
provider_payment_idstringUnverified Stripe payment declaration; deduplicated with account across origin systems and Businesses within merchant/environment
- Maximum length: 255
descriptionstring- Maximum length: 500
sold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstring | nullRequired only for eunipay_quote; forbidden for external or unknown
- Maximum length: 48
tax_evidenceobject- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanSupported for a fully validated Quote source; external evidence requires the later receipt issuance workflow
- Default: false
Responses
Immutable sale created or replayed
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredsale_idstringrequiredintegration_idstringrequiredsource_systemstringrequiredexternal_sale_idstringrequiredtax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstringrequired- Allowed: api · import · managed_payment
external_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstringtax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanrequiredtax_statusstringrequired- Allowed: needs_review · confirmed · unsupported
tax_versionintegerrequired- Format: int64
receipt_idstringcreated_atstringrequired- Format: date-time
base_amountunknown- Any of: 2 schemas
Any-of schema 1
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
Any-of schema 2
No schema constraints provided.
base_to_payment_ratestring | nullmissingarray | null- Items: string
Array item schema
- Allowed: tax_amount · tax_date · base_fx · registration · buyer_country · historical_coverage
refunded_gross_amountinteger- Format: int64
/v1/sales/{sale_id}getSale
Read a unified sale
Returns all sale sources with optional Quote and Receipt. Unknown amounts and base FX remain null; tax_date is YYYY-MM-DD. No raw or encrypted IP, stored snapshots, or mutable payment connection evidence is returned.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
Responses
Scoped sale data; Cache-Control is private, no-store
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredsale_idstringrequiredintegration_idstringrequiredsource_systemstringrequiredexternal_sale_idstringrequiredtax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstringrequired- Allowed: api · import · managed_payment
external_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstringtax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanrequiredtax_statusstringrequired- Allowed: needs_review · confirmed · unsupported
tax_versionintegerrequired- Format: int64
receipt_idstringcreated_atstringrequired- Format: date-time
base_amountunknown- Any of: 2 schemas
Any-of schema 1
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
Any-of schema 2
No schema constraints provided.
base_to_payment_ratestring | nullmissingarray | null- Items: string
Array item schema
- Allowed: tax_amount · tax_date · base_fx · registration · buyer_country · historical_coverage
refunded_gross_amountinteger- Format: int64
/v1/sales/{sale_id}/refund-recordslistSaleRefundRecords
List sale refund records
Returns provider and external refund records with their shared remaining balance. Historical reads remain available after a capability is disabled.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Sale refunds and remaining original-currency balance
application/json
No example provided.
dataobjectrequireditemsarrayrequired- Items: object
Array item schema
documentobjectnumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
refund_idstringpayment_idstringOriginal independent payment, when applicable.
canonical_refund_idstringAuthoritative shared refund identity when this accepted intent is an alias.
provider_statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
projection_conflictstringLedger projection requires reconciliation; accepted reservation remains held.
transaction_idstringintegration_idstringenvironmentstring- Allowed: test · live
sourcestring- Allowed: merchant · provider · external
external_recordobjectsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
refunded_atstring- Format: date-time
currencystringamountinteger- Format: int64
paymentunknownKnown provider breakdown or null when the split is unknown. External declarations use external_record.amount.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
base_currencystringbaseunknownFrozen base-currency split when available; unknown is null.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
reasonstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
totalintegerrequired- Format: int64
remaining_amountintegerrequired- Format: int64
currencystringrequired
/v1/sales/{sale_id}/refund-recordsrecordExternalRefund
Record a completed external refund
Records an already completed external refund without initiating a provider refund. Provider references remain merchant declarations. Missing tax remains unknown.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
source_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
Responses
Frozen external refund record
application/json
No example provided.
dataobjectrequiredsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
/v1/sales/{sale_id}/tax-assessmentsAssessHistoricalTax
Save a historical VAT assessment without changing the sale
Requires Tax. Uses the recorded tax date, original frozen quote, historical registration and sourced standard-service rates within the returned coverage interval. Present-day VIES never establishes past validation. Missing evidence and unsupported dates, regions or categories are returned as blockers. External free-text evidence is insufficient. Actual gross is unchanged.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
sale_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_versionintegerrequired- Format: int64
- Minimum: 1
Responses
Frozen assessment
application/json
No example provided.
dataobjectrequiredassessment_idstringrequiredsale_idstringrequiredintegration_idstringrequiredenvironmentstringrequired- Allowed: test · live
base_tax_versionintegerrequired- Format: int64
- Minimum: 1
created_atstringrequired- Format: date-time
originalobjectrequiredamountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_datestring | nullrequired- Format: date
tax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
proposedunknownrequired- Any of: 2 schemas
Any-of schema 1
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_datestring | nullrequired- Format: date
tax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
Any-of schema 2
No schema constraints provided.
deltaunknownrequired- Any of: 2 schemas
Any-of schema 1
currencystringrequiredgross_amountintegerrequired- Format: int64
- Constant: 0
net_amountinteger | nullrequired- Format: int64
vat_amountinteger | nullrequired- Format: int64
Any-of schema 2
No schema constraints provided.
coverageobjectrequiredstatusstringrequired- Allowed: covered · blocked
categorystringrequiredtax_datestring | nullrequired- Format: date
valid_fromstringrequired- Format: date-time
valid_untilstringrequiredExclusive end of verified coverage
- Format: date-time
rule_versionstringrequiredrule_sourcesarrayrequired- Items: string
Array item schema
- Format: uri
rate_version_idstringrequiredrate_bpsinteger | nullrequired- Minimum: 0
- Maximum: 5000
rate_sourceobject | nullrequiredprimary_urlstringrequired- Format: uri
methodology_urlstringrequired- Format: uri
checked_atstringrequired- Format: date-time
quote_idstringrequiredseller_identity_idstringrequiredregistrationobject | nullrequiredidstringrequiredschemestringrequiredcountrystringrequirednumberstringrequiredeffective_fromstringrequired- Format: date-time
ended_atstring | nullrequired- Format: date-time
verification_sourcestringrequiredverification_checked_atstring | nullrequired- Format: date-time
declared_atstring | nullrequired- Format: date-time
blockersarrayrequired- Items: object
Array item schema
codestringrequiredfieldstringrequired
/v1/tax-assessments/{assessment_id}GetHistoricalTaxAssessment
Read a frozen historical VAT assessment
Owned Business and environment only. Returns the saved evidence and proposal after modules are disabled; it does not recompute against current data.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
assessment_id | path | Required |
| — |
Responses
Frozen assessment
application/json
No example provided.
dataobjectrequiredassessment_idstringrequiredsale_idstringrequiredintegration_idstringrequiredenvironmentstringrequired- Allowed: test · live
base_tax_versionintegerrequired- Format: int64
- Minimum: 1
created_atstringrequired- Format: date-time
originalobjectrequiredamountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_datestring | nullrequired- Format: date
tax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
proposedunknownrequired- Any of: 2 schemas
Any-of schema 1
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_datestring | nullrequired- Format: date
tax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
Any-of schema 2
No schema constraints provided.
deltaunknownrequired- Any of: 2 schemas
Any-of schema 1
currencystringrequiredgross_amountintegerrequired- Format: int64
- Constant: 0
net_amountinteger | nullrequired- Format: int64
vat_amountinteger | nullrequired- Format: int64
Any-of schema 2
No schema constraints provided.
coverageobjectrequiredstatusstringrequired- Allowed: covered · blocked
categorystringrequiredtax_datestring | nullrequired- Format: date
valid_fromstringrequired- Format: date-time
valid_untilstringrequiredExclusive end of verified coverage
- Format: date-time
rule_versionstringrequiredrule_sourcesarrayrequired- Items: string
Array item schema
- Format: uri
rate_version_idstringrequiredrate_bpsinteger | nullrequired- Minimum: 0
- Maximum: 5000
rate_sourceobject | nullrequiredprimary_urlstringrequired- Format: uri
methodology_urlstringrequired- Format: uri
checked_atstringrequired- Format: date-time
quote_idstringrequiredseller_identity_idstringrequiredregistrationobject | nullrequiredidstringrequiredschemestringrequiredcountrystringrequirednumberstringrequiredeffective_fromstringrequired- Format: date-time
ended_atstring | nullrequired- Format: date-time
verification_sourcestringrequiredverification_checked_atstring | nullrequired- Format: date-time
declared_atstring | nullrequired- Format: date-time
blockersarrayrequired- Items: object
Array item schema
codestringrequiredfieldstringrequired
/v1/tax-assessments/{assessment_id}/acceptAcceptHistoricalTaxAssessment
Accept a frozen assessment and append a revision or correction
Requires an unchanged base tax version and a reason. The server reads all amounts and evidence from the frozen assessment; the browser cannot replace them. Material tax or amount changes append a linked correction, including zero gross differences; evidence-only confirmation uses a tax revision. Original documents and saved filing snapshots are preserved. Repeating the same key and request returns the original acceptance before current version or module checks. This does not submit a VAT return.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
assessment_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
expected_versionintegerrequired- Format: int64
- Minimum: 1
reasonstringrequiredNonblank reason of at most 2000 UTF-8 bytes; NUL is rejected
- Minimum length: 1
- Maximum length: 2000
Responses
Original acceptance result
application/json
No example provided.
dataobjectrequiredsale_idstringrequiredtax_versionintegerrequired- Format: int64
- Minimum: 2
adjustment_idstring
Reports
Export scoped transaction records without cross-currency totals.
/v1/reports/salesgetSalesReport
Read sales management report
Management sales ledger in original currencies, with no cross-currency grand total. Required half-open interval uses frozen tax_date where available; otherwise paid_at only locates the pending record. Missing tax date or historical registration excludes VAT from confirmed_vat_amount. Known external VAT remains separate from confirmed tax. Refund gross is shown separately and does not invent a missing VAT split. Maximum period 366 days, 10000 rows, 32 MiB, 30 seconds. This is not a tax filing document.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped sale data; Cache-Control is private, no-store
application/json
No example provided.
dataobjectitemsarray- Items: unknown
Array item schema
- All of: 2 schemas
All-of schema 1
sale_idstringrequiredintegration_idstringrequiredsource_systemstringrequiredexternal_sale_idstringrequiredtax_sourcestringrequired- Allowed: eunipay_quote · external · unknown
acquisitionstringrequired- Allowed: api · import · managed_payment
external_customer_idstringexternal_document_numberstringprovider_account_idstringprovider_payment_idstringdescriptionstringsold_atstringrequired- Format: date-time
paid_atstringrequired- Format: date-time
tax_datestring | null- Format: date
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
tax_quote_idstringtax_evidenceobjectrequired- Additional properties: not allowed
rate_bpsinteger- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringbuyer_entity_typestring- Allowed: personal · business
buyer_vat_numberstringbuyer_vat_validated_atstringHistorical buyer VAT validation time documented by the supplied evidence
- Format: date-time
buyer_vat_validation_referencestringHistorical validation evidence reference; never fetched as a URL
tax_treatmentstringExternal declaration retained without asserting tax verification
registration_schemestringregistration_countrystringregistration_numberstringevidence_referencestringHistorical evidence index; never fetched as a URL
original_filing_periodstringfiling_statusstring- Allowed: unknown · unfiled · filed
issue_receiptbooleanrequiredtax_statusstringrequired- Allowed: needs_review · confirmed · unsupported
tax_versionintegerrequired- Format: int64
receipt_idstringcreated_atstringrequired- Format: date-time
base_amountunknown- Any of: 2 schemas
Any-of schema 1
Further nested schema omitted.
Any-of schema 2
Further nested schema omitted.
base_to_payment_ratestring | nullmissingarray | null- Items: string
Array item schema
Further nested schema omitted.
refunded_gross_amountinteger- Format: int64
All-of schema 2
refunded_net_amountinteger | null- Format: int64
refunded_vat_amountinteger | null- Format: int64
unknown_refund_vat_countinteger- Format: int64
refunded_known_net_amountinteger- Format: int64
refunded_known_vat_amountinteger- Format: int64
remaining_amountobjectcurrencystringrequiredgross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
totalintegercurrenciesarray- Items: object
Array item schema
currencystringcountinteger- Format: int64
gross_amountinteger- Format: int64
known_net_amountinteger- Format: int64
known_vat_amountinteger- Format: int64
unknown_vat_countinteger- Format: int64
unknown_vat_gross_amountinteger- Format: int64
confirmed_countinteger- Format: int64
confirmed_vat_amountinteger- Format: int64
needs_review_countinteger- Format: int64
unsupported_countinteger- Format: int64
missing_base_fx_countinteger- Format: int64
missing_registration_countinteger- Format: int64
missing_tax_date_countinteger- Format: int64
excluded_vat_countinteger- Format: int64
refunded_gross_amountinteger- Format: int64
refunded_known_net_amountinteger- Format: int64
refunded_known_vat_amountinteger- Format: int64
unknown_refund_vat_countinteger- Format: int64
remaining_gross_amountinteger- Format: int64
remaining_known_net_amountinteger- Format: int64
remaining_known_vat_amountinteger- Format: int64
remaining_unknown_vat_countinteger- Format: int64
vat_payable_amountinteger | null- Format: int64
basisstring- Constant: original_currency_sales_ledger
tax_filing_documentboolean- Constant: false
/v1/reports/vatgetVatReport
Read vat management report
Management sales ledger in original currencies, with no cross-currency grand total. Required half-open interval uses frozen tax_date where available; otherwise paid_at only locates the pending record. Missing tax date or historical registration excludes VAT from confirmed_vat_amount. Known external VAT remains separate from confirmed tax. Refund gross is shown separately and does not invent a missing VAT split. Maximum period 366 days, 10000 rows, 32 MiB, 30 seconds. This is not a tax filing document.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped sale data; Cache-Control is private, no-store
application/json
No example provided.
dataobjectcurrenciesarray- Items: object
Array item schema
currencystringcountinteger- Format: int64
gross_amountinteger- Format: int64
known_net_amountinteger- Format: int64
known_vat_amountinteger- Format: int64
unknown_vat_countinteger- Format: int64
unknown_vat_gross_amountinteger- Format: int64
confirmed_countinteger- Format: int64
confirmed_vat_amountinteger- Format: int64
needs_review_countinteger- Format: int64
unsupported_countinteger- Format: int64
missing_base_fx_countinteger- Format: int64
missing_registration_countinteger- Format: int64
missing_tax_date_countinteger- Format: int64
excluded_vat_countinteger- Format: int64
refunded_gross_amountinteger- Format: int64
refunded_known_net_amountinteger- Format: int64
refunded_known_vat_amountinteger- Format: int64
unknown_refund_vat_countinteger- Format: int64
remaining_gross_amountinteger- Format: int64
remaining_known_net_amountinteger- Format: int64
remaining_known_vat_amountinteger- Format: int64
remaining_unknown_vat_countinteger- Format: int64
vat_payable_amountinteger | null- Format: int64
groupsarray- Items: unknown
Array item schema
- All of: 2 schemas
All-of schema 1
currencystringcountinteger- Format: int64
gross_amountinteger- Format: int64
known_net_amountinteger- Format: int64
known_vat_amountinteger- Format: int64
unknown_vat_countinteger- Format: int64
unknown_vat_gross_amountinteger- Format: int64
confirmed_countinteger- Format: int64
confirmed_vat_amountinteger- Format: int64
needs_review_countinteger- Format: int64
unsupported_countinteger- Format: int64
missing_base_fx_countinteger- Format: int64
missing_registration_countinteger- Format: int64
missing_tax_date_countinteger- Format: int64
excluded_vat_countinteger- Format: int64
refunded_gross_amountinteger- Format: int64
refunded_known_net_amountinteger- Format: int64
refunded_known_vat_amountinteger- Format: int64
unknown_refund_vat_countinteger- Format: int64
remaining_gross_amountinteger- Format: int64
remaining_known_net_amountinteger- Format: int64
remaining_known_vat_amountinteger- Format: int64
remaining_unknown_vat_countinteger- Format: int64
vat_payable_amountinteger | null- Format: int64
All-of schema 2
integration_idstringtax_periodstringbuyer_countrystringregistration_schemestringregistration_countrystringregistration_numberstringtax_treatmentstringrate_bpsinteger | null- Format: int64
tax_statusstring- Allowed: needs_review · confirmed · unsupported
basisstring- Constant: original_currency_confirmed_tax_only
tax_filing_documentboolean- Constant: false
/v1/reports/transactions.csvexportTransactionsCSV
Export legacy Quote and Receipt Transactions as CSV
Exports Transactions whose paid_at is in the required half-open [from,to) interval, ordered by paid_at descending then Transaction ID descending. All amounts are integer minor units. Payment and base currencies remain explicit and no cross-currency or grand total is emitted. The export includes merchant-owned buyer/payment identifiers, commercial and VAT-rate versions, redacted VIES and location evidence metadata, Receipt state, and payment provider references. It never includes raw or encrypted IP data, VAT numbers, Buyer contact/address data, VIES raw responses, private object keys, PDF checksums, or stored snapshots. The requested interval may span at most 366 days. Each export is limited to 10,000 Transactions and 32 MiB of projected text. The same 30-second budget covers the database query and CSV encoding.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| Inclusive paid_at lower bound. |
to | query | Required |
| Exclusive paid_at upper bound. |
buyer_country | query | Optional |
| — |
buyer_entity_type | query | Optional |
| — |
tax_mode | query | Optional |
| — |
payment_currency | query | Optional |
| — |
rate_bps | query | Optional |
| — |
registration_scheme | query | Optional |
| — |
Responses
UTF-8 transaction CSV with a fixed header and formula-safe text cells
text/csv
transaction_id,integration_id,tax_quote_id,buyer_id,external_customer_id,external_payment_attempt_id,confirmation_source,merchant_reference,provider_session_id,provider_payment_id,paid_at,confirmed_at,late_confirmed,buyer_country,buyer_entity_type,line_description,tax_mode,rate_bps,payment_currency,payment_gross_minor,payment_net_minor,payment_vat_minor,business_payment_gross_minor,business_payment_net_minor,business_payment_vat_minor,platform_fee_payment_gross_minor,platform_fee_payment_net_minor,platform_fee_payment_vat_minor,base_currency,base_gross_minor,base_net_minor,base_vat_minor,business_base_gross_minor,business_base_net_minor,business_base_vat_minor,platform_fee_base_gross_minor,platform_fee_base_net_minor,platform_fee_base_vat_minor,base_to_payment_rate,commercial_rate_version_id,vat_rate_version_id,vies_status,vies_checked_at,vies_request_identifier,location_evidence_status,location_source,location_country,location_checked_at,location_database_build,location_database_checksum,location_country_matches_buyer,receipt_id,receipt_number,receipt_issued_at,receipt_pdf_status
txn_1,,tq_1,buy_1,customer_1,attempt_1,provider,,cs_1,pi_1,2026-07-01T12:00:00Z,2026-07-01T12:01:00Z,true,DE,personal,Service,oss_vat,1900,EUR,11900,10000,1900,0,0,0,0,0,0,SEK,119000,100000,19000,0,0,0,0,0,0,0.100000000000,fx_1,vat_1,skipped,2026-07-01T11:59:00Z,,captured,client_ip,DE,2026-07-01T11:59:00Z,GeoLite2-20260701,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,true,rcp_1,RCP-2026-000001,2026-07-01T12:01:00Z,ready
No schema constraints provided.
/v1/reports/sales.csvexportSalesManagementCSV
Export unified sales as CSV
Exports all sale sources with known, unknown and remaining amounts in original-currency minor units. Unknown components are blank; currencies are not combined.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped original-currency CSV report
text/csv
No example provided.
No schema constraints provided.
/v1/reports/vat.csvexportVatManagementCSV
Export VAT management groups
Management groups by Business, tax month, buyer country, registration, treatment, rate and original currency. Balances include all recorded refunds against the selected sales. This is not a statutory return.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped original-currency CSV report
text/csv
No example provided.
No schema constraints provided.
/v1/reports/refunds.csvexportRefundsManagementCSV
Export refunds by recorded actual date
Filters recorded actual refund dates and preserves original sale period and tax-version references. Historical refunds without a recorded refund date are excluded; they remain readable through the original-sale-period refund corrections. Source and status filters refer to the original sale.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped original-currency CSV report
text/csv
No example provided.
No schema constraints provided.
/v1/reports/sale-corrections.csvexportSaleCorrections
Export sale corrections by actual recording date
Uses the immutable adjustment occurrence time for the half-open date interval. Each row retains the original sale tax date, base and replacement dates and versions, signed minor-unit differences, and the recorded reason. Unknown components are blank. Tax status filters the frozen replacement revision, and source system filters the original sale. Differences must not be added again to current effective totals. This is a management export, not a VAT return.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
from | query | Required |
| — |
to | query | Required |
| — |
integration_id | query | Optional |
| — |
source_system | query | Optional |
| — |
tax_status | query | Optional |
| — |
Responses
Scoped correction occurrence CSV; currencies are never combined
text/csv
No example provided.
No schema constraints provided.
Authentication
Verify an environment-scoped EuniPay server API key.
/v1/auth-checkapiKeyAuthenticationCheck
Verify a server API key without returning application data
Responses
API key authenticated
Integration
Read the non-secret merchant integration readiness projection.
/v1/integration-statusintegrationStatus
Read non-secret merchant integration readiness
The default response preserves the original strict-client field set. Explicitly request per-module readiness with include_capabilities=true. The legacy ready field always describes the full Checkout flow.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
include_capabilities | query | Optional |
| — |
Responses
Scoped seller, currency, Receipt-origin, and readiness projection
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
environmentstringrequired- Allowed: test · live
merchant_idstringrequiredintegration_idstringrequiredsellerobjectrequired- Additional properties: not allowed
configuredbooleanrequiredcountrystringrequiredtax_profilestringrequired- Allowed: · eu_single · eu_multiple · non_eu_none · non_eu_established · unsupported · unknown
versionintegerrequired- Format: int64
- Minimum: 0
currencyobjectrequired- Additional properties: not allowed
configuredbooleanrequiredbase_currencystringrequireddefault_display_currencystringrequiredpayment_currenciesarrayrequired- Items: string
Array item schema
- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Format: int64
- Minimum: 0
checkout_sdk_urlstringrequired- Format: uri
receipt_download_originstringrequired- Format: uri
readybooleanrequiredreadiness_reasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
capabilitiesobject- Additional properties: not allowed
taxobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
paymentsobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
salesobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
refundsobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
reportsobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
receiptsobjectrequiredenabledbooleanrequiredconfiguredbooleanrequiredreadybooleanrequiredreasonsarrayrequired- Items: string
Array item schema
No schema constraints provided.
Payment Context
Resolve the currency and version context required before a strict price is displayed.
/v1/payment-contexts/resolveresolvePaymentContext
Resolve the forced payment currency, display metadata, and informational VAT context
Resolves country in permanent-lock, supplied-IP, then merchant-default order. An unlocked Buyer Profile does not select the country. IP data is not inspected when a valid permanent lock exists. When IP resolution is needed, malformed syntax is rejected while an unknown or temporarily unavailable lookup selects the merchant default. An explicit empty buyer_ip also selects the default. The request never creates a Buyer or formal tax evidence, and buyer_ip is never returned. VAT fields are estimated display information only; create a fresh Tax Quote before a payment is created or confirmed.
Request body
application/json · Required
{
"external_customer_id": "customer_123",
"buyer_ip": "203.0.113.10",
"location_fixture": {
"country": "DE"
}
}- Additional properties: not allowed
external_customer_idstringMerchant-owned identifier. Omit for anonymous display.
- Minimum length: 1
- Maximum length: 128
buyer_ipstringrequiredExplicit empty string permits merchant-default resolution; a nonempty value must be a plain IPv4 or IPv6 address.
- Maximum length: 64
location_fixtureobject- Additional properties: not allowed
countrystringrequiredRequired uppercase two-letter Test-only location country. Live requests are rejected.
- Pattern: ^[A-Z]{2}$
Responses
Resolved currency context with only the applicable rate and configuration metadata
application/json
{
"data": {
"country": "DE",
"country_supported": true,
"source": "ip_country",
"currency": "EUR",
"symbol": "€",
"symbol_position": "before",
"display_precision": 2,
"minor_exponent": 2,
"base_currency": "SEK",
"base_to_payment_rate": "0.087500000000",
"tax_semantics": "inclusive",
"vat_mode": "oss_vat",
"vat_rate_bps": 1900,
"estimated": true,
"rate_version": "rate_test_20260801",
"vat_rate_version_id": "vat_DE_20260801",
"config_version": 3,
"buyer_profile_version": null,
"resolved_at": "2026-08-01T12:00:00Z"
}
}- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
- One of: 4 schemas
countrystring- Pattern: ^[A-Z]{2}$
country_supportedbooleanrequiredsourcestringrequired- Allowed: locked_country · ip_country · default
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
symbolstringrequiredEffective merchant currency symbol for non-transaction presentation.
- Minimum length: 1
- Maximum length: 8
symbol_positionstringrequiredEffective merchant placement of the symbol relative to an amount.
- Allowed: before · after
display_precisionintegerrequiredMerchant-configured non-transaction presentation precision; authoritative amounts remain integer minor units.
- Minimum: 0
- Maximum: 6
minor_exponentintegerrequiredImmutable ISO financial precision used by authoritative integer minor-unit amounts.
- Minimum: 0
- Maximum: 6
base_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
base_to_payment_ratestringrequired- Pattern: ^(0|[1-9][0-9]*)(\.[0-9]{1,12})?$
tax_semanticsstringrequiredThe effective environment default used to interpret an omitted tax_semantics request field; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
vat_modestringrequiredInformational VAT mode; it is not VIES authorization or payment evidence.
- Allowed: domestic_vat · oss_vat · vat_validation_required · location_required · tax_registration_required
vat_rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
estimatedbooleanrequiredrate_versionstringrequiredEmpty only when base and payment currency match and the identity rate 1 applies.
vat_rate_version_idstringrequiredImmutable version identifier of the informational VAT rate.
config_versionintegerrequired- Minimum: 1
buyer_profile_versioninteger | nullrequired- Minimum: 1
resolved_atstringrequired- Format: date-time
One-of schema 1
vat_modeunknownrequired- Constant: location_required
vat_rate_bpsunknownrequired- Constant: 0
vat_rate_version_idunknownrequired- Constant:
tax_semanticsunknownrequired- Constant: exclusive
estimatedunknownrequired- Constant: true
One-of schema 2
vat_modeunknownrequired- Constant: tax_registration_required
vat_rate_bpsunknownrequired- Constant: 0
vat_rate_version_idunknownrequired- Constant:
estimatedunknownrequired- Constant: true
One-of schema 3
vat_modeunknownrequired- Constant: vat_validation_required
vat_rate_bpsunknownrequired- Constant: 0
vat_rate_version_idunknownrequired- Constant:
One-of schema 4
vat_modeunknownrequired- Allowed: domestic_vat · oss_vat
vat_rate_bpsunknownrequired- Minimum: 1
- Maximum: 5000
vat_rate_version_idunknownrequired- Minimum length: 1
Tax Preview
Calculate a non-binding VAT estimate without creating a confirmable snapshot.
/v1/tax-previewscreateTaxPreview
Calculate a non-binding estimated VAT breakdown
Reuses Payment Context country and currency priority without persisting location evidence, allocating an ID, or producing a confirmable token. An authoritative cross-border-business Preview with authoritative Buyer profile evidence performs a fresh VIES check and returns reverse_charge only when it succeeds. Without authoritative Buyer evidence, the Preview remains non-binding in vat_validation_required mode. An unknown buyer country returns buyer_country_required; a known non-EU country returns buyer_country_not_supported. No seller-country VAT fallback is used.
Request body
application/json · Required
{
"buyer_ip": "203.0.113.10",
"payment_currency": "EUR",
"amount": 10000,
"tax_semantics": "exclusive",
"location_fixture": {
"country": "DE"
}
}- Additional properties: not allowed
external_customer_idstringMerchant-owned identifier. Omit for anonymous preview.
- Minimum length: 1
- Maximum length: 128
buyer_ipstringrequired- Maximum length: 64
location_fixtureobject- Additional properties: not allowed
countrystringrequiredRequired uppercase two-letter Test-only location country. Live requests are rejected.
- Pattern: ^[A-Z]{2}$
payment_currencystringrequiredMust equal the currency forced by the freshly resolved Payment Context.
- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
amountintegerrequiredPayment-currency amount in integer minor units, interpreted using tax_semantics.
- Format: int64
- Minimum: 0
tax_semanticsstringOmit to use the selected Test or Live environment default. Inclusive treats amount as the final VAT-inclusive total; exclusive treats amount as the VAT-exclusive net amount.
- Allowed: inclusive · exclusive
Responses
Non-binding estimated tax and dual-currency amount breakdown
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredNon-binding payment output. An authoritative cross-border-business Preview with authoritative Buyer profile evidence performs fresh VIES and returns reverse_charge only when valid; without authoritative Buyer evidence it remains vat_validation_required. It has no ID, Quote ID, or confirmation token.
- Additional properties: not allowed
- One of: 2 schemas
estimatedbooleanrequired- Constant: true
countrystringrequiredResolved buyer country; empty when no supported or known country resolved.
- Pattern: ^$|^[A-Z]{2}$
vat_countrystringrequiredCountry whose versioned VAT rate is used; empty for reverse-charge or pending validation. Unknown locations cannot be previewed.
- Pattern: ^$|^[A-Z]{2}$
country_supportedbooleanrequiredsourcestringrequired- Allowed: locked_country · billing_profile · ip_country · default
modestringrequiredvat_validation_required is non-binding pending validation and is never accepted by Quote confirmation. reverse_charge carries validated zero-VAT evidence.
- Allowed: domestic_vat · oss_vat · reverse_charge · vat_validation_required
tax_semanticsstringrequiredThe effective tax semantic used for this calculation; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
vat_rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
price_multiplierstringrequired- Pattern: ^[1-9][0-9]*\.[0-9]{4}$
vat_rate_version_idstringrequiredEmpty for zero-VAT reverse-charge or pending validation because no VAT rate version is applied.
- Minimum length: 0
vat_rate_effective_atstringrequiredThe zero timestamp for zero-VAT reverse-charge or pending validation because no VAT rate version is applied.
- Format: date-time
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
platform_feeobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
percentage_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 10000
fixed_minorintegerrequired- Format: int64
- Minimum: 0
base_to_payment_ratestringrequiredcommercial_rate_idstringrequiredEmpty only for the identity rate when base and payment currencies match.
config_versionintegerrequired- Minimum: 1
buyer_profile_versioninteger | nullrequired- Minimum: 1
estimated_atstringrequired- Format: date-time
One-of schema 1
modeunknownrequired- Allowed: reverse_charge · vat_validation_required
vat_rate_bpsunknownrequired- Constant: 0
vat_countryunknownrequired- Constant:
vat_rate_version_idunknownrequired- Constant:
vat_rate_effective_atunknownrequired- Constant: 0001-01-01T00:00:00Z
price_multiplierunknownrequired- Constant: 1.0000
One-of schema 2
modeunknownrequired- Allowed: domestic_vat · oss_vat
vat_rate_bpsunknownrequired- Minimum: 1
vat_countryunknownrequired- Pattern: ^[A-Z]{2}$
vat_rate_version_idunknownrequired- Minimum length: 1
vat_rate_effective_atunknownrequired
Tax Quotes
Create and read immutable tax snapshots. Eligible cross-border business Quotes include EuniPay's internal VIES decision evidence; VIES is not a separate public operation.
/v1/tax-quotescreateTaxQuote
Create a time-bounded immutable Tax Quote
Re-resolves the Buyer, location, Payment Context, commercial rate, VAT rate, and when required repeats a fresh VIES check; the Quote remains authoritative. The returned payment amount and expiration must be copied unchanged into one provider-side payment resource. Completed requests are replayed by Idempotency-Key before external dependencies are called. Responses expose only safe Quote binding identities and ip_country/country_source from location evidence; they never expose buyer IP, seller, or VIES snapshots.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
{
"external_payment_attempt_id": "attempt_123",
"external_customer_id": "customer_123",
"buyer_profile_version": 1,
"context_country": "DE",
"context_currency": "EUR",
"config_version": 3,
"rate_version": "rate_test_20260801",
"payment_currency": "EUR",
"amount": 12000,
"tax_semantics": "inclusive",
"description": "Usage credits",
"buyer_ip": "203.0.113.10",
"location_fixture": {
"country": "DE"
},
"vies_fixture": {
"status": "valid"
}
}- Additional properties: not allowed
external_payment_attempt_idstringrequired- Minimum length: 1
- Maximum length: 128
external_customer_idstringrequired- Minimum length: 1
- Maximum length: 128
buyer_profile_versionintegerrequired- Minimum: 1
context_countrystringrequired- Pattern: ^[A-Z]{2}$
context_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Minimum: 1
rate_versionstringrequiredEmpty only when base and payment currency match.
- Maximum length: 48
payment_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
amountintegerrequiredPayment-currency amount in integer minor units, interpreted using tax_semantics.
- Format: int64
- Minimum: 1
tax_semanticsstringOmit to use the selected Test or Live environment default. Inclusive treats amount as the final VAT-inclusive total; exclusive treats amount as the VAT-exclusive net amount.
- Allowed: inclusive · exclusive
descriptionstringrequired- Minimum length: 1
- Maximum length: 500
buyer_ipstringrequiredCurrent raw IPv4 or IPv6 evidence. It is encrypted in the snapshot and never returned.
- Minimum length: 1
- Maximum length: 64
location_fixtureobject- Additional properties: not allowed
countrystringrequiredRequired uppercase two-letter Test-only location country. Live requests are rejected.
- Pattern: ^[A-Z]{2}$
vies_fixtureobjectTest-only. Accepted only for a cross-border business Quote that actually performs VIES validation.
- Additional properties: not allowed
statusstringrequired- Allowed: valid · invalid · unavailable · error
Responses
Immutable Tax Quote created or replayed
application/json
{
"data": {
"tax_quote_id": "tq_test_01J4EXAMPLE",
"external_payment_attempt_id": "attempt_123",
"external_customer_id": "customer_123",
"buyer_profile_version": 1,
"context_country": "DE",
"context_currency": "EUR",
"config_version": 1,
"status": "valid",
"created_at": "2026-08-01T12:00:00Z",
"payment_create_by": "2026-08-01T12:05:00Z",
"expires_at": "2026-08-01T12:35:00Z",
"tax_mode": "reverse_charge",
"tax_semantics": "inclusive",
"rate_bps": 0,
"payment": {
"currency": "EUR",
"gross_amount": 12000,
"net_amount": 12000,
"vat_amount": 0
},
"base": {
"currency": "SEK",
"gross_amount": 137143,
"net_amount": 137143,
"vat_amount": 0
},
"base_currency": "SEK",
"base_to_payment_rate": "0.087500000000",
"rate_version": "rate_test_20260801",
"ip_country": "DE",
"country_source": "test_fixture"
}
}- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
tax_quote_idstringrequiredexternal_payment_attempt_idstringrequired- Minimum length: 1
- Maximum length: 128
external_customer_idstringrequired- Minimum length: 1
- Maximum length: 128
buyer_profile_versionintegerrequired- Format: int64
- Minimum: 1
context_countrystringrequired- Pattern: ^[A-Z]{2}$
context_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Format: int64
- Minimum: 1
statusstringrequired- Allowed: valid · void · expired · confirmed
created_atstringrequired- Format: date-time
payment_create_bystringrequiredThe provider-side payment resource must be created no later than this time.
- Format: date-time
expires_atstringrequiredApply this expiration to the provider-side payment resource where supported.
- Format: date-time
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
tax_semanticsstringrequiredThe effective tax semantic locked by this Quote; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
platform_feeobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
percentage_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 10000
fixed_minorintegerrequired- Format: int64
- Minimum: 0
base_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
base_to_payment_ratestringrequiredrate_versionstringrequiredEmpty only for same-currency identity conversion.
ip_countrystringrequiredCountry code derived from the source IP evidence retained for this Quote. Empty only on replay of a response persisted before country evidence was added.
- Pattern: ^$|^[A-Z]{2}$
country_sourcestringrequiredSafe source label for ip_country; empty only on a historical replay, and no raw or encrypted IP data is returned.
/v1/tax-quotes/{tax_quote_id}getTaxQuote
Get an immutable Tax Quote from its stored snapshot
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
tax_quote_id | path | Required |
| — |
Responses
Stored Tax Quote; no tax or currency values are recalculated
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
tax_quote_idstringrequiredexternal_payment_attempt_idstringrequired- Minimum length: 1
- Maximum length: 128
external_customer_idstringrequired- Minimum length: 1
- Maximum length: 128
buyer_profile_versionintegerrequired- Format: int64
- Minimum: 1
context_countrystringrequired- Pattern: ^[A-Z]{2}$
context_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Format: int64
- Minimum: 1
statusstringrequired- Allowed: valid · void · expired · confirmed
created_atstringrequired- Format: date-time
payment_create_bystringrequiredThe provider-side payment resource must be created no later than this time.
- Format: date-time
expires_atstringrequiredApply this expiration to the provider-side payment resource where supported.
- Format: date-time
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
tax_semanticsstringrequiredThe effective tax semantic locked by this Quote; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
platform_feeobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
percentage_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 10000
fixed_minorintegerrequired- Format: int64
- Minimum: 0
base_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
base_to_payment_ratestringrequiredrate_versionstringrequiredEmpty only for same-currency identity conversion.
ip_countrystringrequiredCountry code derived from the source IP evidence retained for this Quote. Empty only on replay of a response persisted before country evidence was added.
- Pattern: ^$|^[A-Z]{2}$
country_sourcestringrequiredSafe source label for ip_country; empty only on a historical replay, and no raw or encrypted IP data is returned.
/v1/tax-quotes/{tax_quote_id}/voidvoidTaxQuote
Mark a valid Tax Quote void after the merchant expires its payment resource
This operation does not contact or expire the payment provider. It accepts no request body. Repeating it for an already void Quote returns the stored void state. Confirmed, expired, or already-due Quotes cannot be voided.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
tax_quote_id | path | Required |
| — |
Responses
Stored void Tax Quote
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
tax_quote_idstringrequiredexternal_payment_attempt_idstringrequired- Minimum length: 1
- Maximum length: 128
external_customer_idstringrequired- Minimum length: 1
- Maximum length: 128
buyer_profile_versionintegerrequired- Format: int64
- Minimum: 1
context_countrystringrequired- Pattern: ^[A-Z]{2}$
context_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Format: int64
- Minimum: 1
statusstringrequired- Allowed: valid · void · expired · confirmed
created_atstringrequired- Format: date-time
payment_create_bystringrequiredThe provider-side payment resource must be created no later than this time.
- Format: date-time
expires_atstringrequiredApply this expiration to the provider-side payment resource where supported.
- Format: date-time
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
tax_semanticsstringrequiredThe effective tax semantic locked by this Quote; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
platform_feeobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
percentage_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 10000
fixed_minorintegerrequired- Format: int64
- Minimum: 0
base_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
base_to_payment_ratestringrequiredrate_versionstringrequiredEmpty only for same-currency identity conversion.
ip_countrystringrequiredCountry code derived from the source IP evidence retained for this Quote. Empty only on replay of a response persisted before country evidence was added.
- Pattern: ^$|^[A-Z]{2}$
country_sourcestringrequiredSafe source label for ip_country; empty only on a historical replay, and no raw or encrypted IP data is returned.
Checkouts
Create EuniPay-owned Stripe Embedded Checkouts and read their safe merchant fulfilment state.
/v1/checkoutscreateCheckout
Create or replay one EuniPay-owned Stripe Embedded Checkout
Resolves the current Buyer, Billing Profile and IP evidence, Payment Context, commercial rate, VAT rate, and when required VIES before creating the authoritative Tax Quote and Stripe resources. Stripe is charged the Quote's frozen gross amount. The request accepts business inputs only; it does not accept a Tax Quote ID or a context/version snapshot. A simultaneous replay while creation is claimed returns 409 checkout_in_progress and can be retried. Completed replays return the same Checkout with a newly rotated browser token and immutable settlement, and never expose the Stripe Client Secret.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
{
"external_order_id": "topup_123",
"external_customer_id": "customer_123",
"payment_currency": "SEK",
"amount": 10000,
"tax_semantics": "inclusive",
"description": "Usage credits",
"buyer_ip": "203.0.113.10",
"browser_origin": "https://merchant.example",
"return_url": "https://merchant.example/console/billing"
}- Additional properties: not allowed
external_order_idstringrequired- Minimum length: 1
- Maximum length: 128
external_customer_idstringrequired- Minimum length: 1
- Maximum length: 128
payment_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
amountintegerrequiredPayment-currency amount in minor units. Inclusive means the final VAT-inclusive total; exclusive means the VAT-exclusive net amount. Stripe charges the authoritative Tax Quote gross amount.
- Format: int64
- Minimum: 1
tax_semanticsstringrequired- Allowed: inclusive · exclusive
descriptionstringrequired- Minimum length: 1
- Maximum length: 500
buyer_ipstringrequiredCurrent IPv4 or IPv6 evidence; encrypted in the Quote snapshot and never returned.
- Minimum length: 1
- Maximum length: 64
location_fixtureobject- Additional properties: not allowed
countrystringrequiredRequired uppercase two-letter Test-only location country. Live requests are rejected.
- Pattern: ^[A-Z]{2}$
vies_fixtureobjectTest-only. Accepted only for a cross-border business Quote that actually performs VIES validation.
- Additional properties: not allowed
statusstringrequired- Allowed: valid · invalid · unavailable · error
browser_originstringrequiredExact origin bound to the one-time browser token. Live requires HTTPS.
- Format: uri
return_urlstringOptional post-payment browser destination. It must use the same origin as browser_origin; omitted requests fall back to browser_origin.
- Format: uri
Responses
Checkout created or safely replayed
application/json
{
"data": {
"checkout_id": "eco_01J4EXAMPLE",
"checkout_token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"status": "open",
"expires_at": "2026-08-17T12:30:00Z",
"settlement": {
"tax_quote_id": "tq_01J4EXAMPLE",
"quote_created_at": "2026-08-17T12:00:00Z",
"payment_create_by": "2026-08-17T12:10:00Z",
"quote_expires_at": "2026-08-17T12:30:00Z",
"buyer_profile_version": 1,
"context_country": "SE",
"context_currency": "SEK",
"config_version": 3,
"rate_version": "fx_20260817",
"tax_semantics": "inclusive",
"tax_mode": "domestic_vat",
"rate_bps": 2500,
"payment": {
"currency": "SEK",
"gross_amount": 10000,
"net_amount": 8000,
"vat_amount": 2000
},
"base": {
"currency": "EUR",
"gross_amount": 870,
"net_amount": 696,
"vat_amount": 174
},
"settlement_base_net_amount": "6.956521739130434782608696",
"ip_country": "SE",
"country_source": "geoip"
}
}
}- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
checkout_idstringrequired- Minimum length: 1
- Maximum length: 48
checkout_tokenstringrequiredReturned once per create response; only its hash is retained.
- Minimum length: 43
- Maximum length: 43
statusstringrequired- Allowed: creating · open · processing · paid · failed · expired
expires_atstringrequired- Format: date-time
settlementobjectrequired- Additional properties: not allowed
tax_quote_idstringrequired- Minimum length: 1
- Maximum length: 48
quote_created_atstringrequired- Format: date-time
payment_create_bystringrequired- Format: date-time
quote_expires_atstringrequired- Format: date-time
buyer_profile_versionintegerrequired- Format: int64
- Minimum: 1
context_countrystringrequired- Pattern: ^[A-Z]{2}$
context_currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
config_versionintegerrequired- Format: int64
- Minimum: 1
rate_versionstringrequired- Maximum length: 48
tax_semanticsstringrequired- Allowed: inclusive · exclusive
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
rate_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 5000
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobjectrequired- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
platform_feeobject- Additional properties: not allowed
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstring- Minimum length: 1
percentage_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 10000
fixed_minorintegerrequired- Format: int64
- Minimum: 0
settlement_base_net_amountstringrequired- Minimum length: 1
ip_countrystringrequired- Pattern: ^[A-Z]{2}$
country_sourcestringrequired- Minimum length: 1
/v1/checkouts/{checkout_id}getCheckout
Read safe EuniPay Checkout state for merchant fulfilment
Paid responses add only immutable Quote, Transaction, Receipt, money, tax, Buyer-country, and IP-country/source fields. Raw IP, VAT number, VIES evidence, Stripe credentials, Client Secret, and provider event bodies are never returned.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
checkout_id | path | Required |
| — |
Responses
Scoped Checkout state
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
checkout_idstringrequired- Minimum length: 1
- Maximum length: 48
statusstringrequired- Allowed: creating · open · processing · paid · failed · expired
paidobject- Additional properties: not allowed
tax_quote_idstringrequired- Minimum length: 1
- Maximum length: 48
transaction_idstringrequired- Minimum length: 1
- Maximum length: 48
receipt_idstringrequired- Minimum length: 1
- Maximum length: 48
receipt_numberstringrequired- Minimum length: 1
- Maximum length: 32
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
rate_bpsintegerrequired- Format: int64
- Minimum: 0
- Maximum: 5000
buyer_countrystringrequired- Pattern: ^[A-Z]{2}$
ip_countrystringrequired- Pattern: ^[A-Z]{2}$
country_sourcestringrequired- Allowed: geoip · test_fixture
/v1/webhook-endpointgetMerchantWebhookEndpoint
Read the configured merchant Checkout callback
The signing secret is write-once and is never returned by this read.
Responses
Merchant callback configuration without its full signing secret
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
configuredbooleanrequiredpayment_paidbooleanReturned only when a registration request explicitly includes payment_paid. Legacy GET and PUT responses preserve the original field set.
urlstring- Maximum length: 2048
signing_secretstringEuniPay-generated epwhsec_ signing secret, present only in the first successful registration response or an exact idempotent replay.
signing_secret_suffixstring- Minimum length: 1
- Maximum length: 16
/v1/webhook-endpointregisterMerchantWebhookEndpoint
Register the signed Checkout callback for this merchant environment
The Idempotency-Key must be reused only for the identical request. Set rotate_signing_secret to true only when intentionally replacing the callback signing secret. The full signing secret is returned once on a successful registration or exact idempotent replay. EuniPay sends checkout.paid with EuniPay-Timestamp, EuniPay-Signature, and EuniPay-Event-ID headers; the signature is HMAC-SHA256 over timestamp + "." + the raw JSON body. Non-2xx deliveries are retried with the same event ID. Explicitly set payment_paid to true to also receive independent payment.paid events; existing subscribers remain opted out. checkout.paid still waits for its sale and receipt.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
urlstringrequiredHTTPS callback URL. Test additionally permits loopback HTTP for local development.
- Minimum length: 1
- Maximum length: 2048
payment_paidbooleanExplicitly opt in to independent payment.paid events. Omission preserves the current setting; existing subscriptions remain opted out.
rotate_signing_secretbooleanrequiredSet true to replace the callback signing secret; set false to preserve it.
Responses
Registered merchant callback; only this response may contain signing_secret
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
configuredbooleanrequiredpayment_paidbooleanReturned only when a registration request explicitly includes payment_paid. Legacy GET and PUT responses preserve the original field set.
urlstring- Maximum length: 2048
signing_secretstringEuniPay-generated epwhsec_ signing secret, present only in the first successful registration response or an exact idempotent replay.
signing_secret_suffixstring- Minimum length: 1
- Maximum length: 16
Transactions
Confirm merchant-verified payments and read immutable Transactions.
/v1/transactions/confirmconfirmTransaction
Confirm a merchant-declared payment from an immutable Tax Quote
Trusts the merchant declaration and does not contact Stripe or any other provider. Omitted confirmation_source defaults to provider, which requires provider_session_id and provider_payment_id. merchant_manual instead requires merchant_reference and forbids provider references. Tax values, amounts, rates, and snapshots are copied from the locked Tax Quote without recalculation. An identical confirmation of the same Quote returns its original Transaction and Receipt even under a different Idempotency-Key.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
{
"tax_quote_id": "tq_test_01J4EXAMPLE",
"confirmation_source": "provider",
"provider_session_id": "session_test_example",
"provider_payment_id": "payment_test_example",
"paid_at": "2026-08-01T12:10:00Z"
}- Additional properties: not allowed
- One of: 2 schemas
tax_quote_idstringrequired- Minimum length: 1
- Maximum length: 48
confirmation_sourcestringOmit to use provider. Each source accepts only its conditional evidence fields.
- Allowed: provider · merchant_manual
provider_session_idstringRequired only when confirmation_source is provider or omitted.
- Minimum length: 1
- Maximum length: 255
provider_payment_idstringRequired only when confirmation_source is provider or omitted.
- Minimum length: 1
- Maximum length: 255
merchant_referencestringRequired only when confirmation_source is merchant_manual.
- Minimum length: 1
- Maximum length: 255
paid_atstringrequiredMerchant-declared payment time. Provider confirmations must fall inside the original Quote window; manual confirmations use the retained-Quote eligibility window.
- Format: date-time
One-of schema 1
confirmation_sourceunknown- Allowed: provider
One-of schema 2
confirmation_sourceunknownrequired- Constant: merchant_manual
Responses
Compact confirmation and pending Receipt state created or identically replayed
application/json
{
"data": {
"transaction_id": "2076918743414889275471399256068915201",
"receipt_id": "rcp_test_01J4EXAMPLE",
"receipt_number": "RCP-2026-000001",
"pdf_status": "pending",
"confirmed_at": "2026-08-01T12:10:01Z"
}
}- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
transaction_idstringrequiredreceipt_idstringrequiredreceipt_numberstringrequired- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
pdf_statusstringrequired- Allowed: pending · ready · failed
confirmed_atstringrequired- Format: date-time
/v1/transactions/manual-confirmations/lookupgetManualConfirmation
Look up one merchant-manual confirmation by its exact merchant reference
Returns only a compact confirmation and Receipt identity for a merchant_manual Transaction in the authenticated merchant and API-key environment. This is an exact recovery lookup, not a Transaction list or general filter. Provider-confirmed Transactions never match.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
merchant_reference | query | Required |
| Exact merchant-manual reference; no leading or trailing whitespace or control characters. |
Responses
Existing merchant-manual confirmation and current safe Receipt state
application/json
{
"data": {
"confirmation_source": "merchant_manual",
"merchant_reference": "merchant-manual:trade-123",
"transaction_id": "2076918743414889275471399256068915201",
"receipt_id": "rcp_test_01J4EXAMPLE",
"receipt_number": "RCP-2026-000001",
"pdf_status": "pending",
"confirmed_at": "2026-08-01T12:10:01Z"
}
}- Additional properties: not allowed
dataobjectrequiredCompact recovery view that never includes provider, Buyer, tax, location, VIES, retention, or object-store evidence.
- Additional properties: not allowed
confirmation_sourcestringrequired- Constant: merchant_manual
merchant_referencestringrequired- Minimum length: 1
- Maximum length: 255
transaction_idstringrequired- Maximum length: 48
- Pattern: ^([0-9]{1,39}|txn_[A-Za-z0-9_-]+)$
receipt_idstringrequired- Maximum length: 48
- Pattern: ^rcp_[A-Za-z0-9_-]+$
receipt_numberstringrequired- Maximum length: 64
- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
pdf_statusstringrequired- Allowed: pending · ready · failed
confirmed_atstringrequired- Format: date-time
/v1/transactions/{transaction_id}getTransaction
Get a scoped immutable Transaction and its safe Receipt state
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
transaction_id | path | Required |
| Decimal sale/transaction ID string; legacy txn_ aliases are also accepted. |
Responses
Stored Transaction; no tax or currency value is recalculated
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredSafe immutable view; raw seller, Buyer, location, VIES, retention, object-store, and worker snapshots are never returned.
- Additional properties: not allowed
- One of: 2 schemas
transaction_idstringrequiredtax_quote_idstringrequiredexternal_payment_attempt_idstringrequiredconfirmation_sourcestringrequiredIdentifies whether provider evidence or a merchant-manual reference confirmed the payment.
- Allowed: provider · merchant_manual
provider_session_idstringPresent only for provider confirmations.
provider_payment_idstringPresent only for provider confirmations.
payment_methodstringActual payment method recorded for managed Stripe payments, including card wallet types; omitted when unavailable.
merchant_referencestringPresent only for merchant_manual confirmations.
paid_atstringrequired- Format: date-time
confirmed_atstringrequired- Format: date-time
buyer_countrystringrequired- Pattern: ^[A-Z]{2}$
buyer_entity_typestringrequired- Allowed: personal · business
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
tax_semanticsstringrequiredThe effective tax semantic inherited from the immutable Tax Quote; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
line_descriptionstringrequired- Minimum length: 1
- Maximum length: 500
receiptobjectrequired- Additional properties: not allowed
receipt_idstringrequiredreceipt_numberstringrequired- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
issued_atstringrequired- Format: date-time
pdf_statusstringrequired- Allowed: pending · ready · failed
One-of schema 1
confirmation_sourceunknown- Constant: provider
One-of schema 2
confirmation_sourceunknown- Constant: merchant_manual
/v1/transactionslistTransactions
List scoped Transactions using offset pagination
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Transactions ordered by paid_at descending then Transaction ID descending
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
itemsarrayrequired- Items: object
Array item schema
- Additional properties: not allowed
- One of: 2 schemas
transaction_idstringrequiredtax_quote_idstringrequiredexternal_payment_attempt_idstringrequiredconfirmation_sourcestringrequiredIdentifies whether provider evidence or a merchant-manual reference confirmed the payment.
- Allowed: provider · merchant_manual
provider_session_idstringPresent only for provider confirmations.
provider_payment_idstringPresent only for provider confirmations.
payment_methodstringActual payment method recorded for managed Stripe payments, including card wallet types; omitted when unavailable.
merchant_referencestringPresent only for merchant_manual confirmations.
paid_atstringrequired- Format: date-time
confirmed_atstringrequired- Format: date-time
buyer_countrystringrequired- Pattern: ^[A-Z]{2}$
buyer_entity_typestringrequired- Allowed: personal · business
paymentobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
baseobjectrequired- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
tax_modestringrequired- Allowed: domestic_vat · oss_vat · reverse_charge
tax_semanticsstringrequiredThe effective tax semantic inherited from the immutable Tax Quote; tax semantics are separate from tax mode.
- Allowed: inclusive · exclusive
rate_bpsintegerrequired- Minimum: 0
- Maximum: 5000
line_descriptionstringrequired- Minimum length: 1
- Maximum length: 500
receiptobjectrequired- Additional properties: not allowed
receipt_idstringrequiredreceipt_numberstringrequired- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
issued_atstringrequired- Format: date-time
pdf_statusstringrequired- Allowed: pending · ready · failed
One-of schema 1
confirmation_sourceunknown- Constant: provider
One-of schema 2
confirmation_sourceunknown- Constant: merchant_manual
totalintegerrequired- Minimum: 0
limitintegerrequired- Minimum: 1
- Maximum: 200
offsetintegerrequired- Minimum: 0
- Maximum: 100000
Receipts
Read Receipt generation state and create short-lived private PDF links.
/v1/receipts/{receipt_id}getReceipt
Get safe Receipt metadata and payment breakdowns
Returns a Receipt only in the API key's merchant and Test/Live environment. Pending and failed Receipts are returned normally so the merchant can poll. Query parameters are rejected. Tax snapshots, object-store keys, checksums, retention metadata, and worker errors are never returned. Optional payment, business, and platform_fee amounts come only from the validated stored Receipt snapshot; no current fee or tax settings are consulted. Missing or invalid snapshots omit these fields without preventing metadata reads or existing PDF downloads.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
receipt_id | path | Required |
| — |
Responses
Safe Receipt metadata
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredSafe scoped PDF-generation state and optional payment-currency amounts in integer minor units. Amounts are copied or derived from the validated stored Receipt snapshot after matching its receipt number and issue time. Missing or invalid snapshots omit all three amount objects. Historical snapshots without a fee return equal payment and business amounts and omit platform_fee. Raw snapshots, buyer and seller details, base-currency amounts, tax evidence, and private storage metadata are never returned.
- Additional properties: not allowed
receipt_idstringrequired- Minimum length: 1
- Maximum length: 48
transaction_idstringrequired- Minimum length: 1
- Maximum length: 48
receipt_numberstringrequired- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
issued_atstringrequired- Format: date-time
pdf_statusstringrequired- Allowed: pending · ready · failed
pdf_generated_atstringPresent only when pdf_status is ready.
- Format: date-time
paymentobjectTotal paid amount including any Platform fees and VAT.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobjectBusiness amount; payment minus platform_fee, component by component.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
platform_feeobjectPlatform fees stored on the Receipt; omitted when no fee was recorded.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
/v1/receipts/{receipt_id}/pdfgetReceiptPDF
Download a ready Receipt PDF through EuniPay
Returns PDF bytes only after the Receipt and private object key match the authenticated merchant, integration, and Test/Live environment. Query parameters are rejected. Pending and failed Receipts return 409.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
receipt_id | path | Required |
| — |
Responses
Ready Receipt PDF
application/pdf
No example provided.
- Format: binary
/v1/receipts/{receipt_id}/download-linkcreateReceiptDownloadLink
Create a private ten-minute Receipt PDF download URL
Accepts exactly one empty JSON object and no query parameters. Pending and failed Receipts return 409 without contacting object storage. A ready Receipt is signed only after its private object key matches the authenticated merchant and Test/Live environment. Signed URLs must not be logged or persisted by clients.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
receipt_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Maximum properties: 0
- Additional properties: not allowed
Responses
Short-lived private download URL
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
download_urlstringrequiredPrivate HTTP(S) URL valid for exactly ten minutes.
- Format: uri
expires_atstringrequired- Format: date-time
/v1/sales/{sale_id}/receiptsissueSaleReceipt
Issue a receipt for a recorded sale
Explicitly issues one receipt using the actual issuance time, never the historical sale date. Requires confirmed tax, known amounts and qualified owned seller/customer information. External records freeze owned current party name/address details as issuance-time data, separately from historical tax evidence. Quote-backed receipts retain their original frozen party proof. The original external document reference is preserved. Repeat the same sale and key after a timeout; numbering and PDF work are not duplicated. Existing receipt evidence is never rebuilt by a later tax correction. This does not collect payment or notify the customer.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
sale_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Maximum properties: 0
- Additional properties: not allowed
Responses
Scoped receipt metadata; PDF generation is queued
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequiredSafe scoped PDF-generation state and optional payment-currency amounts in integer minor units. Amounts are copied or derived from the validated stored Receipt snapshot after matching its receipt number and issue time. Missing or invalid snapshots omit all three amount objects. Historical snapshots without a fee return equal payment and business amounts and omit platform_fee. Raw snapshots, buyer and seller details, base-currency amounts, tax evidence, and private storage metadata are never returned.
- Additional properties: not allowed
receipt_idstringrequired- Minimum length: 1
- Maximum length: 48
transaction_idstringrequired- Minimum length: 1
- Maximum length: 48
receipt_numberstringrequired- Pattern: ^[A-Z0-9][A-Z0-9-]{1,15}-[0-9]{4}-[0-9]{6,}$
issued_atstringrequired- Format: date-time
pdf_statusstringrequired- Allowed: pending · ready · failed
pdf_generated_atstringPresent only when pdf_status is ready.
- Format: date-time
paymentobjectTotal paid amount including any Platform fees and VAT.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
businessobjectBusiness amount; payment minus platform_fee, component by component.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
platform_feeobjectPlatform fees stored on the Receipt; omitted when no fee was recorded.
- Additional properties: not allowed
currencystringrequired- Allowed: EUR · CZK · DKK · HUF · PLN · RON · SEK · CNY
gross_amountintegerrequired- Format: int64
- Minimum: 0
net_amountintegerrequired- Format: int64
- Minimum: 0
vat_amountintegerrequired- Format: int64
- Minimum: 0
Buyers
Create, version, and read merchant-scoped Buyer Profiles.
/v1/buyers/{external_customer_id}getBuyerProfile
Get the current Buyer Profile version
When the Buyer is permanently locked, country, entity type, and VAT display values are projected from the permanent identity lock even if the latest historical profile predates the lock and differs. The returned version remains the current profile version.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
external_customer_id | path | Required |
| Immutable merchant-local customer identifier; 1-128 UTF-8 bytes, no control characters, and no leading or trailing whitespace. |
Responses
Current Buyer Profile
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
buyer_idstringrequiredexternal_customer_idstringrequiredversionintegerrequired- Minimum: 1
entity_typestringrequired- Allowed: personal · business
namestringrequiredemailstringrequiredcountrystringrequiredpostal_codestringrequiredstate_regionstringcitystringrequiredline_1stringrequiredline_2stringvat_number_displaystringidentity_lockobjectrequired- Additional properties: not allowed
lockedbooleanrequiredlocked_atstring | nullrequired- Format: date-time
locked_fieldsarrayrequired- Items: string
Array item schema
- Allowed: country · entity_type · vat_number
locked_by_transaction_idstring
created_atstringrequired- Format: date-time
/v1/buyers/{external_customer_id}putBuyerProfile
Create or update a versioned Buyer Profile
Initial creation requires expected_version 0. Every later successful update must use the exact current version. External customer IDs are never trimmed or rewritten; leading or trailing whitespace is rejected.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
external_customer_id | path | Required |
| Immutable merchant-local customer identifier; 1-128 UTF-8 bytes, no control characters, and no leading or trailing whitespace. |
Request body
application/json · Required
{
"expected_version": 0,
"entity_type": "business",
"name": "Example GmbH",
"email": "billing@example.invalid",
"country": "DE",
"postal_code": "10115",
"city": "Berlin",
"line_1": "Invalidenstrasse 1",
"vat_number": "DE123456789"
}- Additional properties: not allowed
- All of: 1 schema
expected_versionintegerrequired- Minimum: 0
entity_typestringrequired- Allowed: personal · business
namestringrequired- Minimum length: 1
- Maximum length: 256
emailstringrequiredMust contain @.
- Minimum length: 1
- Maximum length: 256
- Pattern: .*@.*
countrystringrequiredEU 27 billing country.
- Pattern: ^[A-Z]{2}$
postal_codestringrequired- Minimum length: 1
- Maximum length: 32
state_regionstring- Maximum length: 128
citystringrequired- Minimum length: 1
- Maximum length: 128
line_1stringrequired- Minimum length: 1
- Maximum length: 512
line_2string- Maximum length: 512
vat_numberstringRequired for business profiles. Format validation only; optional matching country prefix
- Maximum length: 64
All-of schema 1
Condition
entity_typeunknown- Constant: business
When condition matches
- Required fields: vat_number
Responses
New immutable Buyer Profile version
application/json
{
"data": {
"buyer_id": "byr_test_01J4EXAMPLE",
"external_customer_id": "customer_123",
"version": 1,
"entity_type": "business",
"name": "Example GmbH",
"email": "billing@example.invalid",
"country": "DE",
"postal_code": "10115",
"city": "Berlin",
"line_1": "Invalidenstrasse 1",
"vat_number_display": "DE123456789",
"identity_lock": {
"locked": false,
"locked_at": null,
"locked_fields": []
},
"created_at": "2026-08-01T11:59:00Z"
}
}- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
buyer_idstringrequiredexternal_customer_idstringrequiredversionintegerrequired- Minimum: 1
entity_typestringrequired- Allowed: personal · business
namestringrequiredemailstringrequiredcountrystringrequiredpostal_codestringrequiredstate_regionstringcitystringrequiredline_1stringrequiredline_2stringvat_number_displaystringidentity_lockobjectrequired- Additional properties: not allowed
lockedbooleanrequiredlocked_atstring | nullrequired- Format: date-time
locked_fieldsarrayrequired- Items: string
Array item schema
- Allowed: country · entity_type · vat_number
locked_by_transaction_idstring
created_atstringrequired- Format: date-time
Payments
Accept payments independently and track optional posting separately.
/v1/paymentscreatePayment
Create an independent payment
Creates a quote-backed or fixed merchant-amount payment without requiring a sale or receipt. Reuse the identical request and Idempotency-Key after a timeout; do not create a new order to resolve an unknown provider result. Existing Checkout APIs and SDK keep their original full-flow contract.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
- One of: 2 schemas
external_order_idstringrequired- Minimum length: 1
- Maximum length: 128
descriptionstringrequired- Minimum length: 1
- Maximum length: 500
amount_sourcestringrequired- Allowed: quote · merchant
tax_quote_idstring- Minimum length: 1
- Maximum length: 48
currencystringrequired- Allowed: CNY · EUR · CZK · DKK · HUF · PLN · RON · SEK
- Minimum length: 3
- Maximum length: 3
gross_minorintegerrequired- Format: int64
- Minimum: 1
sale_amountobjectMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
automationobjectReplaces all three automatic actions. Omitted booleans are false. Issuing a receipt requires recording a sale.
- Additional properties: not allowed
record_salebooleanissue_receiptbooleannotifyboolean
return_urlstringrequired- Format: uri
- Maximum length: 2048
One-of schema 1
amount_sourceunknown- Constant: quote
One-of schema 2
amount_sourceunknown- Constant: merchant
automationobjectissue_receiptunknown- Constant: false
Responses
Accepted independent payment and payment-form credentials
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
payment_idstringrequiredsale_idstringreceipt_idstringexternal_order_idstringrequiredamount_sourcestringrequired- Allowed: quote · merchant
tax_quote_idstringcurrencystringrequiredgross_minorunknownrequiredsale_amountobjectMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
automationobjectrequiredReplaces all three automatic actions. Omitted booleans are false. Issuing a receipt requires recording a sale.
- Additional properties: not allowed
record_salebooleanissue_receiptbooleannotifyboolean
statestringrequired- Allowed: creating · open · processing · paid · failed · expired
posting_statestringrequiredOptional posting progress is separate from the verified payment state. Do not request a second payment to retry posting.
- Allowed: not_requested · pending · completed · conflict · failed
posting_reasonstringExplains pending or conflicting downstream work; absent after successful completion.
client_secretstringCreation response only. Pass to the payment form for this customer; never log or use as proof of payment.
publishable_keystringCreation response only; identifies the original provider account for the payment form.
created_atstringrequired- Format: date-time
updated_atstringrequired- Format: date-time
/v1/payments/{payment_id}getPayment
Read an independent payment
Reads verified payment state separately from optional sale and receipt progress. Historical reads remain available after a capability is disabled.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
payment_id | path | Required |
| — |
Responses
Independent payment state
application/json
No example provided.
- Additional properties: not allowed
dataobjectrequired- Additional properties: not allowed
payment_idstringrequiredsale_idstringreceipt_idstringexternal_order_idstringrequiredamount_sourcestringrequired- Allowed: quote · merchant
tax_quote_idstringcurrencystringrequiredgross_minorunknownrequiredsale_amountobjectMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
automationobjectrequiredReplaces all three automatic actions. Omitted booleans are false. Issuing a receipt requires recording a sale.
- Additional properties: not allowed
record_salebooleanissue_receiptbooleannotifyboolean
statestringrequired- Allowed: creating · open · processing · paid · failed · expired
posting_statestringrequiredOptional posting progress is separate from the verified payment state. Do not request a second payment to retry posting.
- Allowed: not_requested · pending · completed · conflict · failed
posting_reasonstringExplains pending or conflicting downstream work; absent after successful completion.
client_secretstringCreation response only. Pass to the payment form for this customer; never log or use as proof of payment.
publishable_keystringCreation response only; identifies the original provider account for the payment form.
created_atstringrequired- Format: date-time
updated_atstringrequired- Format: date-time
/v1/payments/{payment_id}/refundscreatePaymentRefund
Refund an independent payment
Reserves against the original verified payment, including refunds requested through the legacy transaction API. A sale is optional. Retry the identical request and key after an unknown outcome; a timeout retains the reservation. Original account and accepted credentials are used for recovery. A later matching sale receives the same refund once.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
payment_id | path | Required |
| — |
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
amountintegerrequiredPositive amount in the payment currency's minor unit.
- Format: int64
- Minimum: 1
reasonstringrequired- Allowed: requested_by_customer · duplicate · fraudulent
Responses
Accepted refund reservation; read the refund for completion
application/json
No example provided.
dataobjectrequireddocumentobjectnumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
refund_idstringpayment_idstringOriginal independent payment, when applicable.
canonical_refund_idstringAuthoritative shared refund identity when this accepted intent is an alias.
provider_statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
projection_conflictstringLedger projection requires reconciliation; accepted reservation remains held.
transaction_idstringintegration_idstringenvironmentstring- Allowed: test · live
sourcestring- Allowed: merchant · provider · external
external_recordobjectsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
refunded_atstring- Format: date-time
currencystringamountinteger- Format: int64
paymentunknownKnown provider breakdown or null when the split is unknown. External declarations use external_record.amount.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
base_currencystringbaseunknownFrozen base-currency split when available; unknown is null.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
reasonstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/refunds/{refund_id}getManagedRefund
Read an accepted refund
Historical reads remain available after modules are disabled. An accepted alias remains readable with canonical_refund_id and does not consume balance twice. provider_status describes verified provider completion; projection_conflict indicates that contradictory ledger evidence needs investigation. Do not retry with another refund identity to resolve such a conflict.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
refund_id | path | Required |
| — |
Responses
Scoped refund state
application/json
No example provided.
dataobjectrequireddocumentobjectnumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
refund_idstringpayment_idstringOriginal independent payment, when applicable.
canonical_refund_idstringAuthoritative shared refund identity when this accepted intent is an alias.
provider_statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
projection_conflictstringLedger projection requires reconciliation; accepted reservation remains held.
transaction_idstringintegration_idstringenvironmentstring- Allowed: test · live
sourcestring- Allowed: merchant · provider · external
external_recordobjectsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
refunded_atstring- Format: date-time
currencystringamountinteger- Format: int64
paymentunknownKnown provider breakdown or null when the split is unknown. External declarations use external_record.amount.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
base_currencystringbaseunknownFrozen base-currency split when available; unknown is null.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
reasonstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
Refunds
/v1/transactions/{transaction_id}/refundslistTransactionRefunds
List refunds and the remaining refundable amount
Submitting, pending, requires_action and succeeded refunds reserve balance. Failed and canceled refunds do not. Unknown or repeated query parameters are rejected.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
transaction_id | path | Required |
| — |
limit | query | Optional |
| — |
offset | query | Optional |
| — |
Responses
Scoped refund list
application/json
No example provided.
dataobjectrequireditemsarrayrequired- Items: object
Array item schema
documentobjectnumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
refund_idstringpayment_idstringOriginal independent payment, when applicable.
canonical_refund_idstringAuthoritative shared refund identity when this accepted intent is an alias.
provider_statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
projection_conflictstringLedger projection requires reconciliation; accepted reservation remains held.
transaction_idstringintegration_idstringenvironmentstring- Allowed: test · live
sourcestring- Allowed: merchant · provider · external
external_recordobjectsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
refunded_atstring- Format: date-time
currencystringamountinteger- Format: int64
paymentunknownKnown provider breakdown or null when the split is unknown. External declarations use external_record.amount.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
base_currencystringbaseunknownFrozen base-currency split when available; unknown is null.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
reasonstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
totalintegerrequired- Format: int64
- Minimum: 0
remaining_amountintegerrequired- Format: int64
- Minimum: 0
currencystringrequired
/v1/transactions/{transaction_id}/refundscreateRefund
Request a partial or full refund of a linked Stripe payment
Reserves the requested amount and queues submission to Stripe. Amounts use the payment currency's smallest unit. Reusing the same Idempotency-Key and body replays the original response; a different body conflicts. A 202 response is acceptance, not confirmation of a successful refund.
Idempotency-Key requiredServer to serverParameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
transaction_id | path | Required |
| — |
Idempotency-Key | header | Required |
| One nonempty request key, unique within merchant, environment, and operation. Multiple or comma-joined values are rejected. |
Request body
application/json · Required
No example provided.
- Additional properties: not allowed
amountintegerrequiredPositive amount in the payment currency's smallest unit
- Format: int64
- Minimum: 1
reasonstringrequired- Allowed: requested_by_customer · duplicate · fraudulent
Responses
Refund request accepted
application/json
No example provided.
dataobjectrequireddocumentobjectnumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
refund_idstringpayment_idstringOriginal independent payment, when applicable.
canonical_refund_idstringAuthoritative shared refund identity when this accepted intent is an alias.
provider_statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
projection_conflictstringLedger projection requires reconciliation; accepted reservation remains held.
transaction_idstringintegration_idstringenvironmentstring- Allowed: test · live
sourcestring- Allowed: merchant · provider · external
external_recordobjectsource_systemstringrequired- Minimum length: 1
- Maximum length: 64
external_refund_idstringrequired- Minimum length: 1
- Maximum length: 128
refunded_atstringrequired- Format: date-time
amountobjectrequiredMissing net and VAT remain unknown. One known component determines the other arithmetically; known net plus VAT must equal gross. Explicit zero is preserved.
- Additional properties: not allowed
currencystringrequiredSupported three-letter original payment currency
gross_amountintegerrequiredActual total collected in integer minor units
- Format: int64
- Minimum: 1
net_amountinteger | null- Format: int64
- Minimum: 0
vat_amountinteger | null- Format: int64
- Minimum: 0
provider_refund_idstringreasonstring- Maximum length: 2000
refund_idstringrequiredsale_idstringrequiredintegration_idstringrequiredstatusstringrequired- Constant: succeeded
original_tax_versionintegerrequired- Format: int64
original_paid_atstringrequired- Format: date-time
original_tax_datestring | nullrequired- Format: date
created_atstringrequired- Format: date-time
refunded_atstring- Format: date-time
currencystringamountinteger- Format: int64
paymentunknownKnown provider breakdown or null when the split is unknown. External declarations use external_record.amount.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
base_currencystringbaseunknownFrozen base-currency split when available; unknown is null.
- Any of: 2 schemas
Any-of schema 1
business_net_amountinteger- Format: int64
business_vat_amountinteger- Format: int64
platform_fee_net_amountinteger- Format: int64
platform_fee_vat_amountinteger- Format: int64
Any-of schema 2
No schema constraints provided.
statusstring- Allowed: submitting · pending · requires_action · succeeded · failed · canceled
reasonstringcreated_atstring- Format: date-time
updated_atstring- Format: date-time
/v1/refunds/{refund_id}/documentgetRefundDocument
Read the current refund document status
One frozen document per successful refund. Missing documents may be generated individually. Document operations never submit another refund or refresh refund state timestamps. No query parameters are accepted.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
refund_id | path | Required |
| — |
Responses
Refund document metadata
application/json
No example provided.
dataobjectrequirednumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
/v1/refunds/{refund_id}/documentensureRefundDocument
Generate or retry a frozen refund document
Accepts only an empty JSON object, up to 1024 bytes. Naturally idempotent by refund ID without an Idempotency-Key. Returns 200 for an existing ready document, otherwise 202 after acceptance. A non-successful refund cannot be issued a document. Failed generation reuses the same job and snapshot.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
refund_id | path | Required |
| — |
Request body
application/json · Required
No example provided.
- Maximum properties: 0
- Additional properties: not allowed
Responses
Refund document metadata
application/json
No example provided.
dataobjectrequirednumberstringrequired- Maximum length: 52
issued_atstringActual local issue time, including for historical refunds; never backdated or a bank arrival time.
- Format: date-time
pdf_statusstringrequirednot_generated means no document was issued. Other values describe file generation, separately from current refund validity.
- Allowed: not_generated · pending · ready · failed
pdf_generated_atstring- Format: date-time
validbooleanrequiredTrue when a document has been issued and the refund is currently succeeded; file availability is described by pdf_status.
/v1/refunds/{refund_id}/document/pdfdownloadRefundDocumentPDF
Download the authenticated refund document PDF
Checks current refund success, the private object namespace, PDF header and SHA-256; checks current scope and validity again after reading storage. Inactive documents remain archived but cannot be downloaded. No storage URLs are returned.
Parameters
| Name | Location | Requirement | Schema | Description |
|---|---|---|---|---|
refund_id | path | Required |
| — |
Responses
Verified private PDF
application/pdf
No example provided.
- Format: binary