> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dev.gojinko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit Agent Payment

> Redeem a Shared Payment Token to authorize the booking server-side

Pay for a trip programmatically with a Shared Payment Token, no checkout page. After checkout returns the trip's agent\_spt\_params and the agent has minted a token scoped to them, call this to schedule the agent fulfillment and authorize the charge server-side in one step.

<Accordion title="Tool description (what the LLM sees)" defaultOpen={false}>
  ```text theme={null}
  Submit a Shared Payment Token (SPT) to schedule the agent fulfillment and authorize the booking server-side in one call. This is the agent-pay alternative to sending the user to a checkout page.

  PREREQUISITE: call checkout first to get agent_spt_params, then mint an SPT scoped to those params.

  USAGE:
    submit_agent_payment({ trip_id, shared_payment_token })

  On success the booking proceeds to fulfillment ({ status, payment_verified: true }). If the issuer requires customer action (3DS) or declines, the response carries a checkout_url. Open it in a browser to complete payment manually.
  ```
</Accordion>

## Parameters

| Name                   | Type     | Required | Description                                                                                                              |
| ---------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| `trip_id`              | `string` | Yes      | Trip ID from the trip tool: the same trip you called checkout on.                                                        |
| `shared_payment_token` | `string` | Yes      | The Shared Payment Token (spt\_...) minted by the agent platform, scoped to the agent\_spt\_params returned by checkout. |
