GoodAPI: Plant Trees
goodapi_plant_treesPlant and track trees through GoodAPI's standalone API, retrieve planting evidence, issue eligible tree refunds, and access the organization's impact dashboard.
Acciones disponibles (6)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create Tree PlantingGOODAPI_PLANT_TREES_CREATE_TREE_PLANTINGAcciónCreate a metered tree-planting registration; live API keys can incur charges. Reuse the same idempotency key only when retrying the identical planting.
GOODAPI_PLANT_TREES_CREATE_TREE_PLANTINGAcciónCreate a metered tree-planting registration; live API keys can incur charges. Reuse the same idempotency key only when retrying the identical planting.
Parámetros de entrada
countintegerObligatorioNumber of trees to plant; must be at least 1.
metadataobjectOptional JSON metadata for non-sensitive correlation data; do not include personal, payment, or secret values.
attributionstringOptional non-sensitive label for attributing this planting in later reports and filters.
idempotency_keystringObligatorioStable unique key for this exact planting. Reuse it for an identical retry and never reuse it for a different planting.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Aggregate Planting EvidenceGOODAPI_PLANT_TREES_GET_AGGREGATE_PLANTING_EVIDENCEAcciónReturn global tree-planting verification totals and field evidence grouped by region. The data is cached for 30 days, can contain a large media list, and is not limited to the connected organization's contributions.
GOODAPI_PLANT_TREES_GET_AGGREGATE_PLANTING_EVIDENCEAcciónReturn global tree-planting verification totals and field evidence grouped by region. The data is cached for 30 days, can contain a large media list, and is not limited to the connected organization's contributions.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Impact Dashboard URLGOODAPI_PLANT_TREES_GET_IMPACT_DASHBOARD_URLAcciónReturn the connected organization's shareable public impact dashboard URL.
GOODAPI_PLANT_TREES_GET_IMPACT_DASHBOARD_URLAcciónReturn the connected organization's shareable public impact dashboard URL.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Tree Planting EvidenceGOODAPI_PLANT_TREES_GET_TREE_PLANTING_EVIDENCEAcciónReturn the beta, 30-day-cached planting lifecycle and sanitized evidence for one registration. This timeline can remain after refund and does not prove that the registration is still active.
GOODAPI_PLANT_TREES_GET_TREE_PLANTING_EVIDENCEAcciónReturn the beta, 30-day-cached planting lifecycle and sanitized evidence for one registration. This timeline can remain after refund and does not prove that the registration is still active.
Parámetros de entrada
registration_idstringObligatorioTree-planting registration ID whose lifecycle evidence to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Tree PlantingsGOODAPI_PLANT_TREES_LIST_TREE_PLANTINGSAcciónReturn tree-planting registrations and totals, optionally filtered by registration, attribution, date, or metadata. The provider returns all matches without pagination, so use filters for large histories.
GOODAPI_PLANT_TREES_LIST_TREE_PLANTINGSAcciónReturn tree-planting registrations and totals, optionally filtered by registration, attribution, date, or metadata. The provider returns all matches without pagination, so use filters for large histories.
Parámetros de entrada
end_datestringdateOptional end date in YYYY-MM-DD format for the provider's date filter.
attributionstringFilter registrations by their attribution label.
created_datestringdateFilter by creation date in YYYY-MM-DD format.
metadata_jsonstringOptional JSON-encoded object used to match registration metadata; avoid personal or secret values.
registration_idstringReturn the tree planting with this registration ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refund Tree PlantingGOODAPI_PLANT_TREES_REFUND_TREE_PLANTINGAcciónIrreversibly refund all or part of an eligible tree planting from the current billing cycle and reduce active totals. Omit count for a full refund; reuse the same idempotency key only for an identical retry.
GOODAPI_PLANT_TREES_REFUND_TREE_PLANTINGAcciónIrreversibly refund all or part of an eligible tree planting from the current billing cycle and reduce active totals. Omit count for a full refund; reuse the same idempotency key only for an identical retry.
Parámetros de entrada
countintegerNumber of trees to refund for a partial refund; omit to refund the full eligible registration.
reasonstringOptional non-sensitive reason for the refund.
metadataobjectOptional JSON metadata for non-sensitive refund correlation; do not include personal, payment, or secret values.
idempotency_keystringObligatorioStable unique key for this exact refund. Reuse it for an identical retry and never reuse it for a different refund.
registration_idstringObligatorioID of the tree-planting registration to refund.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not