Capture

Topics covered on this page

This document explains authorization and capture — the two steps in processing a card payment — and describes the capture types Omise supports, including Automatic Capture, Full Manual Capture, and Single Partial Capture (available only to merchants contracted with Omise Thailand, and not available for JCB cards or ITMX cards).

Quick reference

Capture type authorization_type When to use Availability
Automatic Capture — Default behavior; Omise captures the full amount immediately (or after a configurable delay), with no manual step All merchants
Full Manual Capture final_auth (default) You want to manually trigger a single, full-amount capture All merchants
Single Partial Capture pre_auth You may need to capture less than the full authorized amount Merchants that have contracted with Omise Thailand only. Not available for JCB cards or ITMX cards.
Multiple Partial Capture — Capturing the same charge more than once Not currently supported

New to Omise's capture model? Read Understanding authorization and capture for the concepts. Otherwise, use the preceding table to jump straight to the capture type and code example you need.

Understanding authorization and capture

Authorization and capture are the two steps that complete a card payment.

Authorization occurs when the merchant initiates a charge to a customer's card at checkout. During this process, the payment processor checks with the cardholder's bank to verify that the account has sufficient funds and is in good standing. If the account meets these criteria, the system places the transaction amount on hold until completion. Pre-authorizing a card confirms the payment method is valid and the cardholder is genuine without charging the account, helping prevent chargebacks.

The authorization period — the time during which the authorization remains valid — determines the window in which you must capture the amount. This period depends on the country. For merchants who contract with Omise Japan, the authorization period is 29 days. If you don't capture the amount before the authorization period ends, Omise automatically releases it, and the charge's status changes to reversed.

Capture completes the transaction. Omise withdraws the funds from the customer's account and transfers them to the merchant's account, and the transaction status moves from pending to complete.

Types of capture

Capture can be automatic or manual.

Automatic Capture

With Automatic Capture, Omise captures payments automatically after a configurable delay called the capture delay — the time between authorization and capture. By default, the capture delay is 0, so Omise captures payments immediately after authorization.

Manual Capture

With Manual Capture, you must explicitly request a capture for each payment before the authorization expires.

Manual Capture supports the following types:

  • Full Manual Capture
  • Single Partial Capture (available only to merchants that have contracted with Omise Thailand, and not available for JCB cards or ITMX cards)
  • Multiple Partial Capture (not currently supported — see Multiple Partial Capture)

Choosing an authorization type

Manual Capture charges use an authorization_type parameter to indicate how the authorized amount relates to the amount you intend to capture:

  • authorization_type=final_auth (default) — the authorized amount is final. Use final_auth for general manual capture; you can capture the charge only once, in full.
  • authorization_type=pre_auth — the authorized amount is an estimate that may be greater than what you intend to capture. Use pre_auth when you expect to capture less than the full authorized amount, such as with Single Partial Capture. pre_auth isn't available for JCB cards or ITMX cards. For details, see Card support for Single Partial Capture.

Warning: If you don't deliver the goods or services for a charge, don't attempt to capture it — Omise doesn't support a THB 0 capture request. Sending capture_amount=0 captures the full authorized amount instead of nothing. To avoid capturing an authorization you no longer intend to collect, let it expire and release automatically rather than sending a zero-amount capture request.

Full Manual Capture

With Full Manual Capture, you capture the full authorized amount.

The following flow illustrates Full Manual Capture:

graph TD A["Merchant initiates card authorization"] --> B{"Is authorization successful?"} B -->|"No"| D["Stop"] B -->|"Yes"| C["Deliver goods"] C --> E["Capture full authorized amount"]

If authorization succeeds, the merchant delivers the goods and then captures the full authorized amount. If authorization fails, the flow stops there.

Authorizing a Full Manual Capture charge

The following example authorizes a THB 70 charge using a card token. Since Full Manual Capture always captures the full amount, this example explicitly sets authorization_type=final_auth (the default):

curl https://api.omise.co/charges \
  -u $OMISE_SECRET_KEY: \
  -d "amount=7000" \
  -d "currency=THB" \
  -d "capture=false" \
  -d "card=$TOKEN_ID" \
  -d "authorization_type=final_auth"

Capturing the full authorized amount

The following example captures the full THB 70.

curl https://api.omise.co/charges/$FULL_UNCAPTURED_CHARGE_ID/capture \
  -u $OMISE_SECRET_KEY: \
  -d "capture_amount=7000"

Single Partial Capture

