Apipagos v2
  1. Create
Apipagos v2
  • Apipagos Extras
    • Cbu Cvu Validation
      GET
    • Credit Card Bin Validations
      GET
  • Apipagos Core
    • Contracts
      • Create
        • Create new contracts.
        • Create new contract extras.
      • Get
        • Display a listing of contracts.
        • Get contract by code or Id.
        • Get contract extra by ID.
      • Update
        • Updates contracts.
        • Updates contract extras.
        • Update single contract
    • Documents
      • Create
        • Create new documents.
          POST
        • Create documents new payment instances.
          POST
        • Create documents new life cycles.
          POST
      • Get
        • Display the life cycle of the document.
        • Display a listing of documents.
        • Display the payment instances of the document.
        • Display the specified document.
      • Update
        • Update payment instances of documents.
        • Update cycle of documents.
        • Update documents.
        • Update Single Document
    • Refunds
      • Get
        • Display a listing of refunds.
        • Get refunds by code.
      • Create
        • Create new refunds.
      • Update
        • Update refunds.
        • Update single refund
    • Subscriptions
      • Create
        • Create new subscriptions.
      • Get
        • Display a listing of subscriptions.
        • Get a subscription by code.
      • Update
        • Update subscriptions.
        • Update Single Subscription
    • Transactions
      • Create
        • Create new transactions.
      • Get
        • Display a listing of transactions.
        • Get a transaction by code.
      • Update
        • Update transactions.
        • Update Single Transaction
    • Publications
      • Create
        • Create new publications
      • Get
        • Display a listing of publications.
        • Get publication by code.
    • Users
      • Create
        • Create new users.
        • Create new users fiscal data.
        • Create new users addresses.
        • Create new users identities.
        • Create new users payment methods.
      • Get
        • Display a listing of the users.
        • Get a user by code.
      • Update
        • Update users.
        • Update Single User
    • Location
      • Get Countries
      • Get Country Provinces
      • Get Province Locations
    • Tenant info
      GET
    • AFIP
      GET
  1. Create

Create new documents.

Testing
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
POST
/documents
Create new documents.

Request

Authorization
Add parameter in header
Company-Token
Example:
Company-Token: ********************
Header Params

Body Params application/json

Example
[
    {
        "currency_code": "ARS",
        "amount": "938.85",
        "title": "quibusdam vitae fugiat",
        "type_code": "cuota",
        "field_1": "005976",
        "field_2": "0001",
        "field_3": "30715324594",
        "status_code": 3,
        "details": [
            {
                "client_code": "003",
                "source_type": "url",
                "source": "https://fair-emanate.info",
                "field_4": null,
                "field_5": null,
                "field_6": null,
                "field_7": null,
                "field_8": null,
                "field_9": null,
                "field_10": null,
                "json_1": "{\"foo\":\"_)f&OWD\\\\Pa\",\"bar\":\"fC7n?0XeC\\\"\",\"bike\":\"EO1>\\\"hR5(J\",\"a\":\"(VZGi_x)Oq\",\"b\":19037,\"name\":\"+m[dOpiPl9\",\"prop\":35939}",
                "json_2": "{\"foo\":12910,\"bar\":\"enc4?P21J_\",\"bike\":86525,\"a\":23684,\"b\":8364,\"name\":\"\\\\o=thTx@Ft\",\"prop\":90210}",
                "json_3": "{\"foo\":\":byv?RK)5;\",\"bar\":\"`},R2J#5Zb\",\"bike\":76659,\"a\":\"x\\\\j4cw&}m:\",\"b\":26998,\"name\":\"(\\\"|$9)l2$#\",\"prop\":\"g).T+O}Qqc\"}"
            }
        ],
        "payment_instances": [
            {
                "amount": 151.05
            }
        ]
    }
]

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.test.apipagos.com/api/v2/apipagos/documents' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Company-Token;' \
--data-raw '[
    {
        "currency_code": "ARS",
        "amount": "938.85",
        "title": "quibusdam vitae fugiat",
        "type_code": "cuota",
        "field_1": "005976",
        "field_2": "0001",
        "field_3": "30715324594",
        "status_code": 3,
        "details": [
            {
                "client_code": "003",
                "source_type": "url",
                "source": "https://fair-emanate.info",
                "field_4": null,
                "field_5": null,
                "field_6": null,
                "field_7": null,
                "field_8": null,
                "field_9": null,
                "field_10": null,
                "json_1": "{\"foo\":\"_)f&OWD\\\\Pa\",\"bar\":\"fC7n?0XeC\\\"\",\"bike\":\"EO1>\\\"hR5(J\",\"a\":\"(VZGi_x)Oq\",\"b\":19037,\"name\":\"+m[dOpiPl9\",\"prop\":35939}",
                "json_2": "{\"foo\":12910,\"bar\":\"enc4?P21J_\",\"bike\":86525,\"a\":23684,\"b\":8364,\"name\":\"\\\\o=thTx@Ft\",\"prop\":90210}",
                "json_3": "{\"foo\":\":byv?RK)5;\",\"bar\":\"`},R2J#5Zb\",\"bike\":76659,\"a\":\"x\\\\j4cw&}m:\",\"b\":26998,\"name\":\"(\\\"|$9)l2$#\",\"prop\":\"g).T+O}Qqc\"}"
            }
        ],
        "payment_instances": [
            {
                "amount": 151.05
            }
        ]
    }
]'

