VTEX · Example Payload

Vtex Cancelpayment Example

CommerceE-CommerceRetailMarketplacePayments

Vtex Cancelpayment Example is an example object payload from VTEX, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "CancelPayment",
  "method": "POST",
  "path": "/payments/{paymentId}/cancellations",
  "summary": "VTex Cancel payment",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91",
        "cancellationId": "1231323234234",
        "code": null,
        "message": "Successfully cancelled",
        "requestId": "D12D9B80972C462980F5067A3A126837",
        "connectorMetadata": [
          {
            "name": "MetadataName",
            "value": "MetadataValue"
          }
        ]
      }
    },
    {
      "status": "500",
      "contentType": "application/json",
      "example": {
        "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91",
        "cancellationId": null,
        "code": "ERR123",
        "message": "Cancellation has failed due to an internal error",
        "requestId": "D12D9B80972C462980F5067A3A126837"
      }
    },
    {
      "status": "501",
      "contentType": "application/json",
      "example": {
        "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91",
        "cancellationId": null,
        "code": "cancel-manually",
        "message": "This payment needs to be manually cancelled",
        "requestId": "D12D9B80972C462980F5067A3A126837"
      }
    }
  ]
}