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.
        • 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.
        • 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
          POST
      • 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 publications

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

Request

Authorization
Add parameter in header
Company-Token
Example:
Company-Token: ********************
Body Params application/json
array of:
model_type
string 
optional
model_code
string 
optional
gateway_code
string 
optional
batch
string 
optional
priority
number 
optional
status_code
enum<integer> 
optional
Allowed values:
0123
data
string 
optional
log
string 
optional
Example
[
  {
    "model_type": "transactions",
    "model_code": "3865d13efaeaba89c9e7fd9d32553731",
    "gateway_code": "RP",
    "batch": "test",
    "priority": "1",
    "status_code": "2",
    "data": "{}",
    "log": null
  },
  {
    "model_type": "transactions",
    "model_code": "3865d13efaeaba89c9e7fd9d32553731",
    "company_id": "1",
    "gateway_code": "RP",
    "batch": "test",
    "priority": "1",
    "status_code": "1",
    "data": "{}",
    "log": 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 POST 'https://api.test.apipagos.com/api/v2/apipagos/publications' \
--header 'Content-Type: application/json' \
--header 'Company-Token;' \
--data-raw '[
    {
        "model_type": "transactions",
        "model_code": "3865d13efaeaba89c9e7fd9d32553731",
        "gateway_code": "RP",
        "batch": "test",
        "priority": "1",
        "status_code": "2",
        "data": "{}",
        "log": null
    },
    {
        "model_type": "transactions",
        "model_code": "3865d13efaeaba89c9e7fd9d32553731",
        "company_id": "1",
        "gateway_code": "RP",
        "batch": "test",
        "priority": "1",
        "status_code": "1",
        "data": "{}",
        "log": null
    }
]'

Responses

🟢200Success
application/json
Body
data
array[object (Publication) {9}] 
required
code
string 
required
model_type
string 
required
model_code
string 
required
gateway_code
string 
required
batch
string 
required
priority
integer 
required
data
string 
required
log
string 
required
status
object (System Status) 
required
Example
{
  "data": [
    {
      "code": "5ef6977493c04e3dc0e59ab8d06a5fb2",
      "model_type": "transactions",
      "model_code": "3865d13efaeaba89c9e7fd9d32553731",
      "gateway_code": "RP",
      "batch": "test",
      "priority": 1,
      "status_code": "2",
      "data": "{}",
      "log": null,
      "status": {
        "code": 1,
        "label": "Procesado",
        "description": "La publicacion se realizo exitosamente."
      }
    },
    {
      "code": "5ef6977493c04e3dc0e59ab8d06a5fb2",
      "model_type": "transactions",
      "model_code": "41c298b219157ecd038d38878c892627",
      "gateway_code": "RPB",
      "batch": "minimoccaecat",
      "priority": 3,
      "data": "{}",
      "log": "{}",
      "status": {
        "code": 2,
        "label": "Error",
        "description": "Ocurrio un error al hacer la publicacion."
      }
    }
  ],
  "message": "Publications created succesfully!"
}
🔴500Server Error Response
Previous
Update Single Transaction
Next
Display a listing of publications.
Built with