DigiTransact · Vibe Coding Academy

DEVELOPMENT WORKBOOK

API integration prompts

Work through 14 api integration tasks. Open a brief to see its worked example, customise the variables and copy the completed prompt.

← All categories
Resume a paginated harvest Intermediate

Persist a cursor only after processing its whole page.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Persist a cursor only after processing its whole page.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. A restart recovers the remaining items without duplicate writes.

Worked example

Input: page two fails halfway.
Passing result: A restart recovers the remaining items without duplicate writes.

Common mistakes

Follow-up prompts

Link to this prompt
Normalise currency minor units Intermediate

Use declared currency precision instead of assuming two decimals.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Use declared currency precision instead of assuming two decimals.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The displayed value is GHS 12.50 and the stored integer stays 1250.

Worked example

Input: GHS 12.50 arrives as 1250 minor units.
Passing result: The displayed value is GHS 12.50 and the stored integer stays 1250.

Common mistakes

Follow-up prompts

Link to this prompt
Interpret asynchronous exports Intermediate

Follow a job status resource until a terminal state.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Follow a job status resource until a terminal state.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The user sees progress rather than an empty download.

Worked example

Input: export accepted but still processing.
Passing result: The user sees progress rather than an empty download.

Common mistakes

Follow-up prompts

Link to this prompt
Respect provider retry windows Intermediate

Delay a queued refresh according to the advertised retry interval.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Delay a queued refresh according to the advertised retry interval.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The adapter schedules no refresh before that interval.

Worked example

Input: retry allowed in 90 seconds.
Passing result: The adapter schedules no refresh before that interval.

Common mistakes

Follow-up prompts

Link to this prompt
Handle optional response fields Intermediate

Distinguish absent properties from explicit nulls.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Distinguish absent properties from explicit nulls.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The adapter preserves existing text only for the omitted property.

Worked example

Input: nickname omitted versus nickname null.
Passing result: The adapter preserves existing text only for the omitted property.

Common mistakes

Follow-up prompts

Link to this prompt
Validate imported coordinates Intermediate

Check axis order and reject out-of-range locations.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Check axis order and reject out-of-range locations.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The map adapter swaps explicitly documented axes before display.

Worked example

Input: provider sends longitude first.
Passing result: The map adapter swaps explicitly documented axes before display.

Common mistakes

Follow-up prompts

Link to this prompt
Resolve out-of-order status events Intermediate

Use versions so older updates cannot replace newer ones.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Use versions so older updates cannot replace newer ones.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. Stored status remains at version 8.

Worked example

Input: version 8 delivered before version 7.
Passing result: Stored status remains at version 8.

Common mistakes

Follow-up prompts

Link to this prompt
Translate provider status codes Intermediate

Map known codes and preserve unknown ones for review.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Map known codes and preserve unknown ones for review.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The UI reports unknown status without marking the job complete.

Worked example

Input: new upstream status PAUSED_REVIEW.
Passing result: The UI reports unknown status without marking the job complete.

Common mistakes

Follow-up prompts

Link to this prompt
Negotiate a conditional refresh Intermediate

Reuse cached content when the provider says it is unchanged.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Reuse cached content when the provider says it is unchanged.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The adapter retains the existing list and updates its check timestamp.

Worked example

Input: cached district list and a not-modified response.
Passing result: The adapter retains the existing list and updates its check timestamp.

Common mistakes

Follow-up prompts

Link to this prompt
Batch address lookups Intermediate

Return per-item outcomes when part of a batch fails.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Return per-item outcomes when part of a batch fails.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. Two results display while the unresolved town remains identifiable.

Worked example

Input: three towns; second town not found.
Passing result: Two results display while the unresolved town remains identifiable.

Common mistakes

Follow-up prompts

Link to this prompt
Handle a removed endpoint version Intermediate

Separate a retired API version from ordinary downtime.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Separate a retired API version from ordinary downtime.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The adapter surfaces a migration action instead of retrying indefinitely.

Worked example

Input: version 1 returns a retirement notice.
Passing result: The adapter surfaces a migration action instead of retrying indefinitely.

Common mistakes

Follow-up prompts

Link to this prompt
Stitch daily exchange snapshots Intermediate

Tie conversions to the quoted date rather than the download date.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Tie conversions to the quoted date rather than the download date.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The receipt cites Friday as its rate date.

Worked example

Input: Friday quote downloaded Monday.
Passing result: The receipt cites Friday as its rate date.

Common mistakes

Follow-up prompts

Link to this prompt
Model uncertain payment callbacks Intermediate

Keep a verified settlement separate from an unconfirmed user redirect.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Keep a verified settlement separate from an unconfirmed user redirect.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The order remains pending until a trusted status check confirms settlement.

Worked example

Input: browser returns before provider confirmation.
Passing result: The order remains pending until a trusted status check confirms settlement.

Common mistakes

Follow-up prompts

Link to this prompt
Constrain file import responses Intermediate

Read declared size and type before accepting an attachment.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Implement an adapter using local synthetic responses for {{project}}. Read declared size and type before accepting an attachment.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

An adapter contract, fixture and error-handling example. The adapter reports unsupported content without parsing it as CSV.

Worked example

Input: archive arrives where CSV was expected.
Passing result: The adapter reports unsupported content without parsing it as CSV.

Common mistakes

Follow-up prompts

Link to this prompt