Body
Required
-
客户参考号 (8-32 位,仅包含字母、数字、连字符和下划线)
Minimum length is
8, maximum length is32. Format should match the following pattern:^[A-Z0-9\-_]+$. -
申报参考号 (8-32 位,仅包含字母、数字、连字符和下划线)
注意: 目前系统都支持自定义,但不保证未来所有系统都支持
Minimum length is
8, maximum length is32. Format should match the following pattern:^[A-Z0-9\-_]+$. -
申报模板代码 (8-32 位,仅包含字母、数字、连字符和下划线)
Minimum length is
8, maximum length is32. Format should match the following pattern:^[A-Z0-9\-_]+$. -
申报类型 (IM=进口,EX=出口)
Values are
IMorEX. -
附加申报类型 (A=标准申报,D=预申报)
Values are
AorD. -
呈报(确认)模式 (conditional, scheduled)
-
暂定确认时间(预申报场景)
-
呈报办公室代码
-
承运人参考号
-
边境运输方式
Values are
sea,rail,road,air, orpost. -
内陆运输方式
-
出口国代码 (ISO3166 alpha2 代码)
Minimum length is
2, maximum length is2. Format should match the following pattern:^[A-Z]{2}$. -
进口国代码 (ISO3166 alpha2 代码)
Minimum length is
2, maximum length is2. Format should match the following pattern:^[A-Z]{2}$. -
总毛重(千克,必须大于 0)
Minimum value is
0.001. -
总包装数(必须大于 0)
Minimum value is
1. Default value is1. -
唯一托运参考号
-
货物位置代码 (3 位 IATA 机场代码或 UN/LOCODE 格式) https://datahub.io/core/un-locode
Format should match the following pattern:
^([A-Z]{3}|[A-Z]{2}[A-Z0-9]{3,})$. -
货物位置类型
-
货物位置详情
-
Values are
EXW,FCA,CPT,CIP,DAP,DPU,DDP,DDU,FAS,FOB,CFR, orCIF. -
交货条款地点
-
货币代码 (ISO4217 三字母代码) https://www.iban.com/currency-codes
Format should match the following pattern:
^[A-Z]{3}$. Default value isEUR. -
汇率
-
IOSS 号码 (10-16 位,仅包含字母、数字和连字符)
Minimum length is
10, maximum length is16. Format should match the following pattern:^[A-Z0-9\-]+$. -
延期付款账户
-
相关文档
-
商品明细 (1-999 个商品)
At least
1but not more than999elements. -
税金明细
curl \
--request POST 'https://app-sandbox.gutline.eu/api/v1/declarations' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"items":[{"quantity":100,"description":"T-shirts","currency_code":"EUR","commodity_code":"6109100010","net_weight_in_kg":14.0,"country_of_origin":"CN","gross_weight_in_kg":15.5,"dangerous_goods_code":null,"intrinsic_value_cents":150000}],"exporter":{"city":"Shanghai","name":"Shanghai Exports Ltd","postal_code":"200000","country_code":"CN","street_address":"Seller Street 1"},"importer":{"city":"Rotterdam","name":"Import Company B.V.","email":"hans@test.com","phone":"+49 30 123456","eori_number":"DE123456789","postal_code":"3000AA","attention_to":"Hans Mueller","country_code":"NL","street_address":"Importer Street 1"},"documents":[{"category":"supporting","type_code":"N380","valid_from":"2025-10-01","reference_number":"INV-SH-2025-001"}],"client_ref":"NLH1-1727866165","ioss_number":"IM3720014058","currency_code":"EUR","template_code":"NLAMS_H1","delivery_terms":"DDP","mode_at_border":"air","total_packages":10,"declaration_type":"IM","location_of_goods":{"postal_code":"1118 CP","country_code":"NL","street_number":"1"},"gross_weight_in_kg":15.5,"declaration_office_code":"NL000432","delivery_terms_location":"NLAMS","country_of_dispatch_code":"CN","presentation_office_code":"NL000432","additional_declaration_type":"A","country_of_destination_code":"NL","provisional_validation_datetime":"2025-10-01T12:00:00Z"}'
{
"items": [
{
"quantity": 100,
"description": "T-shirts",
"currency_code": "EUR",
"commodity_code": "6109100010",
"net_weight_in_kg": 14.0,
"country_of_origin": "CN",
"gross_weight_in_kg": 15.5,
"dangerous_goods_code": null,
"intrinsic_value_cents": 150000
}
],
"exporter": {
"city": "Shanghai",
"name": "Shanghai Exports Ltd",
"postal_code": "200000",
"country_code": "CN",
"street_address": "Seller Street 1"
},
"importer": {
"city": "Rotterdam",
"name": "Import Company B.V.",
"email": "hans@test.com",
"phone": "+49 30 123456",
"eori_number": "DE123456789",
"postal_code": "3000AA",
"attention_to": "Hans Mueller",
"country_code": "NL",
"street_address": "Importer Street 1"
},
"documents": [
{
"category": "supporting",
"type_code": "N380",
"valid_from": "2025-10-01",
"reference_number": "INV-SH-2025-001"
}
],
"client_ref": "NLH1-1727866165",
"ioss_number": "IM3720014058",
"currency_code": "EUR",
"template_code": "NLAMS_H1",
"delivery_terms": "DDP",
"mode_at_border": "air",
"total_packages": 10,
"declaration_type": "IM",
"location_of_goods": {
"postal_code": "1118 CP",
"country_code": "NL",
"street_number": "1"
},
"gross_weight_in_kg": 15.5,
"declaration_office_code": "NL000432",
"delivery_terms_location": "NLAMS",
"country_of_dispatch_code": "CN",
"presentation_office_code": "NL000432",
"additional_declaration_type": "A",
"country_of_destination_code": "NL",
"provisional_validation_datetime": "2025-10-01T12:00:00Z"
}
{
"id": 42,
"reference": "DEC2024001",
"client_ref": "NLH1-1727866165",
"lrn": "LRN123456789",
"mrn": "MRN123456789",
"template_code": "NLAMS_H1",
"declaration_type": "IM",
"additional_declaration_type": "A",
"presentation_mode": "conditional",
"provisional_validation_datetime": "2025-05-04T09:42:00Z",
"declaration_office_code": "NL000432",
"presentation_office_code": "NL000432",
"shipment_carrier_ref": "CARRIER_REF_001",
"mode_at_border": "air",
"inland_mode": "road",
"country_of_dispatch_code": "CN",
"country_of_destination_code": "NL",
"gross_weight_in_kg": 15.5,
"total_packages": 1,
"unique_consignment_reference": "UCR123456789",
"location_of_goods_code": "AMS",
"location_of_goods_type": "string",
"location_of_goods": {
"country_code": "NL",
"postal_code": "1012 AB",
"street_number": "123",
"city": "Amsterdam",
"street_name": "Main Street"
},
"delivery_terms": "DDP",
"delivery_terms_location": "NLAMS",
"currency_code": "EUR",
"currency_exchange_rate": 1.0,
"ioss_number": "IM3720014058",
"deferred_payment_account": "ACCOUNT123",
"status": "draft",
"reject_reason": "string",
"importer": {
"id": 42,
"name": "Import Company B.V.",
"attention_to": "Attention to",
"street_address": "123 Main Street",
"city": "Rotterdam",
"state": "North Holland",
"postal_code": "3000AA",
"country_code": "NL",
"email": "john@example.com",
"phone": "+31 20 1234567",
"eori_number": "DE123456789",
"vat_number": "NL123456789B01",
"tax_id": "123456789"
},
"exporter": {
"id": 42,
"name": "Import Company B.V.",
"attention_to": "Attention to",
"street_address": "123 Main Street",
"city": "Rotterdam",
"state": "North Holland",
"postal_code": "3000AA",
"country_code": "NL",
"email": "john@example.com",
"phone": "+31 20 1234567",
"eori_number": "DE123456789",
"vat_number": "NL123456789B01",
"tax_id": "123456789"
},
"declarant": {
"id": 42,
"name": "Import Company B.V.",
"attention_to": "Attention to",
"street_address": "123 Main Street",
"city": "Rotterdam",
"state": "North Holland",
"postal_code": "3000AA",
"country_code": "NL",
"email": "john@example.com",
"phone": "+31 20 1234567",
"eori_number": "DE123456789",
"vat_number": "NL123456789B01",
"tax_id": "123456789"
},
"representative": {
"id": 42,
"name": "Import Company B.V.",
"attention_to": "Attention to",
"street_address": "123 Main Street",
"city": "Rotterdam",
"state": "North Holland",
"postal_code": "3000AA",
"country_code": "NL",
"email": "john@example.com",
"phone": "+31 20 1234567",
"eori_number": "DE123456789",
"vat_number": "NL123456789B01",
"tax_id": "123456789"
},
"documents": [
{
"id": 42,
"category": "transport",
"type_code": "N740",
"reference_number": "REF123456",
"valid_from": "2025-05-04T09:42:00Z",
"file_url": "https://example.com"
}
],
"items": [
{
"id": 42,
"description": "T-shirts",
"commodity_code": "6109100010",
"national_additional_codes": [
"string"
],
"requested_procedure": "40",
"additional_procedure_codes": [
"F48",
"C07"
],
"currency_code": "EUR",
"intrinsic_value": 1500.0,
"freight_cost": 0.5,
"insurance_cost": 0.25,
"gross_weight_in_grams": 15500,
"net_weight_in_grams": 14000,
"gross_weight_in_kg": 15.5,
"net_weight_in_kg": 14.0,
"package_type": "box",
"number_of_packages": 1,
"shipping_marks": "FRAGILE",
"quantity": 1,
"supplementary_units": "PCE",
"supplementary_units_amount": 1,
"country_of_origin": "CN",
"dangerous_goods_code": "UN1234",
"ecommerce_ref": "EC123456",
"ecommerce_url": "https://example.com/product/123",
"documents": [
{
"id": 42,
"category": "transport",
"type_code": "N740",
"reference_number": "REF123456",
"valid_from": "2025-05-04T09:42:00Z",
"file_url": "https://example.com"
}
],
"tax_lines": [
{
"id": 42,
"type_code": "VAT",
"category": "vat",
"regime_code": "01",
"rate": 0.21,
"currency": "EUR",
"base_amount": 100.0,
"deduct_amount": 0.0,
"amount": 21.0,
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z"
}
]
}
],
"tax_lines": [
{
"id": 42,
"type_code": "VAT",
"category": "vat",
"regime_code": "01",
"rate": 0.21,
"currency": "EUR",
"base_amount": 100.0,
"deduct_amount": 0.0,
"amount": 21.0,
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z"
}
],
"tax_assessment_notice_url": "string",
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z",
"scheduled_at": "2025-05-04T09:42:00Z",
"submitted_at": "2025-05-04T09:42:00Z",
"accepted_at": "2025-05-04T09:42:00Z",
"inspected_at": "2025-05-04T09:42:00Z",
"finalized_at": "2025-05-04T09:42:00Z",
"released_at": "2025-05-04T09:42:00Z",
"cancelled_at": "2025-05-04T09:42:00Z",
"goods_presentation_due_date": "2025-05-04",
"goods_presentation_effective_date": "2025-05-04T09:42:00Z",
"cancellation_requested_at": "2025-05-04T09:42:00Z",
"rejected_at": "2025-05-04T09:42:00Z"
}
{
"error": "validation_failed",
"errors": {
"lrn": [
"can't be blank"
],
"client_ref": [
"has already been taken"
]
}
}
{
"error": "validation_failed",
"errors": {
"lrn": [
"can't be blank"
],
"client_ref": [
"has already been taken"
]
}
}