cURL
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" }
Creates a new Payment Method from the information sent in the body.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Payment Method created successfully.
The response is of type object.
object