v50

latestOpenAPI 3.0.0raw.githubusercontent.com2025-08-28250234.8 KB
Account

Update a pre-authorization

Updates information for a specific pre-authorization request.

⚠️ This call can only be used for pre-authorizations that have not yet been captured or canceled.

Also known as authorization hold, card authorization or pre-auth, pre-authorization is the practice of holding this balance as unavailable until either the merchant clears the transaction, also called settlement, or the hold falls off.

This operation does not appear in statements but the available balance will be updated.

Permissions

Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:

ProductCategoryResource
Credit ControlMainMain Access
Credit ControlStatementsCreate Statements

There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.To learn more about machine authentication at VTEX, see Authentication overview.

❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.

put/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}

Path parameters

creditAccountIdstring required
Example:01bce461-9g03-12ds-8217-b3d39271e15b

Credit account identification.

transactionIdstring required
Example:B2E754DCD7304D22866CB6F221CF0FEB

Pre-authorization identification.

Headers

Content-Typestring required
Example:application/json

Type of the content being sent.

Acceptstring required
Example:application/json

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Request body

valuenumber required

Pre-Authorization value.

settleboolean required

Indicates whether pre-authorization should be available to be settled. This means that the transactionId can be used to be associated with an order within a maximum period of 30 days.

installmentsnumber required

Number of installments.

Example request

{
  "value": 55,
  "settle": true,
  "installments": 1
}

Response

OK

idstring required

Pre-Authorization identification.

valuenumber required

Pre-Authorization value.

installmentsnumber required

Number of installments.