---
updatedAt: 2026-04-23T13:43:44.000Z
agentTools:
  projectIndex: https://docs.br-dge.io/llms.txt
---

# Create a Network Token for a Card-on-File.

Create a Network Token for a Card-on-File.

Network tokens are automatically provisioned when creating a BR-DGE Card-on-File. However, in situation where this didn't happen (for example if network token support was not enabled at the time of Card-on-File creation or a temporary failure to provision network tokens), you can use this endpoint to manually trigger network token provisioning.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "BR-DGE Payment Instrument REST API",
    "description": "REST API that deals with everything related to payment instrument tokenization\n",
    "version": "v1.0.0",
    "contact": {
      "name": "Customer Support",
      "url": "https://comcarde.atlassian.net/servicedesk/customer/portals"
    },
    "license": {
      "name": "MIT",
      "url": "https://docs.br-dge.io/docs/openapi-license"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.comcarde.com/v1",
      "description": "Sandbox subdomain for testing your integration works as expected, using mock payment instruments only.\n"
    },
    {
      "url": "https://secure.comcarde.com/v1",
      "description": "Use this subdomain for processing live payments in the EU region."
    },
    {
      "url": "https://secure-amer-01.api.br-dge.io/v1",
      "description": "Use this subdomain for processing live payments in the NA region."
    }
  ],
  "tags": [
    {
      "name": "Payment Instrument Tokenization",
      "description": "Payment instrument tokenization is the practice of securely storing card details, and providing a unique token that can be used in place of the raw payment instrument.\n"
    }
  ],
  "externalDocs": {
    "url": "https://docs.br-dge.io"
  },
  "paths": {
    "/payment-instruments/{token}/network-token": {
      "parameters": [
        {
          "$ref": "#/components/parameters/pathToken"
        }
      ],
      "post": {
        "tags": [
          "Payment Instrument Tokenization"
        ],
        "summary": "Create a Network Token for a Card-on-File.",
        "description": "Create a Network Token for a Card-on-File.\n\nNetwork tokens are automatically provisioned when creating a BR-DGE Card-on-File. However, in situation where this didn't happen (for example if network token support was not enabled at the time of Card-on-File creation or a temporary failure to provision network tokens), you can use this endpoint to manually trigger network token provisioning.\n",
        "operationId": "postPaymentInstrumentNetworkToken",
        "security": [
          {
            "ServerApiKey": []
          }
        ],
        "responses": {
          "201": {
            "description": "Network Token created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkToken"
                },
                "examples": {
                  "network token provisioned": {
                    "summary": "Network Token Provisioned",
                    "description": "A network token has been provisioned and its value returned.\n",
                    "value": {
                      "id": "61XJzB_BQ9qa29nGa7JZrQ000000000000US",
                      "token": "5299920000000149",
                      "expiryDate": "12-99",
                      "issuer": "VISA",
                      "status": "ACTIVE",
                      "tokenUniqueReference": "DM4MMC0000000001cd2826c715b7475bb089b7622366ebe4",
                      "paymentAccountReference": "5001EUMYTT3AESCZGUEC77KPCLETI",
                      "lastFour": "0149",
                      "cardBin": "001234",
                      "cardLastFour": "1234",
                      "cardExpiryDate": "12-34",
                      "cardIssuer": "Bank of BR-DGE"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unable to provision Network Token - Bad Request"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedRequest"
          },
          "404": {
            "$ref": "#/components/responses/EntityNotFound"
          },
          "409": {
            "description": "The network token already exists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "conflict": {
                    "value": {
                      "code": "4215",
                      "message": "Request Error: Conflict",
                      "additionalErrorDetails": "Pre existing network token exists for card on file with id:696ecc1d-63ab-4368-b69c-96f22f961b74",
                      "id": "68f113f7daee63d93b3bbcdf5f32fb29"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/UnknownServerError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "title": "ErrorResponse",
        "type": "object",
        "properties": {
          "additionalErrorDetails": {
            "type": "string",
            "description": "Additional information that may sometimes be returned about the reason an error occurred."
          },
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "message": {
            "$ref": "#/components/schemas/Message"
          },
          "validationErrors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An object that contains validation errors"
          }
        }
      },
      "NetworkToken": {
        "description": "Information about a Network Token.\n",
        "type": "object",
        "required": [
          "expiryDate",
          "issuer",
          "status",
          "id",
          "tokenUniqueReference",
          "paymentAccountReference"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier that represents the token associated with a card enrolled into the Card Network Service",
            "example": "WXdfRANqUrBalltlBKaaWHVGrFoWrIHsZAK"
          },
          "token": {
            "type": "string",
            "description": "The unique token for the enrolled PAN which can be used\nin authorization as per ISO/IEC 7812 format.\n\n\nThis will only be available once a cryptogram has been provisioned\nat least once.\n",
            "example": "5186151969968300"
          },
          "expiryDate": {
            "type": "string",
            "description": "Expiration date of the token, noted in MM-YY format",
            "example": "08-26",
            "pattern": "^(0[1-9]|1[0-2])-\\d{2}$"
          },
          "issuer": {
            "$ref": "#/components/schemas/NetworkTokenIssuer"
          },
          "status": {
            "$ref": "#/components/schemas/NetworkTokenStatus"
          },
          "tokenUniqueReference": {
            "type": "string",
            "description": "Unique identifier for the Network Token provided by the Card Network",
            "example": "DM4MMC0000000001cd2826c715b7475bb089b7622366ebe4"
          },
          "paymentAccountReference": {
            "type": "string",
            "description": "A non-financial reference assigned to each unique funding PAN (FPAN) that's used to link the payment account of that PAN to affiliated payment tokens. See our [dedicated PAR guide](https://docs.br-dge.io/docs/payment-account-reference) for more info.\n",
            "example": "5001EUMYTT3AESCZGUEC77KPCLETI"
          },
          "lastFour": {
            "type": "string",
            "description": "Last four digits of the Network Token",
            "example": "1234"
          },
          "cardBin": {
            "type": "string",
            "description": "BIN of the associated associated Card",
            "example": "00123456"
          },
          "cardLastFour": {
            "type": "string",
            "description": "Last four digits of the associated Card",
            "example": "1234"
          },
          "cardExpiryDate": {
            "type": "string",
            "description": "Expiration date of the associated Card, noted in MM-YY Format",
            "example": "08-26",
            "pattern": "^(0[1-9]|1[0-2])-\\d{2}$"
          },
          "cardIssuer": {
            "type": "string",
            "description": "Name of the issuing bank",
            "example": "Bank of BR-DGE"
          }
        }
      },
      "Message": {
        "type": "string",
        "description": "A description of the outcome of the request."
      },
      "RequestId": {
        "type": "string",
        "description": "The ID of this request. If you can include these when querying the outcome of individual requests, we can track down the root cause faster.\n",
        "example": "a7f45953-1e8b-4f33-87b0-3293f4f6972f"
      },
      "NetworkTokenIssuer": {
        "type": "string",
        "enum": [
          "MASTERCARD",
          "VISA"
        ],
        "description": "The issuing card network of the Network Token",
        "example": "MASTERCARD"
      },
      "NetworkTokenStatus": {
        "type": "string",
        "description": "The status of the Network Token.\n\n- `ACTIVE`: Can be used to provision Cryptograms for payments.\n- `DISABLED`: This can be due to card suspensions, fraud, or other\n  temporary hold reasons and may be re-activated at a later date.\n\n- `DELETED`: The token is no longer valid and cannot be re-activated.\n  This can be due to token expirations, lost card or other\n  non-temporary reasons.\n",
        "enum": [
          "ACTIVE",
          "DISABLED",
          "DELETED"
        ],
        "example": "ACTIVE"
      },
      "Code": {
        "type": "string",
        "description": "[Response Code](https://docs.br-dge.io/docs/response-codes) signifying the outcome of the request.",
        "example": "1000"
      }
    },
    "responses": {
      "UnauthorizedRequest": {
        "description": "Unauthorized request."
      },
      "EntityNotFound": {
        "description": "The specified entity was not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "entity-not-found": {
                "$ref": "#/components/examples/entity-not-found"
              }
            }
          }
        }
      },
      "UnknownServerError": {
        "description": "An internal server error occurred upstream while processing the request.\n\nIf you have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at <https://comcarde.atlassian.net/servicedesk/customer/portals> with the `id` from the response so we track down the individual requests on our end.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "Internal server error": {
                "description": "This example shows the [5001 error code]\n\nA full list of possible response codes is available [here].\n\n[5001 error code]: https://docs.br-dge.io/docs/response-codes#5001\n[here]: https://docs.br-dge.io/docs/response-codes\n",
                "value": {
                  "code": "5001",
                  "message": "Unexpected error",
                  "id": "4fad8e2e06a15656"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "pathToken": {
        "name": "token",
        "in": "path",
        "required": true,
        "description": "Multi-use token associated with the Card on File.\n",
        "schema": {
          "type": "string"
        },
        "example": "e8ac1dd4-6f4d-456f-8263-91051bb43cdc"
      }
    },
    "securitySchemes": {
      "ServerApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Operations intended for use by Merchant servers.\n\n**IMPORTANT** This key allows you to perform sensitive operations such as authorizing payments and refunds.\n\n**Production Server API keys must not be accessible outside your organization.**\n"
      }
    },
    "examples": {
      "entity-not-found": {
        "summary": "Entity Not Found Error",
        "description": "This example shows the [4040 error code].\n\nThis occurs when an entity was not found for a given ID, the entity should be clear from context.\n\nA full list of possible response codes is available [here].\n\n[4040 error code]: https://docs.br-dge.io/docs/response-codes#4040\n[here]: https://docs.br-dge.io/docs/response-codes\n",
        "value": {
          "code": "4040",
          "message": "Entity not found",
          "id": "4fad8e2e06a15656"
        }
      }
    }
  }
}
```