---
updatedAt: 2025-11-13T14:13:13.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/llms.txt
---

# Capture Charge

Capture the funds of an authorized charge, similar to capturing a credit card transaction.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Charges API",
    "version": "1.3"
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/charges/{charge_id}/capture": {
      "post": {
        "tags": [
          "Charges API"
        ],
        "operationId": "capture_charge",
        "summary": "Capture Charge",
        "description": "Capture the funds of an authorized charge, similar to capturing a credit card transaction.",
        "parameters": [
          {
            "in": "path",
            "name": "charge_id",
            "description": "The unique identifier of the charge.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureRequest"
              }
            }
          },
          "x-nullable": true
        },
        "responses": {
          "200": {
            "description": "HTTP 200 OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ChargeEvent"
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400 Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "HTTP 401 Unauthorized",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorUnauthorized"
                }
              }
            }
          },
          "404": {
            "description": "HTTP 404 Not Found",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorNotFound"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.affirm.com/api/v2"
    },
    {
      "url": "https://sandbox.affirm.com/api/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "ErrorBadRequest": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Bad Request",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 400,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "BAD_REQUEST",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "BAD_REQUEST",
            "type": "string"
          }
        }
      },
      "ErrorNotFound": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Not Found",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 404,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "NOT_FOUND",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "NOT_FOUND",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorUnauthorized": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Unauthorized",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 401,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "UNAUTHORIZED",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "UNAUTHORIZED",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CaptureRequest": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Identifies the order within the merchant's order management system that this charge corresponds to. It is only returned in the response if included in the request.",
            "example": "A1B2C3D4",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "merchant_transaction_id": {
            "description": "Your internal charge reference number; it may be different for each auth, capture, void, refund request for a single order.",
            "example": "W1X2Y3Z4",
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "shipping_carrier": {
            "description": "The shipping carrier used to ship the items.",
            "example": "USPS",
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "shipping_confirmation": {
            "description": "The tracking number of the shipment.",
            "example": "C12345678901234",
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "nullable": true
          }
        }
      },
      "ChargeEvent": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The total value of the charge, including tax and shipping. The value is non-negative and is represented in the smallest currency unit, such as cents instead of dollars. If the type is capture, this field represents the amount captured. If the type is refund, this field represents the amount refunded, including the fee that was refunded.",
            "example": 20000,
            "type": "integer"
          },
          "created": {
            "description": "The time when the charge event was created. The value is formatted in RFC 3339.",
            "example": "2019-01-01T00:00:00Z",
            "type": "string"
          },
          "currency": {
            "description": "The local currency of the charge with its being a valid subset of the ISO 4217 currency code.",
            "example": "USD",
            "type": "string"
          },
          "fee": {
            "description": "The merchant fee.",
            "example": 500,
            "type": "integer"
          },
          "fee_refunded": {
            "description": "Portion of the refunded amount that is subtracted from the merchant fee.",
            "example": 500,
            "type": "integer"
          },
          "id": {
            "description": "A unique identifier for the charge event.",
            "example": "79JHNWEMTCO3YXHE",
            "type": "string"
          },
          "transaction_id": {
            "description": "An optional, unique identifier that may be associated with each charge event and reconciled with the system of record used by the merchant.",
            "example": "ozd441HqnwpJVZl",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "merchant_transaction_id": {
            "description": "Your internal charge reference number; it may be different for each auth, capture, void, refund request for a single order.",
            "example": "W1X2Y3Z4",
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "order_id": {
            "description": "An optional, unique identifier that may be associated with each charge event and reconciled with the system of record used by the merchant.",
            "example": "4134623150183",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "description": "The type of event.",
            "enum": [
              "auth",
              "auth_expired",
              "capture",
              "confirm",
              "confirmation_expired",
              "refund",
              "split_capture",
              "update",
              "void",
              "partial_void",
              "refund_voided"
            ],
            "example": "capture",
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```