---
updatedAt: 2024-12-22T06:44:30.000Z
agentTools:
  projectIndex: https://pai-pay-partners-cards-api.readme.io/llms.txt
---

# changeCardStatus 

changeCardStatus 

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "partner",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://k1.braund.cards"
    }
  ],
  "paths": {
    "/partner/api/v1/changeCardStatus": {
      "post": {
        "summary": "changeCardStatus ",
        "description": "changeCardStatus ",
        "operationId": "changecardstatus",
        "parameters": [
          {
            "name": "apikey",
            "in": "header",
            "schema": {
              "type": "string",
              "example": "API_KEY"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "example": "Bearer eyJ0eXAiOiJK"
            }
          },
          {
            "name": "requestreference",
            "in": "header",
            "schema": {
              "type": "string",
              "example": "fgmlickoeplrf-o98ygbu8h"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cardUUID": {
                    "type": "string",
                    "example": "0ca846cc-8fff-11ec-8ce2-"
                  },
                  "customerUUID": {
                    "type": "string",
                    "example": "0cdf90a3kk-8fff-11ec-8ce2-"
                  },
                  "newStatus": {
                    "type": "number",
                    "example": 1
                  },
                  "requestReference": {
                    "type": "string",
                    "example": "0001k6grkmxvcxxxh3;t81kef459"
                  }
                }
              },
              "examples": {
                "changeCardStatus ": {
                  "value": {
                    "cardUUID": "0ca846cc-8fff-11ec-8ce2-",
                    "customerUUID": "0cdf90a3kk-8fff-11ec-8ce2-",
                    "newStatus": 1,
                    "requestReference": "0001k6grkmxvcxxxh3;t81kef459"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "requestreference": {
                "schema": {
                  "type": "string",
                  "example": "0e-kdakjldk×kl×f×kk×rlkcMmKkk×k×-c]x89717cefd6"
                }
              },
              "response_reference": {
                "schema": {
                  "type": "string",
                  "example": "4e9b7ca2-c291-11ef-90a9-02e1b38e5687"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "Success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "response_reference": {
                          "type": "string",
                          "example": "3f6e67d4-bde5-11ef-90a9-02e1b38e5687"
                        },
                        "status": {
                          "type": "number",
                          "example": 200
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Card status updated  Successfully"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "code": "Success",
                      "data": {
                        "response_reference": "3f6e67d4-bde5-11ef-90a9-02e1b38e5687",
                        "status": 200
                      },
                      "message": "Card status updated  Successfully"
                    }
                  }
                }
              }
            }
          },
          "411": {
            "description": "invalid_request_reference / invalid_status / Failure",
            "headers": {
              "requestreference": {
                "schema": {
                  "type": "string",
                  "example": "0e-kdakjldk×kl×f×kk×rlkcMmKkk×k×-c]x89717cefd6"
                }
              },
              "response_reference": {
                "schema": {
                  "type": "string",
                  "example": "4e9b7ca2-c291-11ef-90a9-02e1b38e5687"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "invalid_request_reference"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "Request reference ": {
                          "type": "string",
                          "example": "0001k6grmxh3;t81kef459"
                        },
                        "response_reference": {
                          "type": "string",
                          "example": "9c3a37da-bde5-11ef-90a9-02e1b38e5687"
                        },
                        "status": {
                          "type": "number",
                          "example": 411
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Request already exist."
                    }
                  }
                },
                "examples": {
                  "Failure": {
                    "value": {
                      "code": "Failure",
                      "data": {
                        "response_reference": "afd7bed5-bde5-11ef-90a9-02e1b38e5687",
                        "status": 411
                      },
                      "message": "Failure Card and Customer Not Match"
                    }
                  },
                  "invalid_request_reference": {
                    "value": {
                      "code": "invalid_request_reference",
                      "data": {
                        "Request reference ": "0001k6grmxh3;t81kef459",
                        "status": 411
                      },
                      "message": "Request already exist."
                    }
                  },
                  "invalid_status": {
                    "value": {
                      "code": "invalid_status",
                      "data": {
                        "response_reference": "9c3a37da-bde5-11ef-90a9-02e1b38e5687",
                        "status": 411
                      },
                      "message": "Invalid newStatus value provided"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```