---
updatedAt: 2025-07-25T13:03:32.000Z
agentTools:
  projectIndex: https://cardsapidocs.thredd.com/v0.0/llms.txt
---

# Complete a Card Replacement

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sandbox Core Cards",
    "version": "1.1.20"
  },
  "servers": [
    {
      "url": "https://sandbox.globalprocessing.com/sandbox/",
      "description": "Sandbox Environment"
    }
  ],
  "paths": {
    "/api/v1/cards/{publicToken}/complete-replacement": {
      "put": {
        "tags": [
          "Cards"
        ],
        "summary": "Complete a Card Replacement",
        "operationId": "complete-card-replacement",
        "parameters": [
          {
            "name": "publicToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Optional GPS.API.Core.Models.Request.V1.ReplaceCards.ReplaceCardRequest",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceCardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceCardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceCardRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI reference [RFC3986] that identifies the problem type.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type.",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "description": "A URI reference that identifies the specific occurrence of the problem.",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "ReplaceCardRequest": {
        "type": "object",
        "properties": {
          "moveBalance": {
            "type": "boolean",
            "description": "If true then the balance will move to the new card.",
            "nullable": true,
            "example": true
          },
          "moveLimitAccumulators": {
            "type": "boolean",
            "description": "If true then the limit accumulators will move to the new card.",
            "nullable": true,
            "example": true
          },
          "moveChildCards": {
            "type": "boolean",
            "description": "If true then the child cards associated with the card will move to the new card.",
            "nullable": true,
            "example": false
          },
          "moveExpiryDate": {
            "type": "boolean",
            "description": "Optional field - if true, then move the same expiry date to the new card.",
            "nullable": true
          },
          "expiryDate": {
            "type": "string",
            "description": "Optional field - if provided, card is set to the new Expiry Date. Otherwise default from program is used.\r\nShould not be set when MoveExpiryDate is true. Format YYYY-MM.",
            "format": "date-time",
            "nullable": true
          },
          "freetext1": {
            "maxLength": 50,
            "type": "string",
            "description": "Additional fulfilment data used for transferring extra information to the card manufacturer.",
            "nullable": true
          },
          "freetext2": {
            "maxLength": 50,
            "type": "string",
            "description": "Additional fulfilment data used for transferring extra information to the card manufacturer.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request object to the ReplaceCard endpont."
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "description": "Oauth security header for Cards API",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://uatists.globalprocessing.net/connect/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2": [
        "readWrite"
      ]
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true,
    "samples-enabled": true,
    "sample-languages": "curl"
  }
}
```