AgriWebb API
API Reference

Marketplace Callback

POST
/v2/marketplace/callback

Update the AgriWebb Marketplace to reflect the latest status of the current integration. The current status of functional or non-functional, as well as errors, can be reported back to AgriWebb and displayed to the user.

Header Parameters

Authorization*string

The only supported authorisation method is Bearer ...

Request Body

application/json
  1. body

Update the AgriWebb marketplace to reflect the latest status of the current integration

type*"integration-status"
Value in"integration-status"
data*

Response Body

The server will respond with the associated response type for your request type.

application/json
  1. response

The result of an integration status update, including the url to redirect the user to and the list of allowed farms.

type*"integration-status"
Value in"integration-status"
data*
curl -X POST "https://example.com/v2/marketplace/callback" \  -H "Authorization: string" \  -H "Content-Type: application/json" \  -d '{    "type": "integration-status",    "data": {}  }'
{  "type": "integration-status",  "data": {    "redirectURL": "string",    "allowedFarmIds": [      "string"    ]  }}