v1

latestOpenAPI 3.0.02026-08-043111167.0 KB
SourcesOfPayment

Update source of payment

Update source of payment

post/source-of-payment/update

Query parameters

authorizationstring required

Authorization token

sourceOfPaymentIdnumber required

Source of payment id

Request body

namestring
countryIdnumber
companyProductIdnumber
deletedboolean
stylesobject
slugstring
clientCommentsAvailableboolean
clientCommentsstring
activeboolean
descriptionOnClientFormboolean
isPredefinedPayerDetailsboolean
clientDefinesReferenceboolean
descriptionstring
expiresAtstring
fixedValuenumber
maxPaymentsnumber
urlCallbackstring

Example request

{
  "name": "Source of payment 1",
  "countryId": 10,
  "companyProductId": 4,
  "styles": {
    "primary": "#f0f1fe",
    "secondary": "#aaafc4"
  },
  "slug": "Source of payment 1",
  "clientComments": "clientComments",
  "active": true,
  "customFields": [
    {
      "id": 1691515792228,
      "name": "campo 2",
      "type": "text"
    }
  ],
  "description": "descrption",
  "expiresAt": "2090-09-30T00:00:00.000Z",
  "fixedValue": 100000.5,
  "maxPayments": 10,
  "payerDetails": {
    "ref": "ref-001",
    "email": "johnD@gmail.com",
    "phone": "+57 310 3297014",
    "fullName": "John Doe",
    "documentType": "CC",
    "documentNumber": "1000000888"
  },
  "urlCallback": "https://myurl.com/callback"
}

Response

id source of payment updated

idnumber