Skip to main content
Question

Docebo API Ecommerce

  • March 6, 2025
  • 1 reply
  • 45 views

Hello

I am currently perfoming an integration with Docebo API.( Transaction)

https://sandbox.docebosaas.com/ecommerce/v1/transaction/listI get the following response:
​​​​​​​{ "data": 
[ { "id": 0, "note": "string", "total": 0,
"items": [
{
"id": "string",
"id_course": "string",
"code": "string",
"name": "string",
"type": "string",
"price": 0,
"paid": true
}]}]}

My question is:
Does anyone know how can i get quantity ?
or
Is there any different API endpoint to get it?

Went through the api doc but did not find the field or information.Appreciate reply.

Thank you 

1 reply

hailey.gebhart
Helper III

Hi ​@vish4501,

First option would be to perform a function that finds the length of the items[] list for each transaction if that is feasible within your integration. You may need to do individual calls for seats purchases with /ecommerce/v1/transaction/get to get the proper seats quantities if you use course seats.

Another option that may or may not be easier depending on your use case is to make a call to complete an ecommerce transactions report. 

This would require you to build out a report in the New Reports tab, then use the Analytics API to run the report, export the report, get the quantity field from the ecommerce report.