Adyen createTestCardRanges API

The createTestCardRanges API from Adyen — 1 operation(s) for createtestcardranges.

Operations 1

POST /createTestCardRanges Adyen Creates One or More Test Card Ranges. #

Documentation

📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/classic/configure-notifications/
📖
Documentation
https://docs.adyen.com/api-explorer/Account/6/overview
📖
Documentation
https://docs.adyen.com/development-resources/webhooks/
📖
Documentation
https://docs.adyen.com/api-explorer/BalanceControl/1/overview
📖
Documentation
https://docs.adyen.com/api-explorer/BinLookup/52/overview
📖
Documentation
https://docs.adyen.com/api-explorer/Checkout/71/overview
📖
Documentation
https://docs.adyen.com/api-explorer/balanceplatform/2/overview
📖
Documentation
https://docs.adyen.com/api-explorer/balanceplatform-webhooks/1/overview
📖
Documentation
https://docs.adyen.com/development-resources/data-protection-api/
📖
Documentation
https://docs.adyen.com/risk-management/disputes-api
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/classic/fund-transfer/
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/collect-verification-details/hosted/
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/legal-entity-management-api/
📖
Documentation
https://docs.adyen.com/api-explorer/Management/3/overview
📖
Documentation
https://docs.adyen.com/api-explorer/management-webhooks/3/overview
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/classic/notifications
📖
Documentation
https://docs.adyen.com/point-of-sale/design-your-integration/notifications/
📖
Documentation
https://docs.adyen.com/online-payments/
📖
Documentation
https://docs.adyen.com/online-payments/online-payouts
📖
Documentation
https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/
📖
Documentation
https://docs.adyen.com/online-payments/tokenization
📖
Documentation
https://docs.adyen.com/api-explorer/report-webhooks/1/overview
📖
Documentation
https://docs.adyen.com/payment-methods/gift-cards/stored-value-api/
📖
Documentation
https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/terminal-api-reference/
📖
Documentation
https://docs.adyen.com/development-resources/testing/create-test-cards
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/business-accounts/transactions/transaction-webhooks/
📖
Documentation
https://docs.adyen.com/api-explorer/transfer-webhooks/3/overview
📖
Documentation
https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/on-demand-payouts
📖
Documentation
https://docs.adyen.com/development-resources/webhooks

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/adyen-createtestcardranges-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

