POST
/
paymentMethods
curl --request POST \
  --url https://prod.api.palomma.com/v1/paymentMethods \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "<string>",
  "type": "bankAccount",
  "bank": "santander",
  "accountType": "savings",
  "accountNumber": "<string>"
}'
{
  "id": "67d7ae28-bf1d-4ee9-8a47-99358c9e6c32",
  "status": "active",
  "customerId": "e79a0b74-3aba-4149-9f74-0bb5791a6ee6",
  "customerDetails": {
    "name": "Pepito Perez",
    "documentType": "cc",
    "documentNumber": "200220422",
    "email": "pepito@perez.com"
  },
  "type": "bankAccount",
  "bankAccount": {
    "bank": "santander",
    "accountType": "savings",
    "accountNumber": "123456789"
  },
  "bancolombiaInstant": {
    "authUrl": "https://www.bancolombia.com/...",
    "affiliate": {
      "name": "Pepito Perez",
      "documentType": "cc",
      "documentNumber": "200220422",
      "accountType": "savings",
      "accountNumber": "123456789"
    }
  },
  "nequiInstant": {
    "phoneNumber": "3298779391"
  },
  "createdAt": "2023-10-26T21:28:34.152Z",
  "updatedAt": "2023-10-26T21:28:34.152Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Payment Method created successfully.

The response is of type object.