Skip to main content

Update Platform Payment Charge

PUT /charges/platform

Description

Update the platform payment charge.

Path Parameters

NameTypeDescription
NoneNo parameters

Request Headers

NameTypeDescription
countryCodestringThe country code (header)

Request Body

  • Content Type: application/json
{
"uuId": "string",
"chargeFormula": "string",
"type": "CREDIT",
"tenantId": "string"
}

Response Code: 200 - OK

Description

Successful.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeinteger
messagestringResponse message
dataobjectData related to the charge update
errorsarrayList of error messages, if any

Example

{
"status": true,
"statusCode": 0,
"message": "Charge updated successfully",
"data": {},
"errors": [
{
"message": "Some error occurred",
"descriptiveMessage": "Detailed error message"
}
]
}

Charge Formula Documentation

Variables

  • A: Amount
  • P: Percentage

Constants

  • C: Constant

Operators

  • *: Multiplication
  • +: Addition
  • -: Subtraction

Comparators

  • <: Less than
  • >: Greater than

Delimiters

  • |: Vertical pipe

Examples of Terms

  • 5C: 5 constants
  • 4P*A: 4 percent of amount
  • 5.6P*A: 5.6 percent of amount
  • 4P*10C: 4 percent multiplied by 10 constants
  • 39C*A: 39 constants multiplied by amount
  • 20C+A: 20 constants plus amount
  • 39C-A: 39 constants minus amount

Examples of Charge Formulas

  • 4P*A: 4 percent of amount, which is 0.04 \* A
  • 5.6P*10C: 5.6 percent multiplied by 10 constants, which is 0.056 \* 10 = 0.56

Method: PUT

>http://your-api-url/charges/platform

Headers

Content-TypeValue
apiKey{{apiKey}}
countryCodestring

Body

{
"uuId": "123e4567-e89b-12d3-a456-426614174000",
"chargeFormula": "4P*A",
"type": "CREDIT",
"tenantId": "tenant123"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /charges/platform \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!