PUT
/declarations/{client_ref}/present
curl \
--request PUT 'https://app.gutline.eu/api/v1/declarations/{client_ref}/present' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"location_of_goods":{"country_code":"NL","postal_code":"1012 AB","street_number":"123","city":"Amsterdam","street_name":"Main Street"}}'
Request examples
{
"location_of_goods": {
"country_code": "NL",
"postal_code": "1012 AB",
"street_number": "123",
"city": "Amsterdam",
"street_name": "Main Street"
}
}
Response examples (200)
{
"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"
}
Response examples (400)
{
"error": "validation_failed",
"errors": {
"lrn": [
"can't be blank"
],
"client_ref": [
"has already been taken"
]
}
}
Response examples (422)
{
"error": "validation_failed",
"errors": {
"lrn": [
"can't be blank"
],
"client_ref": [
"has already been taken"
]
}
}