{
  "opencollection": "1.0.0",
  "info": {
    "name": "Light Authorization v1 - Card Transactions API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "v1 - Card Transactions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Batch update card transactions",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/card-transactions/batch-update",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates multiple card transactions in a single operation"
        },
        {
          "info": {
            "name": "Generate receipt upload URL",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/card-transactions/:cardTransactionId/receipt-upload-url",
            "params": [
              {
                "name": "cardTransactionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a secure upload URL for receipt documents"
        },
        {
          "info": {
            "name": "Get card transaction",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-transactions/:cardTransactionId",
            "params": [
              {
                "name": "cardTransactionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a card transaction by ID"
        },
        {
          "info": {
            "name": "Get transaction receipt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/receipt",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the attached receipt document for a card transaction"
        },
        {
          "info": {
            "name": "Remove transaction receipt",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/receipt",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Removes the attached receipt document from a card transaction"
        },
        {
          "info": {
            "name": "getCardTransactionReceiptOptions",
            "type": "http"
          },
          "http": {
            "method": "OPTIONS",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/receipt",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          }
        },
        {
          "info": {
            "name": "List card transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/card-transactions",
            "params": [
              {
                "name": "sort",
                "value": "",
                "type": "query"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return. Default is 50, maximum is 200."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The cursor position to start returning results from.\nTo opt-in into cursor-based pagination, provide `0` for the initial request.\nFor subsequent requests, use `nextCursor` and `prevCursor` from the previous response to navigate.\nCursor values are opaque and should not be constructed manually."
              },
              {
                "name": "onlyPostable",
                "value": "",
                "type": "query"
              },
              {
                "name": "missingData",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of card transactions"
        },
        {
          "info": {
            "name": "Post card transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/post",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Posts a card transaction to the ledger"
        },
        {
          "info": {
            "name": "Reset card transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/reset",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Reverses a posted card transaction's ledger entries and returns it to an editable state"
        },
        {
          "info": {
            "name": "Update card transaction",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing card transaction"
        },
        {
          "info": {
            "name": "Update card transaction line",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/card-transactions/:transactionId/lines/:transactionLineId",
            "params": [
              {
                "name": "transactionId",
                "value": "",
                "type": "path"
              },
              {
                "name": "transactionLineId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a specific card transaction line item"
        }
      ]
    }
  ],
  "bundled": true
}