Responses

🟢200OK
application/json
Body

Example
{
    "data": [
        {
            "amount": "<string>",
            "code": "<string>",
            "created_at": "<dateTime>",
            "currency_code": "<string>",
            "field_1": "<string>",
            "field_2": "<string>",
            "field_3": "<string>",
            "id": "<integer>",
            "integrity_code": "<string>",
            "parent": {
                "value": "<Circular reference to #/components/schemas/Document detected>"
            },
            "status": {
                "action": "stopExecution",
                "code": "<integer>",
                "description": "<string>",
                "label": "<string>"
            },
            "title": "<string>",
            "type_code": "<string>",
            "updated_at": "<dateTime>",
            "user": {
                "birth_country": "<string>",
                "birthdate": "<dateTime>",
                "code": "<string>",
                "company_id": "<integer>",
                "correlation_id": "<string>",
                "created_at": "<dateTime>",
                "email": "<string>",
                "email_verified_at": "<dateTime>",
                "field_1": "<string>",
                "field_2": "<string>",
                "field_3": "<string>",
                "first_name": "<string>",
                "gender": "Male",
                "id": "<integer>",
                "last_name": "<string>",
                "marital_status": "Divorced",
                "nationality": "<string>",
                "profile_photo_url": "<string>",
                "status": {
                    "action": "none",
                    "code": "<integer>",
                    "description": "<string>",
                    "label": "<string>"
                },
                "type": "f",
                "updated_at": "<dateTime>"
            }
        },
        {
            "amount": "<string>",
            "code": "<string>",
            "created_at": "<dateTime>",
            "currency_code": "<string>",
            "field_1": "<string>",
            "field_2": "<string>",
            "field_3": "<string>",
            "id": "<integer>",
            "integrity_code": "<string>",
            "parent": {
                "value": "<Circular reference to #/components/schemas/Document detected>"
            },
            "status": {
                "action": "showPopup",
                "code": "<integer>",
                "description": "<string>",
                "label": "<string>"
            },
            "title": "<string>",
            "type_code": "<string>",
            "updated_at": "<dateTime>",
            "user": {
                "birth_country": "<string>",
                "birthdate": "<dateTime>",
                "code": "<string>",
                "company_id": "<integer>",
                "correlation_id": "<string>",
                "created_at": "<dateTime>",
                "email": "<string>",
                "email_verified_at": "<dateTime>",
                "field_1": "<string>",
                "field_2": "<string>",
                "field_3": "<string>",
                "first_name": "<string>",
                "gender": "Male",
                "id": "<integer>",
                "last_name": "<string>",
                "marital_status": "Single",
                "nationality": "<string>",
                "profile_photo_url": "<string>",
                "status": {
                    "action": "none",
                    "code": "<integer>",
                    "description": "<string>",
                    "label": "<string>"
                },
                "type": "f",
                "updated_at": "<dateTime>"
            }
        }
    ]
}
Modified at 2025-02-27 20:20:36
Previous
Update single contract
Next
Create documents new payment instances.
Built with