Apipagos v2
  1. Update
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.
        • Create documents new payment instances.
        • Create documents new life cycles.
      • 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.
          PUT
        • Update Single Subscription
          PATCH
    • 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. Update

Update subscriptions.

Testing
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
PUT
/subscriptions
apipagosupdatesubscriptions12
Update subscriptions.

Request

Authorization
Add parameter in header
Company-Token
Example:
Company-Token: ********************
Header Params
Accept
string 
optional
Example:
application/json
Body Params application/json
array of:
code
string 
required
status_code
integer  | null 
optional
debit_day
string  | null 
optional
start_date
string  | null 
optional
field_1
string  | null 
optional
field_2
string  | null 
optional
field_3
string  | null 
optional
reference_1
string  | null 
optional
reference_2
string  | null 
optional
Example
[
    {
        "code": "44",
        "subscription_type_id": "in ea sit Duis",
        "status_code": 21,
        "debit_day": "2026-01-26",
        "start_date": "2025-01-21",
        "field_1": null,
        "field_2": null,
        "field_3": "fugiat dolore do aliquip sed",
        "reference_1": null,
        "reference_2": null
    },
    {
        "code": "87",
        "subscription_type_id": "sed enim ullamco labore",
        "status_code": 14,
        "debit_day": "2025-06-29",
        "start_date": "2025-10-16",
        "field_1": "esse",
        "field_2": null,
        "field_3": null,
        "reference_1": "consectetur ad",
        "reference_2": null
    }
]

Request 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 PUT 'https://api.test.apipagos.com/api/v2/apipagos/subscriptions' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Company-Token;' \
--data-raw '[
    {
        "code": "44",
        "subscription_type_id": "in ea sit Duis",
        "status_code": 21,
        "debit_day": "2026-01-26",
        "start_date": "2025-01-21",
        "field_1": null,
        "field_2": null,
        "field_3": "fugiat dolore do aliquip sed",
        "reference_1": null,
        "reference_2": null
    },
    {
        "code": "87",
        "subscription_type_id": "sed enim ullamco labore",
        "status_code": 14,
        "debit_day": "2025-06-29",
        "start_date": "2025-10-16",
        "field_1": "esse",
        "field_2": null,
        "field_3": null,
        "reference_1": "consectetur ad",
        "reference_2": null
    }
]'

Responses

