Phasio Addresses API
API for managing addresses for customers and organizations
API for managing addresses for customers and organizations
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/phasio:phasio-addresses-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Phasio Addresses API
description: This is the API documentation for the Phasio application.
version: '1.0'
servers:
- url: https://m-api.eu.phas.io
description: Generated server url
security:
- Phasio API Bearer Token: []
tags:
- name: Addresses
description: API for managing addresses for customers and organizations
paths:
/api/manufacturer/v1/address/{addressId}:
get:
tags:
- Addresses
summary: Get an address by ID
description: Retrieves address details for the specified ID
operationId: getById_1
parameters:
- name: addressId
in: path
description: ID of the address to retrieve
required: true
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: Address retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/AddressDto'
'404':
description: 'Address not found; error code: ADDRESS_NOT_FOUND'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
put:
tags:
- Addresses
summary: Edit an existing address
description: Creates a new address with the updated details, soft-deletes the old address, and transfers billing status if applicable
operationId: edit_1
parameters:
- name: addressId
in: path
description: ID of the address to edit
required: true
schema:
type: integer
format: int64
example: 1
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EditAddressDto'
required: true
responses:
'200':
description: Address edited successfully
content:
application/json:
schema:
$ref: '#/components/schemas/AddressDto'
'404':
description: 'Address not found or already deleted; error code: ADDRESS_NOT_FOUND'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/manufacturer/v1/address/create:
post:
tags:
- Addresses
summary: Create a new address
description: Creates a new address using the provided details
operationId: create_5
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAddressDto'
required: true
responses:
'200':
description: Address created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/AddressDto'
'400':
description: Invalid address data
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/manufacturer/v1/address/{addressId}/shipping:
patch:
tags:
- Addresses
summary: Set address as default shipping address
description: Marks an address as the default shipping address
operationId: setShippingAddress_1
parameters:
- name: addressId
in: path
description: ID of the address to set as shipping address
required: true
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: Address set as shipping address successfully
'404':
description: 'Address not found; error code: ADDRESS_NOT_FOUND'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/manufacturer/v1/address/{addressId}/billing:
patch:
tags:
- Addresses
summary: Set address as default billing address
description: Marks an address as the default billing address
operationId: setBillingAddress_1
parameters:
- name: addressId
in: path
description: ID of the address to set as billing address
required: true
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: Address set as billing address successfully
'404':
description: 'Address not found; error code: ADDRESS_NOT_FOUND'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/manufacturer/v1/address/organisation/{organisationId}:
get:
tags:
- Addresses
summary: Get addresses by customer organization
description: Retrieves all addresses associated with the specified customer organization
operationId: getByCustomerOrganisation_1
parameters:
- name: organisationId
in: path
description: ID of the customer organization to retrieve addresses for
required: true
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: Addresses retrieved successfully
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AddressDto'
/api/manufacturer/v1/address/customer/{customerId}:
get:
tags:
- Addresses
summary: Get addresses by customer
description: Retrieves all addresses associated with the specified customer
operationId: getByCustomer_1
parameters:
- name: customerId
in: path
description: ID of the customer to retrieve addresses for
required: true
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: Addresses retrieved successfully
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AddressDto'
components:
schemas:
CreateAddressDto:
type: object
properties:
street1:
type: string
street2:
type: string
city:
type: string
state:
type: string
country:
type: string
jurisdictionIsoCode:
type: string
zip:
type: string
name:
type: string
company:
type: string
phone:
type: string
email:
type: string
residential:
type: boolean
organisationId:
type: integer
format: int64
taxId:
type: string
required:
- city
- company
- country
- email
- name
- organisationId
- phone
- residential
- state
- street1
- street2
- zip
ApiError:
type: object
additionalProperties: true
description: Stable error contract. `error` is a SCREAMING_SNAKE code that clients match on; `message` is a human-readable sentence. Some errors add extra string fields (for example organisationId).
properties:
error:
type: string
example: ORDER_NOT_FOUND
message:
type: string
example: Order not found
required:
- error
- message
EditAddressDto:
type: object
properties:
street1:
type: string
street2:
type: string
city:
type: string
state:
type: string
country:
type: string
jurisdictionIsoCode:
type: string
zip:
type: string
name:
type: string
company:
type: string
phone:
type: string
email:
type: string
residential:
type: boolean
taxId:
type: string
required:
- city
- company
- country
- email
- name
- phone
- residential
- state
- street1
- street2
- zip
AddressDto:
type: object
discriminator:
propertyName: addressType
mapping:
OPERATOR: '#/components/schemas/OperatorAddressDto'
CUSTOMER_ORGANISATION: '#/components/schemas/CustomerOrganisationAddressDto'
properties:
addressId:
type: integer
format: int64
isBillingAddress:
type: boolean
isShippingAddress:
type: boolean
street1:
type: string
street2:
type: string
city:
type: string
state:
type: string
country:
type: string
countryAlpha2Code:
type: string
countryAlpha3Code:
type: string
jurisdictionIsoCode:
type: string
zip:
type: string
name:
type: string
company:
type: string
phone:
type: string
email:
type: string
residential:
type: boolean
addressType:
type: string
isDeleted:
type: boolean
taxId:
type: string
required:
- addressId
- addressType
- city
- company
- country
- countryAlpha2Code
- countryAlpha3Code
- email
- isBillingAddress
- isDeleted
- isShippingAddress
- name
- phone
- residential
- street1
- street2
- zip
securitySchemes:
Phasio_API_Bearer_Token:
type: http
name: Authorization
in: header
scheme: bearer
bearerFormat: JWT