### PSE Payment Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initiates a PSE payment. Requires additional bank code and payer address. A GET request to /get_banks/1/ should be made prior to this to obtain the bankCode. ```APIDOC ## POST /cobru/payment ### Description Initiates a PSE payment. Requires additional bank code and payer address. A GET request to `/get_banks/1/` should be made prior to this to obtain the `bankCode`. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "pse" for PSE payments - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **document_type** (string) - Required - Payer's document type (e.g., "CC") - **phone** (string) - Required - Payer's phone number - **bank** (string) - Required - Numeric code of the bank - **address** (string) - Required - Payer's address ### Request Example ```json { "name": "Juan Perez", "payment": "pse", "cc": "1140867070", "email": "juan@cobru.co", "document_type": "CC", "phone": "300000000", "bank": "1040", "address": "Bogotá, Colombia" } ``` ### Response #### Success Response (200) - **pse_url** (string) - The URL to redirect the user to for PSE payment completion. ``` -------------------------------- ### PSE Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Use this payload for PSE payments. Ensure to consult GET /get_banks/1/ to obtain the correct bankCode before sending. ```json { "name": "Juan Perez", "payment": "pse", "cc": "1140867070", "email": "juan@cobru.co", "document_type": "CC", "phone": "300000000", "bank": "1040", "address": "Bogotá, Colombia" } ``` -------------------------------- ### Daviplata Payment - Initial Request Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initiates a Daviplata payment. This is the first step, requiring a second call to confirm after receiving an OTP. ```APIDOC ## POST /cobru/payment ### Description Initiates a Daviplata payment. This is the initial request. A second call to `/cobru/confirm_daviplata/` is required after the payer receives the OTP. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "daviplata" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **phone** (string) - Required - Payer's phone number - **document_type** (string) - Required - Payer's document type (e.g., "CC") ### Request Example ```json { "name": "Test Gómez", "payment": "daviplata", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` ### Response #### Success Response (200) - **payment_details** (object) - Contains details for the next step in the Daviplata payment process. ``` -------------------------------- ### dale! Payment Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initiates a payment using the 'dale!' service. ```APIDOC ## POST /cobru/payment ### Description Initiates a payment using the 'dale!' service. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "dale!" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **phone** (string) - Required - Payer's phone number - **document_type** (string) - Required - Payer's document type (e.g., "CC") ### Request Example ```json { "name": "Test Gómez", "payment": "dale", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` ### Response #### Success Response (200) - **payment_details** (object) - Contains details for completing the 'dale!' payment. ``` -------------------------------- ### Nequi Payment Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initiates a Nequi payment. Can trigger a push notification to the user's Nequi app if `push` is true. ```APIDOC ## POST /cobru/payment ### Description Initiates a Nequi payment. If `push` is set to `true`, it generates a push notification in the user's Nequi app. If `push` is `false`, it returns data for a QR-like experience. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "NEQUI" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **phone** (string) - Required - Payer's phone number - **document_type** (string) - Required - Payer's document type (e.g., "CC") - **phone_nequi** (string) - Required - Nequi phone number - **push** (boolean) - Required - Whether to trigger a push notification (`true`) or return QR data (`false`) ### Request Example ```json { "name": "Test Gómez", "payment": "NEQUI", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC", "phone_nequi": "307654332", "push": true } ``` ### Response #### Success Response (200) - **ref** (string) - Reference number for the transaction (if `push` is false). - **checkout_url** (string) - URL for payment completion (if `push` is true). ``` -------------------------------- ### Daviplata Initial Request Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initial request payload for Daviplata payments. A second call to POST /cobru/confirm_daviplata/ is required after the user receives an OTP. ```json { "name": "Test Gómez", "payment": "daviplata", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` -------------------------------- ### Daviplata Confirmation Request Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Second call to confirm Daviplata payment using the received OTP. The success is indicated by 'result == "OK"'. ```json { "URL": "your_cobru_url_slug", "OTP": "received_otp" } ``` -------------------------------- ### Cash Payment (Efecty/Corresponsal Bancolombia) Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Generates payment details for cash-based methods like Efecty and Corresponsal Bancolombia. ```APIDOC ## POST /cobru/payment ### Description Generates payment details for cash-based methods like Efecty and Corresponsal Bancolombia. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "efecty" or "corresponsal_bancolombia" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **document_type** (string) - Required - Payer's document type (e.g., "CC") - **phone** (string) - Required - Payer's phone number ### Request Example ```json { "name": "Juan Perez", "payment": "efecty", "cc": "1140867070", "email": "juan@cobru.co", "document_type": "CC", "phone": "3002794981" } ``` ### Response #### Success Response (200) - **payment_details** (object) - Contains details for cash payment generation. ``` -------------------------------- ### Bancolombia Button Payment Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Initiates a payment via the Bancolombia Button. The response includes a checkout URL for payment completion. ```APIDOC ## POST /cobru/payment ### Description Initiates a payment via the Bancolombia Button. The response includes a `checkout` URL that the user must open to complete the payment. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "bancolombia_transfer" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **phone** (string) - Required - Payer's phone number - **document_type** (string) - Required - Payer's document type (e.g., "CC") ### Request Example ```json { "name": "Test Gómez", "payment": "bancolombia_transfer", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` ### Response #### Success Response (200) - **checkout** (string) - The URL to redirect the user to for completing the Bancolombia Button payment. ``` -------------------------------- ### Daviplata Payment - Confirmation Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Confirms a Daviplata payment after the payer has received the OTP. Requires the Cobru URL and the OTP. ```APIDOC ## POST /cobru/confirm_daviplata/ ### Description Confirms a Daviplata payment after the payer has received the OTP. Requires the Cobru URL and the OTP received by the payer. ### Method POST ### Endpoint /cobru/confirm_daviplata/ ### Parameters #### Request Body - **URL** (string) - Required - The Cobru URL/slug for the payment - **OTP** (string) - Required - The One-Time Password received by the payer ### Request Example ```json { "URL": "your_cobru_url_slug", "OTP": "123456" } ``` ### Response #### Success Response (200) - **result** (string) - Indicates success, expected to be "OK". ``` -------------------------------- ### Credit Card Payment Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Processes a credit card payment. Cobru does not persist card data. Production traffic must use HTTPS. ```APIDOC ## POST /cobru/payment ### Description Processes a credit card payment. Cobru does not persist card data. Production traffic must use HTTPS. Test card numbers are available in Spotlight documentation. ### Method POST ### Endpoint /cobru/payment ### Parameters #### Request Body - **name** (string) - Required - Payer's name - **payment** (string) - Required - Set to "credit_card" - **cc** (string) - Required - Payer's identification number - **email** (string) - Required - Payer's email address - **phone** (string) - Required - Payer's phone number - **document_type** (string) - Required - Payer's document type (e.g., "CC") - **credit_card** (string) - Required - Credit card number - **expiration_date** (string) - Required - Card expiration date (MM/YY format) - **cvv** (string) - Required - Card security code - **dues** (integer) - Required - Number of installments ### Request Example ```json { "name": "Test Gómez", "payment": "credit_card", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC", "credit_card": "4111111111111111", "expiration_date": "12/30", "cvv": "123", "dues": 1 } ``` ### Response #### Success Response (200) - **transaction_status** (string) - The status of the credit card transaction. ``` -------------------------------- ### dale! Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for dale! payments. ```json { "name": "Test Gómez", "payment": "dale", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` -------------------------------- ### Nequi Payment Details with Push Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for Nequi payments. Setting 'push: true' generates a push notification in the user's Nequi app. ```json { "name": "Test Gómez", "payment": "NEQUI", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC", "phone_nequi": "307654332", "push": true } ``` -------------------------------- ### Nequi Payment Details without Push Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for Nequi payments. Setting 'push: false' avoids a push notification and returns data for a QR-like experience, including 'ref'. ```json { "name": "Test Gómez", "payment": "NEQUI", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC", "phone_nequi": "307654332", "push": false } ``` -------------------------------- ### Efecty Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for Efecty cash payments. This is part of the 'cash payment generation' feature in Spotlight. ```json { "name": "Juan Perez", "payment": "efecty", "cc": "1140867070", "email": "juan@cobru.co", "document_type": "CC", "phone": "3002794981" } ``` -------------------------------- ### Credit Card Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for credit card payments. Cobru does not persist card data. Ensure production traffic uses HTTPS. Test card numbers are available in Spotlight. ```json { "name": "Test Gómez", "payment": "credit_card", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC", "credit_card": "4111111111111111", "expiration_date": "12/30", "cvv": "123", "dues": 1 } ``` -------------------------------- ### Corresponsal Bancolombia Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for Corresponsal Bancolombia payments. It uses the same base format as Efecty, only changing the 'payment' literal. ```json { "name": "Juan Perez", "payment": "corresponsal_bancolombia", "cc": "1140867070", "email": "juan@cobru.co", "document_type": "CC", "phone": "3002794981" } ``` -------------------------------- ### Botón Bancolombia Payment Details Source: https://docs.cobru.co/es/docs/api/cobrus/payment-details Payload for Botón Bancolombia payments. The response includes a 'checkout' URL for the user to complete the payment. ```json { "name": "Test Gómez", "payment": "bancolombia_transfer", "cc": "1082626262", "email": "test@cobru.co", "phone": "307654332", "document_type": "CC" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.