---
agentTools:
  projectIndex: https://virtualpos.readme.io/llms.txt
---

# Cancelar un objeto Payment

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "VirtualPOS",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.virtualpos.cl"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/payment/{uuid}": {
      "delete": {
        "summary": "Cancelar un objeto Payment",
        "description": "",
        "operationId": "cancelar-un-objeto-payment",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "API KEY del comercio",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "Firma del mensaje",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"commerce\": {\n    \"commerce_id\": \"76123456-7\",\n    \"name\": \"Comercial Andes\"\n  },\n  \"payment\": {\n    \"client\": {\n      \"email\": \"user@example.com\",\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"social_id\": \"12345678-9\",\n      \"phone\": \"56961934502\"\n    },\n    \"order\": {\n      \"uuid\": \"03164889d86c9fe4\",\n      \"status\": \"cancelado\",\n      \"created_at\": \"2021-09-08 11:20:31\",\n      \"card_number\": \"\",\n      \"authorized_at\": \"\",\n      \"auth_code\": \"\",\n      \"installment_amount\": \"\",\n      \"installment_number\": \"\",\n      \"payment_type_code\": \"\",\n      \"amount\":9990,\n      \"merchant_internal_code\": \"OC-1234\",\n      \"merchant_internal_channel\": \"portal_pagos\",\n      \"deposits\": []\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "OK"
                    },
                    "code": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "commerce": {
                      "type": "object",
                      "properties": {
                        "commerce_id": {
                          "type": "string",
                          "example": "76123456-7"
                        },
                        "name": {
                          "type": "string",
                          "example": "Comercial Andes"
                        }
                      }
                    },
                    "payment": {
                      "type": "object",
                      "properties": {
                        "client": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "type": "string",
                              "example": "user@example.com"
                            },
                            "first_name": {
                              "type": "string",
                              "example": "John"
                            },
                            "last_name": {
                              "type": "string",
                              "example": "Doe"
                            },
                            "social_id": {
                              "type": "string",
                              "example": "12345678-9"
                            },
                            "phone": {
                              "type": "string",
                              "example": "56961934502"
                            }
                          }
                        },
                        "order": {
                          "type": "object",
                          "properties": {
                            "uuid": {
                              "type": "string",
                              "example": "03164889d86c9fe4"
                            },
                            "status": {
                              "type": "string",
                              "example": "cancelado"
                            },
                            "created_at": {
                              "type": "string",
                              "example": "2021-09-08 11:20:31"
                            },
                            "card_number": {
                              "type": "string",
                              "example": ""
                            },
                            "authorized_at": {
                              "type": "string",
                              "example": ""
                            },
                            "auth_code": {
                              "type": "string",
                              "example": ""
                            },
                            "installment_amount": {
                              "type": "string",
                              "example": ""
                            },
                            "installment_number": {
                              "type": "string",
                              "example": ""
                            },
                            "payment_type_code": {
                              "type": "string",
                              "example": ""
                            },
                            "amount": {
                              "type": "integer",
                              "example": 9990,
                              "default": 0
                            },
                            "merchant_internal_code": {
                              "type": "string",
                              "example": "OC-1234"
                            },
                            "merchant_internal_channel": {
                              "type": "string",
                              "example": "portal_pagos"
                            },
                            "deposits": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {}
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"NOK\",\n  \"code\": 400,\n  \"error\": {\n    \"error_code\": \"E-###\",\n    \"message\": \"detalle del error\",\n    \"doc_url\": \"https://virtualpos.readme.io/reference/objeto-error\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "NOK"
                    },
                    "code": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "error_code": {
                          "type": "string",
                          "example": "E-###"
                        },
                        "message": {
                          "type": "string",
                          "example": "detalle del error"
                        },
                        "doc_url": {
                          "type": "string",
                          "example": "https://virtualpos.readme.io/reference/objeto-error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "63d857da7710f60012144a5b:63fe66f9522bbb006cfd131a"
}
```