- Apipagos Extras
- Apipagos Core
- Contracts
- Documents
- Refunds
- Subscriptions
- Transactions
- Publications
- Users
- Location
- Tenant infoGET
- AFIPGET
Create new users addresses.
Testing
Testing Env
Testing Env
POST
/users/addresses
apipagoscreateusers1address
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:
city
string
optional
Example:
Alguna
country
string
optional
department_floor
number
optional
department_number
number
optional
locality
string
optional
state
string
optional
Example:
Otro
street
string
optional
Example:
Falsa
street_number
string
optional
Example:
123
type
enum<string>
optional
Allowed values:
reallegalfiscalspecial
user_code
string
optional
Example:
1
zip
string
optional
Example:
1248
Example
[
{
"city": "Alguna",
"country_id": 1,
"department_floor": null,
"department_number": null,
"locality_id": 1,
"province_id": 2,
"state": "Otro",
"street": "Falsa",
"street_number": "123",
"type": "real",
"user_id": "1",
"zip": "1248"
}
]
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/users/addresses' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Company-Token;' \
--data-raw '[
{
"city": "Alguna",
"country_id": 1,
"department_floor": null,
"department_number": null,
"locality_id": 1,
"province_id": 2,
"state": "Otro",
"street": "Falsa",
"street_number": "123",
"type": "real",
"user_id": "1",
"zip": "1248"
}
]'
Responses
🟢200OK
application/json
Body
data
array [object {10}]
optional
Example:
[{"amount":"<string>","batch":"<string>","code":"<string>","config_code":"<string>","created_at":"<dateTime>","description":"<string>","field_1":"<string>","field_2":"<string>","field_3":"<string>","id":"<integer>","integrity_code":"<string>","name":"<string>","refund_date":"<dateTime>","request_date":"<dateTime>","scheduled_date":"<dateTime>","status":{"action":"none","code":"<integer>","description":"<string>","label":"<string>"},"status_log":"<string>","title":"<string>","token":"<string>","transaction_type":"<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":"Other","nationality":"<string>","profile_photo_url":"<string>","status":{"action":"none","code":"<integer>","description":"<string>","label":"<string>"},"type":"f","updated_at":"<dateTime>"}},{"amount":"<string>","batch":"<string>","code":"<string>","config_code":"<string>","created_at":"<dateTime>","description":"<string>","field_1":"<string>","field_2":"<string>","field_3":"<string>","id":"<integer>","integrity_code":"<string>","name":"<string>","refund_date":"<dateTime>","request_date":"<dateTime>","scheduled_date":"<dateTime>","status":{"action":"none","code":"<integer>","description":"<string>","label":"<string>"},"status_log":"<string>","title":"<string>","token":"<string>","transaction_type":"<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":"Widowed","nationality":"<string>","profile_photo_url":"<string>","status":{"action":"none","code":"<integer>","description":"<string>","label":"<string>"},"type":"f","updated_at":"<dateTime>"}}]
street
string
optional
Example:
<string>
street_number
string
optional
Example:
<string>
department_number
string
optional
Example:
<string>
department_floor
string
optional
Example:
<string>
city
string
optional
Example:
<dateTime>
zip
string
optional
Example:
<string>
type
enum<string>
optional
Allowed values:
reallegalfiscalspecial
Example:
<string>
country
string
optional
Example:
<string>
state
string
optional
Example:
<string>
locality
string
optional
Example:
<integer>
links
object
optional
first
string
optional
Example:
<string>
last
string
optional
Example:
<string>
next
string
optional
Example:
<string>
prev
string
optional
Example:
<string>
message
string
optional
Example:
<string>
meta
object
optional
current_page
string
optional
Example:
<integer>
from
string
optional
Example:
<integer>
last_page
string
optional
Example:
<integer>
links
array [object {3}]
optional
Example:
[{"active":"<boolean>","label":"<string>","url":"<string>"},{"active":"<boolean>","label":"<string>","url":"<string>"}]
path
string
optional
Example:
<string>
per_page
string
optional
Example:
<integer>
to
string
optional
Example:
<integer>
total
string
optional
Example:
<integer>
Example
{
"data": [
{
"amount": "<string>",
"batch": "<string>",
"code": "<string>",
"config_code": "<string>",
"created_at": "<dateTime>",
"description": "<string>",
"field_1": "<string>",
"field_2": "<string>",
"field_3": "<string>",
"id": "<integer>",
"integrity_code": "<string>",
"name": "<string>",
"refund_date": "<dateTime>",
"request_date": "<dateTime>",
"scheduled_date": "<dateTime>",
"status": {
"action": "none",
"code": "<integer>",
"description": "<string>",
"label": "<string>"
},
"status_log": "<string>",
"title": "<string>",
"token": "<string>",
"transaction_type": "<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": "Other",
"nationality": "<string>",
"profile_photo_url": "<string>",
"status": {
"action": "none",
"code": "<integer>",
"description": "<string>",
"label": "<string>"
},
"type": "f",
"updated_at": "<dateTime>"
}
},
{
"amount": "<string>",
"batch": "<string>",
"code": "<string>",
"config_code": "<string>",
"created_at": "<dateTime>",
"description": "<string>",
"field_1": "<string>",
"field_2": "<string>",
"field_3": "<string>",
"id": "<integer>",
"integrity_code": "<string>",
"name": "<string>",
"refund_date": "<dateTime>",
"request_date": "<dateTime>",
"scheduled_date": "<dateTime>",
"status": {
"action": "none",
"code": "<integer>",
"description": "<string>",
"label": "<string>"
},
"status_log": "<string>",
"title": "<string>",
"token": "<string>",
"transaction_type": "<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": "Widowed",
"nationality": "<string>",
"profile_photo_url": "<string>",
"status": {
"action": "none",
"code": "<integer>",
"description": "<string>",
"label": "<string>"
},
"type": "f",
"updated_at": "<dateTime>"
}
}
],
"links": {
"first": "<string>",
"last": "<string>",
"next": "<string>",
"prev": "<string>"
},
"message": "<string>",
"meta": {
"current_page": "<integer>",
"from": "<integer>",
"last_page": "<integer>",
"links": [
{
"active": "<boolean>",
"label": "<string>",
"url": "<string>"
},
{
"active": "<boolean>",
"label": "<string>",
"url": "<string>"
}
],
"path": "<string>",
"per_page": "<integer>",
"to": "<integer>",
"total": "<integer>"
}
}
Modified at 2024-07-18 15:38:37