[Create payment]

POST {{url}}{{public-prefix}}/invoices/{{invoice_id}}/payments

Request Body

{"customer_id"=>"{{customer_id}}", "payment_method_id"=>"{{payment_method_id}}"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: Created

{"id":"ad4414be-68ff-4b36-96ea-2e494a596030","status":"open","refund_status":"unrequested","amount":"40.0","currency":"ARS","payment_method":{"id":"ad8a00b5-74a1-46c3-bdce-f3d1625de131","external_id":"8999462605","data":{"country":"ARG","number":"503175**0604","type":"card","cardholder_identification_type":"DNI","cardholder_identification_number":"221231231","expiration_month":11,"expiration_year":2025,"first_six_digits":"503175","last_four_digits":"0604","issuer_name":"Mastercard","cardholder_name":"APRO","card_brand_name":"Mastercard","card_brand_payment_type_id":"credit_card"},"created_at":"2021-09-30T17:40:06-03:00","collect_method_id":"d2a7fd90-a8da-4276-8fee-2b5f91edab61"},"events":[],"created_at":"2021-10-01T10:57:40-03:00","invoice_id":"abee7fce-aac1-444b-9d73-c57f38dfe30d","rejection_code":null,"rejection_type":null,"updated_at":"2021-10-01T10:57:40.151-03:00","rejection_description":null,"paid_at":null,"invoice":{"id":"abee7fce-aac1-444b-9d73-c57f38dfe30d","status":"open","amount":"40.0","external_id":"ae8487c3-b737-43cc-af66-f0d942c78c94","customer":{"id":"4b214574-8870-49a0-a91e-3e9ac73fd333","email":"test@test.com","first_name":"Customer","last_name":"Test"},"subscriptions":[],"currency":"ARS","created_at":"2021-10-01T10:53:16-03:00","paid_at":null,"checkout_link":"https://gateway.increase.app/pay-sandbox/checkout/v1/short_urls/4AqvJC","success_url":"https://increase.app/thanks?invoice_id=abee7fce-aac1-444b-9d73-c57f38dfe30d\u0026customer_id=4b214574-8870-49a0-a91e-3e9ac73fd333","collect_methods":{"cbu":[{"id":"a2bb722a-9d6d-4bdc-92ec-a8e329ec7358","name":"comafi","type":"comafi","status":"enabled","country":"ARG","max_payment_retries":1,"retry_period_time":1,"retry_period_unit":"hours","currencies":["ARS"],"payment_categories":["cbu"],"metadata":{"company_code":"merch","cuit":"30710123388","account_number":"221312344565671","beneficiary":"merchantex","id_size":1}}],"card":[{"id":"d2a7fd90-a8da-4276-8fee-2b5f91edab61","name":"Mercadopago Connect","type":"mercadopago_connect","status":"enabled","country":"ARG","max_payment_retries":0,"retry_period_time":0,"retry_period_unit":"days","currencies":["ARS"],"payment_categories":["card"],"public_key":"APP_USR-29d56597-5025-449c-883c-00b8a6c4c89c","metadata":{"expiration_days":30,"offline_payments_enabled":false}}],"ticket":[]},"invoice_items":[{"id":"00d9d5c4-a14c-4395-adb3-ce39910c74ef","invoice_id":"abee7fce-aac1-444b-9d73-c57f38dfe30d","description":"Item description","quantity":2,"unit_price":"20.0","amount":"40.0","currency":"ARS","item_number":0,"invoiceable_id":null,"invoiceable_type":null,"created_at":"2021-10-01T10:53:16.079-03:00","updated_at":"2021-10-01T10:53:16.079-03:00","product_id":null,"denormalized_product_name":null,"applicable_type":null,"applicable_id":null}],"payments":[{"id":"ad4414be-68ff-4b36-96ea-2e494a596030","invoice_id":"abee7fce-aac1-444b-9d73-c57f38dfe30d","payment_method_id":"ad8a00b5-74a1-46c3-bdce-f3d1625de131","status":"open","amount":"40.0","currency":"ARS","id_for_collect_provider":1881,"created_at":"2021-10-01T10:57:40.151-03:00","updated_at":"2021-10-01T10:57:40.151-03:00","denormalized_customer_email":"test@test.com","retry_count":0,"metadata":{},"rejection_code":null,"rejection_type":null,"account_id":"59640063-5b68-403e-9ddc-948d582cf8f2","rejection_description":null,"paid_at":null,"processor_reference_id":null,"denormalized_customer_first_name":"Customer","denormalized_customer_last_name":"Test","refund_status":"unrequested","refresh_date":null,"stop_debit":false,"sync":false}]},"processor_reference_id":null,"external_resource_url":null,"refundable":true}