Skip to content

Create Hold ​

Method: POST
URL: BASE_URL/merchant/payment/hold/create/
Header:

http
Authorization: Bearer <ACCESS_TOKEN>

Request body ​

FieldSample DataTypeRequiredDescription
amount1000intYesAmount in SUM (1000 = 1,000 SUM)
userId123stringNoUser ID declared by the merchant
account{"field_name": "sample data"}dictNoSend empty dict {} if no additional data
cardId9f877739-bc25-4f0f-a13f-ec485fd04250stringYesCard ID created in Paylov system
time10intYesHold time in minutes. Max: 40320 (28 days)
externalIdexternalId1stringNoExternal ID. Max length: 64 characters
serviceId9f877739-bc25-4f0f-a13f-ec485fd04250stringNoProvided by the Payment System
json

{
  "userId": "string",
  "cardId": "string",
  "amount": 10,  # 10 = 10 Sum
  "account": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "time": 10,
  "externalId": "string", # max_chars: 64
  "serviceId": "uuid" 
}
FieldTypeRequiredDescription
userIdstringYesThe unique identifier for the user.
cardIdstringYesThe unique identifier for the card used in the hold.
amountintegerYesThe amount to be held. (amount in sum)
accountobjectNoContains additional properties for the account.
account.additionalProp1stringOptionalCustom account data.
account.additionalProp2stringOptionalCustom account data.
account.additionalProp2stringOptionalCustom account data.
timeintegerYesThe duration of the hold in minutes. The maximum allowed value is 28 days (40320 minutes).

Success response ​

json

{
  "result": {
    "transactionId": "uuid4"
  }
}
Fieldsample_dataTypeDescription
transactionIduuid4stringThe unique identifier for the user.