adyen-createtestcardranges-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1'
  x-publicVersion: true
  title: Adyen Test Cards Create Test Card Ranges API
  description: The Test Cards API provides endpoints for generating custom test card numbers. For more information, refer to [Custom test cards](https://docs.adyen.com/development-resources/testing/create-test-cards) documentation.
  x-timestamp: '2022-05-03T09:24:07Z'
  termsOfService: https://www.adyen.com/legal/terms-and-conditions
  contact:
    name: Adyen Developer Experience team
    url: https://www.adyen.help/hc/en-us/community/topics
    email: developer-experience@adyen.com
servers:
- url: https://pal-test.adyen.com/pal/services/TestCard/v1
tags:
- name: createTestCardRanges
paths:
  /createTestCardRanges:
    post:
      tags:
      - createTestCardRanges
      summary: Adyen Creates One or More Test Card Ranges.
      description: Creates one or more test card ranges.
      operationId: post-createTestCardRanges
      x-groupName: General
      x-sortIndex: 0
      security:
      - BasicAuth: []
      - ApiKeyAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTestCardRangesRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTestCardRangesResult'
              examples:
                post-createTestCardRanges200Example:
                  summary: Default post-createTestCardRanges 200 response
                  x-microcks-default: true
                  value:
                    rangeCreationResults:
                    - example_value
          description: OK - the request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
              examples:
                post-createTestCardRanges400Example:
                  summary: Default post-createTestCardRanges 400 response
                  x-microcks-default: true
                  value:
                    errorCode: CODE123
                    errorType: standard
                    message: example_value
                    pspReference: REF-001
                    status: 500
          description: Bad Request - a problem reading or understanding the request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
              examples:
                post-createTestCardRanges401Example:
                  summary: Default post-createTestCardRanges 401 response
                  x-microcks-default: true
                  value:
                    errorCode: CODE123
                    errorType: standard
                    message: example_value
                    pspReference: REF-001
                    status: 500
          description: Unauthorized - authentication required.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
              examples:
                post-createTestCardRanges403Example:
                  summary: Default post-createTestCardRanges 403 response
                  x-microcks-default: true
                  value:
                    errorCode: CODE123
                    errorType: standard
                    message: example_value
                    pspReference: REF-001
                    status: 500
          description: Forbidden - insufficient permissions to process the request.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
              examples:
                post-createTestCardRanges422Example:
                  summary: Default post-createTestCardRanges 422 response
                  x-microcks-default: true
                  value:
                    errorCode: CODE123
                    errorType: standard
                    message: example_value
                    pspReference: REF-001
                    status: 500
          description: Unprocessable Entity - a request validation error.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
              examples:
                post-createTestCardRanges500Example:
                  summary: Default post-createTestCardRanges 500 response
                  x-microcks-default: true
                  value:
                    errorCode: CODE123
                    errorType: standard
                    message: example_value
                    pspReference: REF-001
                    status: 500
          description: Internal Server Error - the server could not process the request.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    CreateTestCardRangesResult:
      properties:
        rangeCreationResults:
          description: The results of the test card creation.
          items:
            $ref: '#/components/schemas/TestCardRangeCreationResult'
          type: array
      required:
      - rangeCreationResults
    AvsAddress:
      properties:
        streetAddress:
          description: 'The street and house number of the address.


            Example: 1 Infinite Loop, Cupertino.'
          type: string
        zip:
          description: 'The zip or post code of the address.


            Example: CA 95014'
          type: string
      required:
      - streetAddress
    TestCardRange:
      properties:
        address:
          description: Contains the billing address of the card holder. The address details need to be AVS-compliant, which means that you need to provide at least street address.
          $ref: '#/components/schemas/AvsAddress'
        cardHolderName:
          description: The name of the card holder, as it appears on the card, for the test card range.
          type: string
        cvc:
          description: 'The test card range security code.


            Example: 123'
          type: string
        expiryMonth:
          description: 'Expiry month for the test card range.


            Allowed values:

            * JANUARY

            * FEBRUARY

            * MARCH

            * APRIL

            * MAY

            * JUNE

            * JULY

            * AUGUST

            * SEPTEMBER

            * OCTOBER

            * NOVEMBER

            * DECEMBER'
          enum:
          - APRIL
          - AUGUST
          - DECEMBER
          - FEBRUARY
          - JANUARY
          - JULY
          - JUNE
          - MARCH
          - MAY
          - NOVEMBER
          - OCTOBER
          - SEPTEMBER
          type: string
        expiryYear:
          description: 'Expiry year for the test card range.


            Example: 2020'
          format: int32
          type: integer
        rangeEnd:
          description: 'The last test card number in the test card range (inclusive):


            * Min 6, max 19 digits

            * BIN compliant

            Example: 5432 1234 1234 4321'
          type: string
        rangeStart:
          description: 'The first test card number in the test card range (inclusive):


            * Min 6, max 19 digits

            * BIN compliant

            Example: 5432 1234 1234 1234'
          type: string
        threeDDirectoryServerResponse:
          description: '3D Secure server response. It notifies whether the specified card holder is enrolled in a 3D Secure service. Possible values:


            * Y (Authentication available)

            * N (Card holder not enrolled/not participating)

            * U (Unable to authenticate)'
          enum:
          - N
          - U
          - Y
          type: string
        threeDPassword:
          description: The password used for 3D Secure authentication.
          type: string
        threeDUsername:
          description: The username used for 3D Secure authentication.
          type: string
      required:
      - rangeStart
      - rangeEnd
      - expiryMonth
      - expiryYear
      - cardHolderName
    TestCardRangeCreationResult:
      properties:
        cardNumberRangeEnd:
          description: 'The last test card number in the generated test card range.


            Example: 5432 1234 1234 4321'
          type: string
        cardNumberRangeStart:
          description: 'The first test card number in the generated test card range.


            Example: 5432 1234 1234 1234'
          type: string
        creationResultCode:
          description: 'Notification message. It informs about the outcome of the operation. Possible values:

            * CREATED

            * ALREADY_EXISTS

            * ERROR'
          enum:
          - ALREADY_EXISTS
          - CREATED
          - ERROR
          type: string
        message:
          description: An optional information message about the result.
          type: string
      required:
      - cardNumberRangeStart
      - cardNumberRangeEnd
      - creationResultCode
    CreateTestCardRangesRequest:
      properties:
        accountCode:
          description: The code of the account, for which the test card ranges should be created.
          type: string
        accountTypeCode:
          description: 'The type of the account, for which the test card ranges should be created.


            Permitted values:

            * Company

            * MerchantAccount

            > These values are case-sensitive.'
          type: string
        testCardRanges:
          description: A list of test card ranges to create.
          items:
            $ref: '#/components/schemas/TestCardRange'
          type: array
      required:
      - accountTypeCode
      - accountCode
      - testCardRanges
    ServiceError:
      properties:
        errorCode:
          description: The error code mapped to the error message.
          type: string
        errorType:
          description: The category of the error.
          type: string
        message:
          description: A short explanation of the issue.
          type: string
        pspReference:
          description: The PSP reference of the payment.
          type: string
        status:
          description: The HTTP response status.
          format: int32
          type: integer
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-API-Key
      type: apiKey
    BasicAuth:
      scheme: basic
      type: http
x-groups:
- General