The Get Function Details API allows to retrieve a list of registered functions in Shoplazza server. It supports pagination for efficient querying.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

ParameterTypeRequiredDescriptionExample
pageintNoThe page number to retrieve.1
limitintNoThe number of records per page.20

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

Response Fields

ParameterTypeRequiredDescriptionExample
codestringYesAPI response code. SUCCESS means successful execution.SUCCESS
messagestringYesResponse message. SUCCESS indicates a successful response.SUCCESS
dataobjectYesContains function details.{...}
data.totalintYesTotal number of functions.2
data.functionsarrayYesA list of registered functions.[...]

Function Object Fields

ParameterTypeRequiredDescriptionExample
function_idintYesFunction ID.1
namespacestringYesFunction namespace.cart-transform
namestringYesFunction name.cart-discount
input_schemastringYesJSON schema defining function input."{\"cart\": {\"lines\": [...]}}"
source_codestringYesThe function source code."function run() {...}"
created_atstringYesFunction creation timestamp (UTC).2023-06-29 21:16:48
updated_atstringYesLast updated timestamp (UTC).2023-06-30 10:27:23
versionstringYesFunction version.v1.0.1

Error Response

FieldTypeDescriptionExample
codestringThe error code indicating the type of issue.InvalidParameter
messagestringA detailed message describing the error.wrong cursor
Language
Credentials
Click Try It! to start a request and see the response here!