🟢200OK
application/json
Body
data
array [object {18}] 
required
code
string 
optional
config_code
string 
optional
gateway
object 
optional
user_payment_method
object 
optional
status
object 
optional
integrity_code
string 
optional
debit_day
string 
optional
start_date
string 
optional
user
object 
optional
document_type
object 
optional
field_1
string 
optional
field_2
string 
optional
field_3
string 
optional
reference_1
string 
optional
reference_2
string 
optional
created_at
string 
optional
updated_at
string 
optional
canceled_at
string 
optional
Example
{
    "data": [
        {
            "code": "string",
            "config_code": "string",
            "gateway": {
                "code": "string",
                "type": "string",
                "title": "string",
                "description": "string",
                "messages": {
                    "status": "string",
                    "info": "string",
                    "success": "string",
                    "error": "string"
                },
                "amount": {
                    "min": "string (decimal)",
                    "max": "string (decimal)"
                },
                "settlement_days": "integer",
                "settlement_prefix": "string",
                "settlement_suffix": "string",
                "default": "integer",
                "config": {
                    "cbu_enabled": "boolean",
                    "cvu_enabled": "boolean",
                    "validate_cuit": "boolean"
                }
            },
            "user_payment_method": {
                "entity_id": "null | integer",
                "entity_code": "null | string",
                "code": "string",
                "company_id": "integer",
                "user_id": "integer",
                "holder": "null | string",
                "field_1": "null | string",
                "method": "string",
                "gateway_code": "string",
                "gateway_type": "string",
                "number": "string",
                "hashed_number": "string",
                "visible_data": "string",
                "bin": "string",
                "due_date": "string",
                "name": "string",
                "csv": "string",
                "created_at": "string (datetime)",
                "updated_at": "string (datetime)",
                "deleted_at": "null | string (datetime)"
            },
            "status": {
                "code": "integer",
                "label": "string",
                "description": "string",
                "action": "string"
            },
            "integrity_code": "null | string",
            "debit_day": "integer",
            "start_date": "string (datetime)",
            "user": {
                "id": "integer",
                "code": "string",
                "type": "string",
                "email": "string",
                "email_verified_at": "null | string (datetime)",
                "first_name": "string",
                "last_name": "string",
                "company_name": "null | string",
                "field_1": "string",
                "field_2": "string",
                "field_3": "string",
                "profile_photo_url": "string",
                "birthdate": "string (date)",
                "birth_country": "string",
                "nationality": "string",
                "gender": "string",
                "marital_status": "string",
                "status": {
                    "code": "integer",
                    "label": "string",
                    "description": "string",
                    "action": "string"
                },
                "created_at": "string (datetime)",
                "updated_at": "string (datetime)",
                "addresses": [
                    {
                        "street": "string",
                        "street_number": "string",
                        "department_number": "null | string",
                        "department_floor": "string",
                        "city": "string",
                        "state": "string",
                        "zip": "string",
                        "type": "string",
                        "country_id": "integer",
                        "province_id": "integer",
                        "locality_id": "integer",
                        "deleted_at": "null | string (datetime)",
                        "updated_at": "string (datetime)",
                        "created_at": "string (datetime)",
                        "country": "string"
                    }
                ],
                "identities": [
                    {
                        "identification_type_id": "integer",
                        "id_version": "string",
                        "identification_number": "string",
                        "country_id": "integer",
                        "issue_date": "null | string (date)",
                        "expiration_date": "null | string (date)",
                        "deleted_at": "null | string (datetime)",
                        "updated_at": "string (datetime)",
                        "created_at": "string (datetime)",
                        "type": {
                            "id": "integer",
                            "name": "string",
                            "code": "string",
                            "deleted_at": "null | string (datetime)",
                            "updated_at": "string (datetime)",
                            "created_at": "string (datetime)"
                        }
                    }
                ],
                "contactInfo": [
                    {
                        "contact_type": "string",
                        "contact_subtype": "string",
                        "contact_detail": "string",
                        "default": "integer (1 o 0)",
                        "is_valid": "integer (1 o 0)",
                        "deleted_at": "null | string (datetime)",
                        "updated_at": "string (datetime)",
                        "created_at": "string (datetime)"
                    }
                ],
                "paymentMethods": [
                    {
                        "entity_id": "integer",
                        "entity_code": "string",
                        "code": "string",
                        "company_id": "integer",
                        "holder": "null | string",
                        "field_1": "null | string",
                        "method": "string",
                        "gateway_code": "string",
                        "gateway_type": "string",
                        "number": "string",
                        "hashed_number": "null | string",
                        "visible_data": "string",
                        "bin": "null | string",
                        "due_date": "null | string",
                        "name": "null | string",
                        "csv": "null | string",
                        "created_at": "string (datetime)",
                        "updated_at": "string (datetime)",
                        "deleted_at": "null | string"
                    }
                ],
                "accounts": [],
                "fiscalData": {
                    "condition": "string",
                    "occupation": "string",
                    "government_activity": "string",
                    "government_activity_id": "integer",
                    "government_status": "string",
                    "category": "string",
                    "category_id": "integer",
                    "subcategory": "string",
                    "subcategory_id": "integer",
                    "created_at": "string (datetime)",
                    "updated_at": "string (datetime)",
                    "deleted_at": "null | string"
                },
                "validations": [
                    {
                        "validation_id": "integer",
                        "validation_type": "string",
                        "log": "array | object",
                        "status_code": "integer",
                        "expiry_date": "string (datetime)",
                        "created_at": "string (datetime)",
                        "updated_at": "string (datetime)",
                        "deleted_at": "null | string"
                    }
                ],
                "extras": [],
                "company": {
                    "company": "string",
                    "name": "string",
                    "legal_name": "string",
                    "tax_id": "string",
                    "email": "string",
                    "website": "string",
                    "status_code": "integer",
                    "logo": "string (URL)",
                    "portal_link": "string",
                    "validity_date": "string (datetime)",
                    "auditor": "string",
                    "end_date": "null | string",
                    "deleted_at": "null | string",
                    "updated_at": "string (datetime)",
                    "created_at": "string (datetime)"
                },
                "relations": [],
                "complianceExtra": [],
                "representedCompanies": []
            },
            "document_type": {
                "type_code": "string",
                "title": "string",
                "description": "string",
                "documents_source": "string",
                "transactions_source": "string",
                "program_type": "string",
                "config": "array"
            },
            "field_1": "string",
            "field_2": "string",
            "field_3": "string",
            "reference_1": "null | string",
            "reference_2": "null | string",
            "created_at": "string (datetime)",
            "updated_at": "string (datetime)",
            "canceled_at": "null | string (datetime)"
        }
    ]
}
🔴500Server Error Response
Modified at 2025-04-22 14:26:07
Previous
Get a subscription by code.
Next
Update Single Subscription
Built with