Developers
  • Introduction
  • Integration
    • Spring Boot Starter
      • Overview
      • Setup your project
      • Product search
      • Invoicing
      • Merchant side invoicing
      • Merchant side purchase control
      • Loyalty cards
      • Home delivery
      • Marketing & Offers
    • Custom Integration
      • Overview
      • Connection node
        • Get node version endpoint
        • Get node health endpoint
      • Product search
        • Pageable product list search endpoint
        • Product bacrode search endpoint
        • Product name search endpoint
        • Product category search endpoint
      • Invoicing
        • Receive invoice endpoint
      • Merchant side invoicing
        • Create receipt endpoint
        • Confirm receipt payment endpoint
      • Merchant side purchase control
        • Receive purchase check endpoint
        • Send purchase check result
        • Ask for purchase check data resend
      • Loyalty cards
        • Loyalty card registration endpoint
        • Loyalty card bonus endpoint
      • Home delivery
        • Receive order endpoint
        • Receive order update endpoint
        • Update order status
        • Find order by id
        • Find order by invoice id
        • Find order by institution invoice id
      • Marketing & Offers
        • Find offers endpoint
  • General
    • Data object descriptions
      • HealthStatus
      • DefaultOffer
      • DiscountOffer
      • ProductRelatedOffer
      • OfferType
      • OfferClassification
      • Order
      • OrderStatusChangeLog
      • ColorTheme
      • LoyaltyCard
      • DefaultLoyaltyCard
      • BonusLoyaltyCard
      • LoyaltyCardType
      • LoyaltyCardValidationType
      • Shipment
      • ShipmentStatus
      • Category
      • Addition
      • Address
      • Currency
      • BuyerParty
      • Campaign
      • CampaignCode
      • ClientCard
      • Information
      • Inspection
      • Invoice
      • LangCode
      • Price
      • Product
      • Quantity
      • SellerParty
      • Total
      • TotalVAT
      • Translatable
      • Receipt
      • ReceiptProduct
      • ReceiptLoyaltyCard
      • ReceiptCategory
      • VAT
    • Request & Responses
      • NodeHealthResponse
      • NodeVersionResponse
      • OfferSearchRequest
      • PickupOrderStatusChangeRequest
      • LoyaltyCardBonusResponse
      • LoyaltyCardBonusRequest
      • LoyaltyCardRegistrationResponse
      • LoyaltyCardRegistrationRequest
      • PurchaseControlCheckResendRequest
      • PurchaseControlResult
      • PurchaseControlCheckResponse
      • PurchaseControlCheckRequest
      • ReceiptPaymentConfirmationRequest
      • InstitutionRequest
      • Pageable
      • PageRequest
      • CreateReceiptRequest
      • ProductSearchRequest
    • Campaign standard
Powered by GitBook
On this page

Was this helpful?

  1. Integration
  2. Custom Integration
  3. Invoicing

Receive invoice endpoint

PreviousInvoicingNextMerchant side invoicing

Last updated 5 years ago

Was this helpful?

Implementation is OPTIONAL (Recommended)

resource: /invoice

method: POST

Request :

Response: void

{
	"id": "1",
	"institutionInvoiceId": "1234",
	"seller": {
		"uniqueCode": "Smarts store unique ID",
		"sellerName": "Store name",
		"vatNumber": "1234",
		"regNumber": "1234",
		"address": {
			"level1": "EE",
			"level2": "Harjumaa",
			"level3": "Tallinn",
			"level4": "kesklinn",
			"level5": "Tartu mnt.",
			"level6": "53",
			"level7": null,
			"level8": null,
			"postalCode": "10115"
		}
	},
	"buyer": {
		"uniqueCode": "SMARTS store unique client code",
		"loyaltyCards": [
			{
				"id": "1aBc",
				"cardNumber": "1234567",
				"useBonusOnPayment": false
			}
		]
	},
	"createdAt": "2020-01-01",
	"closedAt": "2020-01-01",
	"status": "PAYED",
	"products": [
		{
			"id": "1ABC",
			"barcode": "ABC-abc-1234",
			"type": "SINGLE",
			"translatableName": {
				"originalText": "HelenOats500g",
				"translations": [
					{
						"ET": "Helenkiirkaeraheleb500g"
					}
				]
			},
			"translatableDescription": {
				"originalText": "OatsmadeinEstonia",
				"translations": [
					{
						"ET": "Eestistoodetudkiirkaerahelbed"
					}
				]
			},
			"quantity": {
				"unit": "KILOGRAM",
				"value": "1.03"
			},
			"price": {
				"addition": {
					"type": "DSC",
					"sum": 1,
					"rate": 10
				},
				"vat": {
					"sumWithVAT": 12,
					"sumWithoutVAT": 10,
					"VATSum": 2,
					"VATRate": 20
				},
				"total": 12
			},
			"weightItem": false,
			"information": {
				"imageUrl": "https: //my.outs"
			},
			"inspections": [
				{
					"action": "INSPECT",
					"type": "MIN_AGE",
					"age": 18
				},
				{
					"action": "RESTICT",
					"type": "MAX_TIME",
					"time": "22:00:00",
					"timezone": "UTF-2"
				}
			],
			"campaigns": [
				{
					"name": "BigDiscountCampaign",
					"code": "B00000000501",
					"operation": "total>=50?total*0.98: total"
				}
			],
			"subProducts": null,
			"categories": [
				{
					"id": "1B",
					"translatableName": {
						"originalText": "Cereals",
						"translations": [
							{
								"ET": "Teraviljad"
							}
						]
					},
					"numberOfProducts": 500,
					"parentId": "1A"
				}
			]
		}
	],
	"institutionCampaigns": [
		{
			"name": "Crazy days",
			"code": "C00000SKP001",
			"operation": "amount >= 2 ? amount - (Math.floor(amount / 2) * 1) : amount"
		}
	],
	"currency": "EUR",
	"shipment": {
		"method": "COURIER",
		"status": "WAITING_FOR_CONFIRMATION",
		"price": 5,
		"currency": "EUR",
		"expectedDeliveryUTCTime": "2020-04-14T17:45:55.948353600",
		"createdUTCTime": "2020-04-15T17:45:55.948353600",
		"contactEmail": "test@test.ee",
		"contactPhone": "56314762",
		"address": {
			"level1": "EE",
			"level2": "Harjumaa",
			"level3": "Tallinn",
			"level4": "kesklinn",
			"level5": "Tartu mnt.",
			"level6": "53",
			"level7": null,
			"level8": null,
			"postalCode": "10115"
		}
	},
	"total": {
		"vat": {
			"sumWithVAT": 18,
			"sumWithoutVAT": 15,
			"VATSum": 3
		},
		"totalToPay": 18
	},
	"timeZone": "UTF-2"
}
Invoice