> ## Documentation Index
> Fetch the complete documentation index at: https://developers.pcibooking.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Payment Gateway Credential Structure

> Retrieve the credential structure for a specific payment gateway.

<Card title="Gateway Credentials Guide" icon="book" href="/account-setup/gateway-credentials">
  Store and manage payment gateway credentials
</Card>

Returns the list of credential field names required by a specific payment gateway. Use this before [storing credentials](/api-reference/process-cards/store-credentials) to determine exactly which fields (such as merchant ID, API key, or shared secret) the gateway expects.

## Error Responses

| Code   | HTTP Status | Condition                                                         |
| ------ | ----------- | ----------------------------------------------------------------- |
| `-160` | `404`       | The specified payment gateway name is not valid or not supported. |

## Parameters

### Headers

<ParamField header="Authorization" type="string" required>
  Your API key prefixed with `APIKEY`. Example: `APIKEY your-api-key`. See the [Authentication guide](/getting-started/authentication).
</ParamField>

### Path Parameters

<ParamField path="name" type="string" required>
  The name of the payment gateway. See the full list using the [Get Payment Gateways](/api-reference/process-cards/get-payment-gateways) method.
</ParamField>

<RequestExample>
  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://service.pcibooking.net/api/credentials/paymentGateway/Stripe',
    {
      headers: {
        'Authorization': 'APIKEY your-api-key'
      }
    }
  );

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://service.pcibooking.net/api/credentials/paymentGateway/Stripe',
      headers={
          'Authorization': 'APIKEY your-api-key'
      }
  )

  print(response.json())
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 200 theme={null}
  [
      "MerchantId",
      "ApiKey",
      "SharedSecret"
  ]
  ```

  ```json 400 theme={null}
  {
      "code": -125,
      "message": "Bad input data",
      "moreInfo": "...",
      "errorList": null
  }
  ```
</ResponseExample>
