---
updatedAt: 2026-05-13T10:30:11.000Z
agentTools:
  projectIndex: https://developer.interlace.money/llms.txt
---

# Set Card Transaction Scenarios

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Infinity Card",
    "description": "Interface Developer Document",
    "version": "v3"
  },
  "externalDocs": {
    "description": "Interface Developer",
    "url": "https://developer.interlace.money/"
  },
  "servers": [
    {
      "url": "https://api-sandbox.interlace.money",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/open-api/v3/cards/{id}/consumption-scenarios": {
      "post": {
        "tags": [
          "Common"
        ],
        "summary": "Set Card Transaction Scenarios",
        "operationId": "setConsumptionScenario",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The UUID of the card.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The UUID of the card.",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConsumptionScenarioReqDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardSceneResponse"
                },
                "example": {
                  "code": "000000",
                  "message": "success",
                  "data": {
                    "id": "db3504cb-c9de-47d9-908f-55a8c6604cfc",
                    "accountId": "27b770ec-37a5-44ce-9810-6d6a40ef69d9",
                    "scenes": [
                      205,
                      43
                    ],
                    "type": "WHITE_LIST"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResult"
                },
                "example": {
                  "code": "40001",
                  "message": "Invalid parameter"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResult": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code",
            "example": "400001"
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "example": "Invalid parameter"
          }
        }
      },
      "UpdateConsumptionScenarioReqDTO": {
        "required": [
          "accountId",
          "scenes",
          "type"
        ],
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "description": "The UUID of the Account.",
            "format": "uuid"
          },
          "scenes": {
            "type": "array",
            "description": "Collection of IDs for Infinity Card transaction scenarios",
            "items": {
              "type": "integer",
              "description": "Collection of IDs for Infinity Card transaction scenarios",
              "format": "int32"
            }
          },
          "type": {
            "type": "string",
            "description": "Whitelist or blacklist",
            "enum": [
              "WHITE_LIST",
              "BLACK_LIST"
            ]
          }
        }
      },
      "CardSceneResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The UUID of the card."
          },
          "accountId": {
            "type": "string",
            "description": "The UUID of the Account."
          },
          "scenes": {
            "type": "array",
            "description": "Collection of IDs for Infinity Card transaction scenarios",
            "items": {
              "type": "integer",
              "description": "Collection of IDs for Infinity Card transaction scenarios",
              "format": "int32"
            }
          },
          "type": {
            "type": "string",
            "description": "Whitelist or blacklist",
            "enum": [
              "WHITE_LIST",
              "BLACK_LIST"
            ]
          }
        },
        "description": "Returned data"
      },
      "CardSceneResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Return code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "data": {
            "$ref": "#/components/schemas/CardSceneResource"
          }
        },
        "description": "CardSceneResource"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API Key",
        "name": "x-access-token",
        "in": "header"
      }
    }
  }
}
```