Skip to main content
Every GNet Platform integration comes down to two directions — Farm In (you receive trips) and Farm Out (you send trips). Each prompt below is a complete, self-contained build spec: paste it into your AI coding assistant and it generates a working integration — authentication, validation, idempotency, retries, status callbacks, and tests included. Then verify your Farm In endpoint with the black-box test at the bottom.
Establish your partnership in GNet Connect and get your API credentials before go-live. The prompts leave every credential as a placeholder — fill in the values we issue you.

How it works

1

Pick your direction

Farm In if other operators send trips to you. Farm Out if you send trips to partners. Most full integrations need both.
2

Fill the Variables block

Set your language, your griddID, and route paths at the top of the prompt. Leave credentials as placeholders — your assistant will wire them to environment variables.
3

Paste into your AI assistant

Drop the whole prompt into Cursor, Claude, ChatGPT, or Copilot. It returns a runnable project with tests and a README.
4

Verify, then go live

Run the Farm In conformance test below against your endpoint, and use the GBOOK tool to exercise trips end-to-end, before switching on production credentials.

Choose your language

The prompts are language-agnostic. Set one variable — TARGET_LANGUAGE_AND_FRAMEWORK — to your stack and the assistant generates idiomatic code for it. Verified targets: Any other stack works too — just name it in the slot.

The prompts

Builds your inbound POST endpoint (Basic auth + reservation JSON to success/error shape), the GET health check, QUOTE handling, and the outbound status callbacks to providerUpdateStatusByResNo. Expand, copy, fill the Variables block, and paste.

Test your Farm In endpoint

Once your Farm In service is built and deployed, verify it against the contract with this black-box script. It plays the role of GNet — sending representative reservations to your URL and checking the responses — so you need no access to your own code to run it. Pure bash + curl, with 0/1 exit codes for CI.
It checks:
  • GET health → 200 {"success": true}
  • Basic auth enforced — missing and wrong credentials are rejected with 401
  • REGULAR NEWsuccess + reservationId + the transactionId echoed back
  • Idempotency — the same transactionId returns the same reservationId (no duplicate booking)
  • QUOTE → returns a totalAmount
  • Malformed JSON → rejected with 400, not a 5xx crash

Keep going

Quick Start

The full technical integration guide behind these prompts.

API Reference

Complete endpoint reference on Apiary.

Test with GBOOK

Fire test trips into your integration end-to-end. Use “SHOW JSON” to see exact payloads.

Need a hand?

Our team can walk through the integration with you.