Build a successful business with Wantly API

Wantly API triggers

Triggers are used to receive information after an action has been performed in the Wantly system.
6 different triggers can be set in the system:
  • After creating an offer;
  • After editing the offer;
  • After deleting the offer;
  • After the product is created;
  • After editing the product;
  • After deleting the product.
In the Wantly system settings, you can write links for each trigger, information will be sent to them using the POST method. You can set Basic Auth for each link.

Download .json postman collection

Offer parameters:

{

	"proposal":{
		"id":4840,
		"nr":4840,
		"url":"ff59h1u63uzc",
		"name":"Pasi\u016blymas 4840",
		"author":"1",
		"created":"2023-11-09",
		"deadline":"2023-12-09",
		"selling":null,
		"arriving":"2023-11-16",
		"done":"2023-11-09",
		"client":"Klientas",
		"code":"123456",
		"person":"asmuo",
		"currency":"EUR",
		"status":"0",
		"soldby":null,
		"discount":"0",
		"tax":"21",
		"video":null,
		"comment":"dgasgf",
		"owner":1,
		"type":0,
		"deleted":0,
		"margin":"4.09",
		"marginper":"45.00",
		"turnover":"9.09",
		"header":32074,
		"confirmable":0,
		"accepted":0,
		"usercomment":"",
		"language":"lt",
		"created_at":"2023-11-09 13:20:34",
		"updated_at":"2023-11-09 13:24:33"
	},
	"entries":[
		{
			"product":"produktas su pvm",
			"ammount":"1",
			"sku":"cwsjuv",
			"parent":"0",
			"supplier":"Tiek\u0117jas",
			"unit":"vnt",
			"pvm":"21",
			"price":"9.0909",
			"prime":"5.00",
			"marper":"0",
			"deli":"0",
			"discount":"0",
			"comment":"<p>test<\/p>",
			"grams":"0",
			"image":"32131",
			"addup":"0",
			"link":"8454",
			"accepted":"0",
			"pricetype":"0",
			"required":"0",
			"periodical":"0",
			"withpvm":"1",
			"edit_amount":"0",
			"order":0
		},
		{
			"product":"<p>Para\u0161au apra\u0161ym\u0105 ir tekst\u0105<\/p>",
			"ammount":"#ffffff",
			"ammount2":"0",
			"parent":"0",
			"supplier":"https:\/\/base.wantly.eu\/public\/images\/wantly_logo_md.png",
			"unit":"31898",
			"pvm":"0",
			"price":"0",
			"prime":"1",
			"deli":"0",
			"discount":"2",
			"comment":"1",
			"notes":"null",
			"attribute":"text_sep",
			"link":"0",
			"accepted":"0",
			"pricetype":"0",
			"amounttype":"0",
			"periodical":"0",
			"order":1
		}
	]
}

Information provided by the offer:

  • id: The unique identifier of the offer
  • nr: Offer number
  • url: Unique URL
  • name: The name of the offer
  • author: The author of the proposal
  • created: Creation date
  • deadline: Offer validity date
  • selling: Date of sale
  • arriving: The date of delivery
  • done: Done date date
  • client: The name of the client
  • code: Customer code
  • person: Contact person
  • currency: Currency
  • status: The status of the offer
  • soldby: Date sold
  • discount: Discount percentage
  • tax: VAT rate
  • video: Video information
  • comment: Comments or remarks
  • owner: The owner of the offer
  • type: Offer type (0 – simple, 1 – generic, 4 – templates)
  • deleted: Deleted
  • margin: Margin
  • marginper: Margin percentage
  • turnover: Turnover
  • header: Header image
  • confirmable: Confirmability
  • accepted: Approval status
  • usercomment: User comments
  • language: The language of the offer
  • created_at: Date and time of creation
  • updated_at: Date and time of update

    Parameters of the offer records (when attribute is not set or 0):
  • product: Product name
  • ammount: Amount
  • sku: Product code
  • parent: Identifier of the parent product (if the product is included, otherwise 0)
  • supplier: Name of the supplier
  • unit: Unit of measurement
  • VAT: VAT rate
  • price: The price of the product
  • prime: The cost of the item
  • marper: Margin percentage
  • delhi:  Additional expenses
  • discount: Discount percentage
  • comment: Comments or remarks
  • grams: Weight in grams
  • image: The identifier of the image
  • towards: A link or reference
  • accepted: Approval status
  • pricetype: The price type
  • required: Required
  • periodical: A periodical item
  • withpvm: Price with VAT (for rendering only)
  • edit_amount: Editing amount
  • order: Sequence

    If the product “attribute” is “text_sep” or “group_sep”, the entries are non-products and are for display only.

Product parameters:

  • id: Unique product identifier
  • name: Product name
  • sku: Product code
  • price: Price information (array)
  • VAT: VAT rate
  • supplier: Average price
  • units: Unit of measurement
  • description: A brief description of the product
  • descriptionl: A detailed description of the product
  • category: The category identifier
  • image_gallery: Image gallery
  • status: Product status
  • url: Provider links (array)
  • user: Developer
  • grams: Weight in grams
  • withpvm: Include VAT in the price
  • deleted: Delete status
  • amounttype: Amount type
  • periodical: A periodical item
  • created_at: Date and time of creation
  • updated_at: Date and time of update

Information provided by the product:

{

	"product":{

		"id":8363,

		"name":"Product name",

		"sku":"1234",

		"price":"{\"Tiekejas\":{\"100\":[\"4.25\",\"6.07\",0],\"500\":[\"4\",\"5.33\",0],\"1000\":[\"3.75\",\"4.68\",0]},\"Tiek\\u0117jas2\":{\"1\":[\"10\",\"20\",0]}}",

		"pvm":0,

		"supplier":"9.02",

		"units":"vnt",

		"description":"

		Description<\/p>",

		"descriptionl":"

		Long description<\/p>",

		"category":"98",

		"image_gallery":"31129",

		"status":"0",

		"url":"[\"\"]",

		"user":1,

		"grams":null,

		"withpvm":0,

		"deleted":0,

		"amounttype":0,

		"periodical":0,

		"created_at":"2022-04-25 11:04:38",

		"updated_at":"2023-11-09 14:24:41"

	}

}

Price Array:

{

	"Tiekejas":{ // supplier
		"100":[ //quantity
			"4.25", // purchase price
			"6.07", // selling price
			0 // additional costs
		],
		"500":[ //Quantity
			"4", // purchase price
			"5.33", // selling price
			0 // additional costs
		],
		"1000":[ //Quantity
			"3.75", // purchase price
			"4.68", // selling price
			0
		]
	},
		"Tiek\u0117jas2":{ // tiekėjas
			"1":[ //kiekis
			"10", // pirkimo kaina
			"20", // pardavimo kaina
			0 // papildomos sąnaudos
		]
	}
}

API trigeriai nėra paleidžiami naudojant kitas API užklausas.