# Get channel checkout URL
URL: /api-reference/stablecoins/channels/get-channel-checkout

Get a link to the hosted Volt Checkout page for the channel. The page shows the payer the channel's deposit addresses, one per network, and the current indicative rate of the channel's `currency` to EUR.

Both links are valid for one hour. Once they expire, call this endpoint again to get fresh ones. Do not cache or store the links, and do not log them: anyone holding a link can open the channel's checkout page. The response is sent with `Cache-Control: no-store`.


- `GET /channels/{id}/checkout`

```json
{
  "servers": [
    {
      "name": "Sandbox",
      "url": "https://stablecoins.sandbox.volt.io",
      "description": "Sandbox"
    },
    {
      "name": "Production",
      "url": "https://stablecoins.volt.io",
      "description": "Production"
    }
  ],
  "paths": {
    "/channels/{id}/checkout": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ChannelId"
        }
      ],
      "get": {
        "summary": "Get channel checkout URL",
        "tags": [
          "Channels"
        ],
        "operationId": "get-channel-checkout",
        "security": [
          {
            "Bearer": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/X-Volt-Api-Version"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ChannelCheckoutResponse"
          },
          "400": {
            "$ref": "#/components/responses/BadRequestResponse"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedResponse"
          },
          "403": {
            "$ref": "#/components/responses/AccessDeniedResponse"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundResponse"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequestsResponse"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerErrorResponse"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth access token."
      }
    },
    "parameters": {
      "ChannelId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identifier of the channel.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "X-Volt-Api-Version": {
        "name": "X-Volt-Api-Version",
        "in": "header",
        "required": true,
        "description": "Version of the API used. Currently, version `1` is the only version.",
        "schema": {
          "type": "integer",
          "enum": [
            1
          ],
          "examples": [
            1
          ]
        }
      }
    },
    "responses": {
      "ChannelCheckoutResponse": {
        "description": "**OK** - Successful request, returning links to the channel's checkout page.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/Cache-Control"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ChannelCheckoutResponse"
            },
            "examples": {
              "ChannelCheckoutExample": {
                "$ref": "#/components/examples/ChannelCheckoutExample"
              }
            }
          }
        }
      },
      "BadRequestResponse": {
        "description": "**Bad request** - Request you sent is invalid or malformed. Response will contain a description of the actual problem.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "BAD_REQUEST",
                    "CONFIGURATION_ERROR"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "BAD_REQUEST"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "BadRequestExample": {
                "summary": "Malformed request",
                "value": {
                  "code": "BAD_REQUEST",
                  "message": "The request is invalid or malformed."
                }
              },
              "ConfigurationErrorExample": {
                "summary": "Customer not onboarded for stablecoin payments",
                "value": {
                  "code": "CONFIGURATION_ERROR",
                  "message": "Customer is not onboarded for stablecoin payments."
                }
              }
            }
          }
        }
      },
      "UnauthorizedResponse": {
        "description": "**Unauthorized** - Your credentials were invalid. It may be that the token you've used has expired. Try re-authenticating with valid or updated credentials and retry this request.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "UNAUTHORISED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "UNAUTHORISED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "UnauthorizedExample": {
                "summary": "Missing or invalid access token",
                "value": {
                  "code": "UNAUTHORISED",
                  "message": "Authentication required."
                }
              }
            }
          }
        }
      },
      "AccessDeniedResponse": {
        "description": "**Access denied** - Although your credentials are correct, your access to this section of the API has been disabled or limited. Subsequent requests to this endpoint will not be processed.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "ACCESS_DENIED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "ACCESS_DENIED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "AccessDeniedExample": {
                "summary": "Access to the API disabled or limited",
                "value": {
                  "code": "ACCESS_DENIED",
                  "message": "Your access to this part of the API has been disabled or limited."
                }
              }
            }
          }
        }
      },
      "NotFoundResponse": {
        "description": "**Not found** - The resource that you are requesting cannot be found.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "RESOURCE_NOT_FOUND"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "RESOURCE_NOT_FOUND"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "WalletNotFoundExample": {
                "summary": "Resource not found",
                "value": {
                  "code": "RESOURCE_NOT_FOUND",
                  "message": "Not found."
                }
              }
            }
          }
        }
      },
      "TooManyRequestsResponse": {
        "description": "**Too many requests** - The rate limit was exceeded. Try again later.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "RATE_LIMIT_EXCEEDED"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "RATE_LIMIT_EXCEEDED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "TooManyRequestsExample": {
                "summary": "Rate limit exceeded",
                "value": {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "message": "Too many requests. Try again later."
                }
              }
            }
          }
        }
      },
      "InternalServerErrorResponse": {
        "description": "**Internal server error** - Something went wrong and request cannot be processed due to server error. Message will contain trace ID and timestamp, which allows to investigate what went wrong.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "INTERNAL_SERVER_ERROR"
                  ],
                  "description": "Error code.",
                  "examples": [
                    "INTERNAL_SERVER_ERROR"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Error message."
                }
              }
            },
            "examples": {
              "InternalServerErrorExample": {
                "summary": "Unexpected internal error",
                "value": {
                  "code": "INTERNAL_SERVER_ERROR",
                  "message": "An internal error occurred."
                }
              }
            }
          }
        }
      }
    },
    "headers": {
      "Cache-Control": {
        "description": "Caching directive. Always `no-store`, so the response must not be cached.",
        "schema": {
          "type": "string",
          "examples": [
            "no-store"
          ]
        }
      },
      "Retry-After": {
        "description": "Number of seconds to wait before retrying the request.",
        "schema": {
          "type": "integer",
          "examples": [
            30
          ]
        }
      }
    },
    "schemas": {
      "ChannelCheckoutResponse": {
        "title": "ChannelCheckout",
        "type": "object",
        "required": [
          "redirect"
        ],
        "properties": {
          "redirect": {
            "type": "object",
            "title": "Redirect",
            "description": "Links to the channel's hosted checkout page. Both links open the same page and are valid for one hour.",
            "required": [
              "url",
              "directUrl"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Short URL of the checkout page. Use this link to redirect the payer or to share the page with them. When a short link cannot be issued, it is the same as `directUrl`.",
                "examples": [
                  "https://vo.lt/k3Xa9Q"
                ]
              },
              "directUrl": {
                "type": "string",
                "format": "uri",
                "description": "Full URL of the checkout page, carrying the signed access token in the `token` query parameter. In Sandbox, the page is served from `checkout.sandbox.volt.io`.",
                "examples": [
                  "https://checkout.volt.io/stablecoins/channel?token=eyJhbGciOiJSUzI1NiJ9.eyJjaGFubmVsSWQiOiI5YzJlNmI0YS04ZjFkLTRjM2EtYjVlNy1kMGEyYzRlNmY4YjEifQ.c2lnbmF0dXJl"
                ]
              }
            }
          }
        }
      }
    },
    "examples": {
      "ChannelCheckoutExample": {
        "summary": "Checkout links for a channel",
        "value": {
          "redirect": {
            "url": "https://vo.lt/k3Xa9Q",
            "directUrl": "https://checkout.volt.io/stablecoins/channel?token=eyJhbGciOiJSUzI1NiJ9.eyJjaGFubmVsSWQiOiI5YzJlNmI0YS04ZjFkLTRjM2EtYjVlNy1kMGEyYzRlNmY4YjEifQ.c2lnbmF0dXJl"
          }
        }
      }
    }
  }
}
```