Important: Single Partial Capture is available only to merchants that have contracted with Omise Thailand, and isn't available for charges made with JCB cards or ITMX cards.

The following example illustrates Single Partial Capture.

Suppose a customer buys goods worth THB 70, and the merchant authorizes THB 70 on the card. However, the merchant can deliver only THB 40 worth of goods. The final bill is THB 40, so the merchant charges THB 40 to the customer's card. Omise unblocks and releases the remaining THB 30 that was authorized but not charged.

Note: The transaction that charges the THB 40 to the customer's card is the Single Partial Capture.

The following flow illustrates Single Partial Capture:

graph TD A["Merchant initiates card authorization"] --> B{"Is authorization successful?"} B -->|"No"| D["Stop"] B -->|"Yes"| C["Deliver some goods"] C --> E["Charge card partially"] E --> F["System unblocks and releases the remainder of the authorized amount"]

If authorization succeeds, the merchant delivers part of the order, charges the card for that portion, and the system automatically releases the remaining hold. If authorization fails, the flow stops there.

Enabling Single Partial Capture

Omise enables Single Partial Capture by default for eligible merchants — no setup is required. It's only available to merchants that have contracted with Omise Thailand; if you're unsure whether your account qualifies, contact your Omise account team.

Card support for Single Partial Capture

Single Partial Capture and authorization_type=pre_auth aren't available for every charge. Support depends on the card brand and type, how Omise routes the charge, and whether the processing system supports partial capture.

The following cards don't support Single Partial Capture or authorization_type=pre_auth:

  • JCB cards
  • ITMX cards

For charges made with JCB cards or ITMX cards, use Automatic Capture, or use Full Manual Capture with authorization_type=final_auth and capture the full authorized amount.

Authorizing a Single Partial Capture charge

The following example authorizes a THB 70 charge using a card token. Because the merchant expects to capture only part of this amount, the example sets authorization_type=pre_auth:

curl https://api.omise.co/charges \
  -u $OMISE_SECRET_KEY: \
  -d "amount=7000" \
  -d "currency=THB" \
  -d "capture=false" \
  -d "card=$TOKEN_ID" \
  -d "authorization_type=pre_auth"

Capturing part of the authorized amount

The following example captures THB 40 of the authorized THB 70 as a Single Partial Capture.

curl https://api.omise.co/charges/$PARTIAL_UNCAPTURED_CHARGE_ID/capture \
  -u $OMISE_SECRET_KEY: \
  -d "capture_amount=4000"

Multiple Partial Capture

Omise doesn't currently support Multiple Partial Capture.

FAQ

Is Single Partial Capture enabled by default, or do I need to request it?

Omise enables it by default for eligible merchants — no setup is required. However, it's only available to merchants that have contracted with Omise Thailand, and it isn't available for JCB cards or ITMX cards. Contact your Omise account team if you're unsure whether your account qualifies.

Can I capture a charge more than once (multiple partial captures over time)?

Not currently. Omise doesn't support Multiple Partial Capture yet, so you can capture each authorized charge only once, whether in full or as a single partial amount.

Which cards support Single Partial Capture and authorization_type=pre_auth?

Single Partial Capture and authorization_type=pre_auth aren't available for JCB cards or ITMX cards. For other cards, support depends on the card brand and type, how Omise routes the charge, and whether the processing system supports partial capture. For JCB cards and ITMX cards, use Automatic Capture, or use Full Manual Capture with authorization_type=final_auth.

Do I need to release the uncaptured balance after a Single Partial Capture manually?

No. When you capture less than the full authorized amount, Omise automatically unblocks and releases the remaining balance — no separate action is required.

What happens if I don't capture a charge within the authorization period?

Omise automatically releases the uncaptured amount, and the charge's status changes to reversed.

What's the difference between authorization_type=pre_auth and authorization_type=final_auth?

Use pre_auth when the authorized amount is an estimate that may be higher than what you intend to capture — typically for Single Partial Capture. Use final_auth (the default) for general manual capture, where the authorized amount is final, and you can capture it only once, in full. pre_auth isn't available for JCB cards or ITMX cards.

What happens if I try to capture THB 0, for example because I didn't deliver anything?

It doesn't do what you might expect — Omise doesn't support a THB 0 capture. Sending capture_amount=0 captures the full authorized amount instead of nothing. If you don't intend to collect payment, don't attempt to capture; let the authorization expire and release automatically instead.

Omise uses cookies to improve your overall site experience and collect information on your visits and browsing behavior. By continuing to browse our website, you agree to our Privacy Policy. Learn more